Page 1 of 1

Not enough memory ?!?!?!

PostPosted: Tue Aug 30, 2005 12:09 pm
by ondy1985
I use GE 1.3.0 and when I export my game as Windows executable and then in the game I press space (to fire), a 'Not enough memory to run the game' messagebox appears.

The strange thing is that it runs well in Game Mode, but once I export it, it's a crap.

Here's the source: http://bloodlust.szm.sk/pulsar/pulsar_source.zip

What can be the cause?

PostPosted: Tue Aug 30, 2005 12:29 pm
by makslane
Nothing happens here.
The only thing can causes this message is a memory allocation failure.

PostPosted: Tue Aug 30, 2005 1:14 pm
by Game A Gogo
The game run relley smoutly, and I dont have much memory.

PostPosted: Tue Aug 30, 2005 5:20 pm
by ondy1985
makslane wrote:Nothing happens here.
The only thing can causes this message is a memory allocation failure.


Thanks.
Can be. I use a few Actor pointers. But why there's no error message in Game Mode? I'll have a look at that in the evening, anyway.

PostPosted: Tue Aug 30, 2005 5:41 pm
by ondy1985
I have found the troublemaking line of code. Surprisingly there's no pointer in the line. It's just:
Code: Select all
PlaySound2("data/laser.wav", sys_SoundVolume, 1, 0.000000);


When I commented that line then it worked well even after export (except for that there was no sound when player shot). Really strange...