Memory issues when using FdoIGeometry

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Memory issues when using FdoIGeometry

Snehal Joshi
Hi All,

I am using FDO to read feature data from ArcSDE server which has large number of objects. While I am able to read all the data, the memory usage goes up really quickly and there is no significant change even after I call the close() method on the feature reader.
After some debugging it looks like the reference count for the geometry (as in the snippet below) doesn't go to zero even after the FdoPtr destructor has been called. I am pretty sure it could be something I am missing, will appreciate any pointers in this regard.

FdoPtr<FdoIGeometry> geometry = geometryFactory->CreateGeometryFromFgf(geometryArray);

Thanks!

_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users
Reply | Threaded
Open this post in threaded view
|

Re: Memory issues when using FdoIGeometry

Gavin Cramer

Howdy.  Is either the geometry object or the byte array being passed between threads?

 

Gavin

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Snehal Joshi
Sent: Monday, June 04, 2012 4:11 PM
To: FDO Users Mail List
Subject: [fdo-users] Memory issues when using FdoIGeometry

 

Hi All,

I am using FDO to read feature data from ArcSDE server which has large number of objects. While I am able to read all the data, the memory usage goes up really quickly and there is no significant change even after I call the close() method on the feature reader.
After some debugging it looks like the reference count for the geometry (as in the snippet below) doesn't go to zero even after the FdoPtr destructor has been called. I am pretty sure it could be something I am missing, will appreciate any pointers in this regard.

FdoPtr<FdoIGeometry> geometry = geometryFactory->CreateGeometryFromFgf(geometryArray);

Thanks!


_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users
Reply | Threaded
Open this post in threaded view
|

Re: Memory issues when using FdoIGeometry

Snehal Joshi
Hi Gavin

Thanks. I am using it in a single threaded environment.

Snehal

On Mon, Jun 4, 2012 at 3:27 PM, Gavin Cramer <[hidden email]> wrote:

Howdy.  Is either the geometry object or the byte array being passed between threads?

 

Gavin

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Snehal Joshi
Sent: Monday, June 04, 2012 4:11 PM
To: FDO Users Mail List
Subject: [fdo-users] Memory issues when using FdoIGeometry

 

Hi All,

I am using FDO to read feature data from ArcSDE server which has large number of objects. While I am able to read all the data, the memory usage goes up really quickly and there is no significant change even after I call the close() method on the feature reader.
After some debugging it looks like the reference count for the geometry (as in the snippet below) doesn't go to zero even after the FdoPtr destructor has been called. I am pretty sure it could be something I am missing, will appreciate any pointers in this regard.

FdoPtr<FdoIGeometry> geometry = geometryFactory->CreateGeometryFromFgf(geometryArray);

Thanks!


_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users



_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users
Reply | Threaded
Open this post in threaded view
|

Re: Memory issues when using FdoIGeometry

Gavin Cramer

If you have a very simple snippet of code that reproduces the problem, feel free to post it.

 

Gavin

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Snehal Joshi
Sent: Monday, June 04, 2012 4:41 PM
To: FDO Users Mail List
Subject: Re: [fdo-users] Memory issues when using FdoIGeometry

 

Hi Gavin

Thanks. I am using it in a single threaded environment.

Snehal

On Mon, Jun 4, 2012 at 3:27 PM, Gavin Cramer <[hidden email]> wrote:

Howdy.  Is either the geometry object or the byte array being passed between threads?

 

Gavin

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Snehal Joshi
Sent: Monday, June 04, 2012 4:11 PM
To: FDO Users Mail List
Subject: [fdo-users] Memory issues when using FdoIGeometry

 

Hi All,

I am using FDO to read feature data from ArcSDE server which has large number of objects. While I am able to read all the data, the memory usage goes up really quickly and there is no significant change even after I call the close() method on the feature reader.
After some debugging it looks like the reference count for the geometry (as in the snippet below) doesn't go to zero even after the FdoPtr destructor has been called. I am pretty sure it could be something I am missing, will appreciate any pointers in this regard.

FdoPtr<FdoIGeometry> geometry = geometryFactory->CreateGeometryFromFgf(geometryArray);

Thanks!


_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users

 


_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users
Reply | Threaded
Open this post in threaded view
|

Re: Memory issues when using FdoIGeometry

Dan Stoica
In reply to this post by Snehal Joshi

How about the geometryArray?  Is it released?

 

Dan.

From: [hidden email] [mailto:[hidden email]] On Behalf Of Snehal Joshi
Sent: Monday, June 04, 2012 4:41 PM
To: FDO Users Mail List
Subject: Re: [fdo-users] Memory issues when using FdoIGeometry

 

Hi Gavin

Thanks. I am using it in a single threaded environment.

Snehal

On Mon, Jun 4, 2012 at 3:27 PM, Gavin Cramer <[hidden email]> wrote:

Howdy.  Is either the geometry object or the byte array being passed between threads?

 

Gavin

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Snehal Joshi
Sent: Monday, June 04, 2012 4:11 PM
To: FDO Users Mail List
Subject: [fdo-users] Memory issues when using FdoIGeometry

 

Hi All,

I am using FDO to read feature data from ArcSDE server which has large number of objects. While I am able to read all the data, the memory usage goes up really quickly and there is no significant change even after I call the close() method on the feature reader.
After some debugging it looks like the reference count for the geometry (as in the snippet below) doesn't go to zero even after the FdoPtr destructor has been called. I am pretty sure it could be something I am missing, will appreciate any pointers in this regard.

FdoPtr<FdoIGeometry> geometry = geometryFactory->CreateGeometryFromFgf(geometryArray);

Thanks!


_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users

 


_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users