Out Of Memory Exception

T

Tommy

I have a huge app (in relative terms) for pocket pc with 38 forms and a ton
of classes. I am getting out of memory exceptions from time to time in
random locations. My exe is only 412K in size but my datasets are very
large.

I have read through the stuff on google and am forcing the garbage collector
after releasing large objects that can hold a good bit of memory. It is a
database app using Sql Anywhere studio. The db has about 75,000 records but
the db is stored on a compact flash card so the ram is only used for the
datasets, etc.

Is there a way to pinpoint what is using the most ram or where it may be
lost. With 38 forms loading and unloading as needed it's going to be tough
to pinpoint.

All forms are closed and then disposed when i'm finished with them.

Any tips on tracking this down is really appreciated.
 
G

Guest

Are you using the compact framework with service pack 2 (or gratter)?
If don't, update the Compact Framework Service Pack.
I used to have problems like this!
 
T

Tommy

Humm, I'm not using sp2 because it has some problems displaying forms with
showdialog.
 
S

Sergey Bogdanov

I was using SP2 (at this moment using SP3) and had not found any
problems with what you described. Can you explain what the problems with
ShowDialog you encountered and small code snippet to reproduce it will
be appreciated.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top