I am having a problem with a rather large application. When we try to run the executable on a 640x480 VGA device (an HTC Advantage or an iPaq 210 Enterprise), we get an Out of Memory Exception error.
This error does not occur on QVGA devices like the HTC 8925/AT&T Tilt.
I have narrowed the problem down to the number of forms the program has to deal with at launch. It can't handle more than 40 forms. To verify this, I created a new application that does nothing more that start up and display Form1. Then I added Form2 through Form40 (40 forms total). I compiled the executable, for the device, with optimization on, loaded it onto the VGA device, and launched it. It crashed without even displaying Form1 and reported the Out of Memory Exception error.
I then recomplied the same application with optimization off, loaded it onto the VGA device, and launched it. The program ran properly.
I just can't beleive that this program is chewing up more than 70 megabytes of free program memory and still wanting more.
So I have to do one of the following:
1.) Find a way to allocate more memory to the program.
2.) Strip forms out of my program until I'm under the limit. (The users probably won't appreciate the loss of program functions that would accompany this option.)
3.) Compile my program non-optimized, which I'm having problems doing. I use about a dozen DLLs, and I'm not sure which ones are protesting in a non-optimized compilation.
4.) Become a welder.
Anyone have any thoughts on this?
Gary
:sign0085:
This error does not occur on QVGA devices like the HTC 8925/AT&T Tilt.
I have narrowed the problem down to the number of forms the program has to deal with at launch. It can't handle more than 40 forms. To verify this, I created a new application that does nothing more that start up and display Form1. Then I added Form2 through Form40 (40 forms total). I compiled the executable, for the device, with optimization on, loaded it onto the VGA device, and launched it. It crashed without even displaying Form1 and reported the Out of Memory Exception error.
I then recomplied the same application with optimization off, loaded it onto the VGA device, and launched it. The program ran properly.
I just can't beleive that this program is chewing up more than 70 megabytes of free program memory and still wanting more.
So I have to do one of the following:
1.) Find a way to allocate more memory to the program.
2.) Strip forms out of my program until I'm under the limit. (The users probably won't appreciate the loss of program functions that would accompany this option.)
3.) Compile my program non-optimized, which I'm having problems doing. I use about a dozen DLLs, and I'm not sure which ones are protesting in a non-optimized compilation.
4.) Become a welder.
Anyone have any thoughts on this?
Gary
:sign0085: