1
Technical forum / Bug E_OUTOFMEMORY
« on: February 21, 2013, 10:32:32 AM »
Hi Guys, i have this Big problem I really don't know how to resolve....
when the game is in a particular scene, and I try to enter the menu, it gives me a script runtime error, this is the log:
10:19: Error loading texture 'scenes\MainMenu\bg01.png'.
returned: E_OUTOFMEMORY
10:19: Error loading simple sprite 'scenes\MainMenu\bg01.png'
10:19: Error loading WINDOW definition
10:19: Error parsing WINDOW file 'scenes\MainMenu\MainWindow\MainMenu.window'
10:19: Runtime error. Script 'scripts\game.script', line 736
10:19: Call to undefined method 'GoSystemExclusive'. Ignored.
the code to call the menu is simply:
WinMainMenu = Game.LoadWindow("scenes\MainMenu\MainWindow\MainMenu.window");
Game.Interactive=true;
WinMainMenu.GoSystemExclusive();
Game.UnloadObject(WinMainMenu);
the strange thing is that in any other scene(before or later) it works perfectly, the problem is only on this scene!!
and the other REALLY strange thing is that if I save the game before entering this scene( in the previous scene), then I load the saved game and enter the scene, It works!!
Please please HELP i really don't know what else to try
Thanks a lot
when the game is in a particular scene, and I try to enter the menu, it gives me a script runtime error, this is the log:
10:19: Error loading texture 'scenes\MainMenu\bg01.png'.
returned: E_OUTOFMEMORY
10:19: Error loading simple sprite 'scenes\MainMenu\bg01.png'
10:19: Error loading WINDOW definition
10:19: Error parsing WINDOW file 'scenes\MainMenu\MainWindow\MainMenu.window'
10:19: Runtime error. Script 'scripts\game.script', line 736
10:19: Call to undefined method 'GoSystemExclusive'. Ignored.
the code to call the menu is simply:
WinMainMenu = Game.LoadWindow("scenes\MainMenu\MainWindow\MainMenu.window");
Game.Interactive=true;
WinMainMenu.GoSystemExclusive();
Game.UnloadObject(WinMainMenu);
the strange thing is that in any other scene(before or later) it works perfectly, the problem is only on this scene!!
and the other REALLY strange thing is that if I save the game before entering this scene( in the previous scene), then I load the saved game and enter the scene, It works!!
Please please HELP i really don't know what else to try
Thanks a lot