I have this in Room_Load:
if (cLan.PreviousRoom == 3){
int ran=Random(150);
aJukebox.PlayFrom(ran*1000);
}
To test it I entered and left the room several times. After a few times the system crashed and I got a message the file crashinfo.dmp was created. I found the file but can't read it.
The sound file is longer then 150 seconds, so that can't be the problem.
Is this code wrong? Any ideas why this crashed?
What's the use of the dumpfile?
thanks
NB I tried it again but no crash after about ten times...
It's possible that there is a memory leak in the audio playback code of AGS. Did this happen every time you tested the game, or just happened once?
The crash dump file is not for you to read, but contains debug information for the developer of AGS to find out what happened. You may zip the file, upload it and send the link to CJ (http://www.adventuregamestudio.co.uk/yabb/index.php?action=profile;u=1) by PM, but since CJ is quite busy atm, he may not be able to check that in a short while.
Ok, better not disturb CJ for now then.
I tried it again a few times, but no crash. I just wish I knew what went wrong there.
thanks