Is it leaking or caching?

For discussion of LizardTech's free Decode SDK for MrSID and JPEG 2000.

Moderator: jskiffington

Is it leaking or caching?

Postby cuipengfei@thinkgeo.com » Thu Mar 31, 2011 12:29 am

I found out that our app takes a lot of memory when there is a mrsid file loaded, at first I thought there is something wrong in our app, but then I found the same problem in the GeoViewer.
So I guess the SDK uses cache by default, right?
And is there a way to turn that off?
cuipengfei@thinkgeo.com
 
Posts: 6
Joined: Mon Mar 28, 2011 1:14 am

Postby ChrisH » Thu Mar 31, 2011 10:30 am

GeoViewer does do some memory caching (on the order of numLevels * areaOfViewRect) however, the library that manages this is not shipped with the SDK.

The SDK does not do any memory caching. You would have to set that up yourself in your app. How much memory usage are you seeing? How large is the image you are loading into your app?
ChrisH
 
Posts: 14
Joined: Tue Feb 12, 2008 10:20 am

Postby cuipengfei@thinkgeo.com » Thu Mar 31, 2011 7:20 pm

Oh, this does not sound good......

The mrsid file is about 600MB, and the memory usage goes up as I pan or zoom in/out the map. I did not test it for too long, but it takes up to 500MB of memory after 10 minutes.
cuipengfei@thinkgeo.com
 
Posts: 6
Joined: Mon Mar 28, 2011 1:14 am

Postby ChrisH » Fri Apr 01, 2011 10:15 am

try loading the same file into one of the sample viewers that shipped with the DSDK (in the "examples\src" folder). Does the same thing happen there?

Also, what is the width & height of your image?
ChrisH
 
Posts: 14
Joined: Tue Feb 12, 2008 10:20 am

Postby cuipengfei@thinkgeo.com » Fri Apr 01, 2011 6:45 pm

nope, both the MFC viewer and Win Forms viewer works fine.
I guess the bug is probably in our wrapper.
Thanks for all the help.
cuipengfei@thinkgeo.com
 
Posts: 6
Joined: Mon Mar 28, 2011 1:14 am


Return to SDKs

Who is online

Users browsing this forum: No registered users and 1 guest

cron