error on exit
Blitz3D Forums/Blitz3D Beginners Area/error on exit
| ||
high... like allways, i have some problems.. :p i make a new game, works perfectly until i exit, and retunr MAV on exit. in blitz, debut, the problem sometimes is in endgraphics(), or in end() sometimes says, "abnormal program termination" runtime error visual c++ program : ...blitzc.exe in the compied game, the MAV is when i exit.. someone have some tips for what reaons can appears this problem? while not keyhit(1) wend endgraphics (posiblle error) end (error) regards!.. |
| ||
I've had a similair problem in vc++, years ago. It turned out to be a memory handle that couldn't be freed because it got lost. Are you using only Blitz native code, or also .dll's/userlibs ? ODE for phsyics, right? It might be, that somehow something in memory is overwritten. Or maybe, you are trying to free something that is allready freed, but I more suspect the first one. Have you tried putting a Google search on the error you got? |
| ||
Are you performing a "FLIP" before the EndGraphics command to flush your buffers? |
| ||
thanks warner and rolow... i work hard to found the problem of "abnormal program termination" i remove all lines of sound, CreateListener , loadsound, emitsound, load3dsound, channelvolume, channelpitch... i turn off all sounds in the game, and that appears to fix the problem.. if anyone have the same problem, try this and tell if that works... maibe that is one reason for the error, don't know specificly in what command of file is the problem, only know that problem is in the sounds i think there should be a list of errors and solutions in this forum... i see to many post with this fail, and no body resolved that problems... the same problem i have with some MAV when i load some files for my game.. regards... santiago or latatoy, is the same... |
| ||
If disabling the sounds stops the problem, then enable them one by one until you find the one that gives you an error and try to see WHY it gives you the error. |
| ||
I've hnhad that recently too, but only recently . In circumstances that seem to match with Warner's description. Thatnks, Warner for the info. that helps narrow down the 'why' :) |
| ||
hi, i found a functions that give me problems.. this return MAV or error on exit end Function load_sound() If snd = 1 Then sl = CreateListener (cam) ; or (cam, .01,0.81,.3) filename$ = "sounds\motor4.wav" s_motor= Load3DSound (filename$) SoundVolume s_motor, 0 LoopSound s_motor filename$ = "sounds\skid.wav" s_slide= Load3DSound (filename$) SoundVolume s_slide, 0 LoopSound s_slide filename$ = "sounds\heli2.wav" s_crash = Load3DSound ("sounds\crash3.wav") SoundVolume s_crash,0 * sounds End If For car.car = Each car car\ch_motor = EmitSound (s_motor,car\mesh) car\ch_slide = EmitSound (s_slide,car\mesh) Next End Function |
| ||
Well, I tried and I tried, but I couldn't get it to crash.. I think you need to give a better example. |
| ||
maibe is a sound file the problem? |
| ||
Well, this could be a strange advice, but try posting some code that crashes. I mean, a (small but complete) working example that crashes on exit. Else, the only way to solve this would be if someone else has experienced exactly the same problem. Also, it helps to give insight in what makes this routine crash. That is better than trying to guess what it could be. |
| ||
if i use sounds, or i use fastlibs, have problems on the end, and MAV msg when i load the game... :( |