Not enough memory ?!?!?!

Non-platform specific questions.

Not enough memory ?!?!?!

Postby ondy1985 » Tue Aug 30, 2005 12:09 pm

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?
Image

Motto: "I never let my schooling interfere with my education" --- Mark Twain
User avatar
ondy1985
 
Posts: 99
Joined: Thu May 05, 2005 7:43 pm
Location: Slovakia
Score: 1 Give a positive score

Postby makslane » Tue Aug 30, 2005 12:29 pm

Nothing happens here.
The only thing can causes this message is a memory allocation failure.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Game A Gogo » Tue Aug 30, 2005 1:14 pm

The game run relley smoutly, and I dont have much memory.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby ondy1985 » Tue Aug 30, 2005 5:20 pm

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.
Image

Motto: "I never let my schooling interfere with my education" --- Mark Twain
User avatar
ondy1985
 
Posts: 99
Joined: Thu May 05, 2005 7:43 pm
Location: Slovakia
Score: 1 Give a positive score

Postby ondy1985 » Tue Aug 30, 2005 5:41 pm

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...
Image

Motto: "I never let my schooling interfere with my education" --- Mark Twain
User avatar
ondy1985
 
Posts: 99
Joined: Thu May 05, 2005 7:43 pm
Location: Slovakia
Score: 1 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron