out of memory error with EXE

SarahWard

Banned
Can anybody help me. I tried searching but got nowhere. Someone who is using one of my freeware programs reports when he tried to install it he got an error message warning him it was written for an earlier version of WM. When he installed and ran the program it came up with an 'out of memory' error.

(This is the compiled EXE program I am refering to and not a source compilation type error.)

Any thoughts?

Sarah
 

mjcoon

Well-Known Member
Licensed User
Someone who is using one of my freeware programs reports when he tried to install it he got an error message warning him it was written for an earlier version of WM. When he installed and ran the program it came up with an 'out of memory' error.

I got that with one of your freewares too, and with many other offerings. But not an 'out of memory' error.

BTW was the error immediate or only after some interactions? Not that I can give advice either way...

Do you use recursion? :sign0013:

Mike.
 

SarahWard

Banned
I got that with one of your freewares too, and with many other offerings. But not an 'out of memory' error.

BTW was the error immediate or only after some interactions? Not that I can give advice either way...

Do you use recursion? :sign0013:

Mike.
Hi Mike

No, I don't use recursive code. Too easy to go wrong. :)
The software is Pocket Birds and it works fine with everyone else but this one gentleman. I am certain it is related to his hardware/software mix but I wondered if such an error had ever been discussed on this forum before.

FWIW, I tried to search for 'out of memory' and the B4PPC website's SEARCH feature denied me that search. It said I was using less than the minimum of 3 characters to search for. Hmmm... :sign0161:
 

corwin42

Expert
Licensed User
Longtime User
When he installed and ran the program it came up with an 'out of memory' error.
Most time I got out of memory errors it has something to do with bitmaps. If you use bitmaps be shure to use the latest ImageLibEx from agraham since it has better memory handling.
Keep your bitmaps as small as possible and try to reuse bitmap objects and not to create new ones every time.
I got out of memory errors on my Xperia X1 after I created (and recreated) just some big bitmap objects even when there were 100MB of RAM free.
I have searched on this subject but didn't find any good information about how to find out how much RAM is available for bitmaps (unmanaged memory) on a device.
 

SarahWard

Banned
Most time I got out of memory errors it has something to do with bitmaps. If you use bitmaps be shure to use the latest ImageLibEx from agraham since it has better memory handling.
Keep your bitmaps as small as possible and try to reuse bitmap objects and not to create new ones every time.
I got out of memory errors on my Xperia X1 after I created (and recreated) just some big bitmap objects even when there were 100MB of RAM free.
I have searched on this subject but didn't find any good information about how to find out how much RAM is available for bitmaps (unmanaged memory) on a device.
Yes, it could be simply that this person has run out of memory by installing to many apps in internal memory. Thanks.
 

corwin42

Expert
Licensed User
Longtime User
Yes, it could be simply that this person has run out of memory by installing to many apps in internal memory. Thanks.
No thats normally not the problem. The problem is using too big and too much bitmap objects (images) on a high resolution device like WVGA.
 

SarahWard

Banned
No thats normally not the problem. The problem is using too big and too much bitmap objects (images) on a high resolution device like WVGA.
My program isn't using large bitmaps like you describe. So it comes back to a hardware/WM/net error. :(

In fact, I have just found that this problem was solved by the user installing the latest version of .NetCF 3.5. Thanks for all the help, guys.
 
Last edited:
Top