Out Of Memory Exception

  • Thread starter Thread starter Tommy
  • Start date Start date
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.
 
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!
 
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
 
Back
Top