How to check the memory available on my PDA?

  • Thread starter Thread starter kshama.bafna
  • Start date Start date
K

kshama.bafna

Hi,

I have a compact framework application (PDA based) which uses
MemoryStream class. While writing bytes to memory it throws OutOfMemory
Exception. Could anyone please tell me whether i can check for the
available memory on PDA and if it falls short i want to display error
message to the user?

Thanks,
Kshama
 
Hi Alex,

Thanks.
I checked the blog. What does the following statement in the code
imply?

memStatus.dwAvailPhys

Is it returning the available main memory size or is it the available
memory size of storage card?
I need to check the size of main memory of PDA. Could you please help
me with this?

Regards,
Kshama
 
Back
Top