Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Crash when saving loaded game  (Read 3450 times)

0 Members and 1 Guest are viewing this topic.

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 116
    • View Profile
Crash when saving loaded game
« on: December 04, 2011, 07:12:19 PM »

Hi, when I save game this warning is displayed:

Warning: invalid instance 'm_WaitObject'

The game is saved succeful and can be loaded without problems.
But when I load this game and save again these warnings are displayed:

Warning: invalid instance 'm_WaitObject'
Warning: invalid instance ''

Then, when I load this game again the wme crash with this report:

Code: [Select]
-----------------------------------------------------------------
---------- wme 1.9.001 crash report: 04-12-2011, 19:10 ----------
-----------------------------------------------------------------
wme.exe caused a EXCEPTION_ACCESS_VIOLATION in module wme.exe at 001B:00411059
EAX=00000000  EBX=00000001  ECX=00000000  EDX=00000000  ESI=06D774A8
EDI=0AFD3F10  EBP=0000000B  ESP=0012FCC4  EIP=00411059  FLG=00010297
CS=001B   DS=0023  SS=0023  ES=0023   FS=003B  GS=0000
Stack trace:
001B:00411059 (0x00000000 0x00000000 0x00000000 0x00000000) wme.exe

It happens always when I save a loaded game and load it.

Any solution? Any cause?

Thanks.
Logged

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 116
    • View Profile
Re: Crash when saving loaded game
« Reply #1 on: December 09, 2011, 01:38:59 PM »

Ok, I found the problem and its solution. I write it here because if any other user have a similar problem.

The cause was that I removed a layer using:

Game.UnloadObject(layer);

Instead of:

Scene.DeleteLayer(layer);

No errors ingame, but when you save a game after that code and load it, the WME crashes
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Crash when saving loaded game
« Reply #2 on: December 09, 2011, 05:56:56 PM »

Thank you, that's a valuable information.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.034 seconds with 20 queries.