Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Bug E_OUTOFMEMORY  (Read 4347 times)

0 Members and 1 Guest are viewing this topic.

DarioP

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
    • View Profile
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

Logged

ciberspace

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • View Profile
    • Tele Juego
Re: Bug E_OUTOFMEMORY
« Reply #1 on: February 21, 2013, 12:18:12 PM »

The file MainMenu.window in folder scene\MainMenu\MainWindow\
or interface/system/

DarioP

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
    • View Profile
Re: Bug E_OUTOFMEMORY
« Reply #2 on: February 21, 2013, 12:36:51 PM »

is in  scene\MainMenu\MainWindow\  the path is correct... i think the prblem is that E_OUTOFMEMORY..... what kind of error is it?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Bug E_OUTOFMEMORY
« Reply #3 on: February 21, 2013, 12:56:30 PM »

It's what it says - the system is out of memory. You loaded so much graphics into video memory that there's no more space (which is normally rather unlikely to happen). To check what textures are currently loaded in memory you can use a script command like this:

Code: WME Script
  1. Game.DumpTextureStats("c:\textues.csv");
  2.  

That will create a CSV file which lists images, their sizes and used memory. Try checking the list, perhaps you'll find you're not properly unloading some windows etc. and they stay in memory, wasting space.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

DarioP

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
    • View Profile
Re: Bug E_OUTOFMEMORY
« Reply #4 on: February 21, 2013, 02:21:50 PM »

thanks, i'll try and let you know.....but what about that when I reload the game it works? does it unloads something in the save/load process?
Logged
 

Page created in 0.041 seconds with 21 queries.