Blitz3D crashes with a chord-sound?
Archives Forums/Blitz3D Bug Reports/Blitz3D crashes with a chord-sound?
| ||
When i have to apply a texture to my terrain, i use the requester from WinBlitz3D, and it works fine. But when i am loading a previous world in my editor, and i press a button to the requester, the whole program crashes with a windows chord-sound, and the program closes. Is this a memory problem or what???
If BCF_TestButton(cmdTerrTex) And STerrain<>0
file$=RequestFile("Open texture ...","Bitmap Files (*.bmp)|*.BMP|JPEG Files (*.JPG)|*.JPG|All Files (*.*)|*.*")
If FileType(file$)=1
tex=LoadTexture(file)
If tex
For e.Entity = Each Entity
If e\Ent = STerrain
e\DetailMap$ = file$
ScaleTexture tex,8,8
EntityTexture e\Ent,tex,0,1
FreeTexture tex
End If
Next
End If
End If
End If
|
| ||
| From your description it's crashing at the point where control is in Windows hands, so nothing to do with Blitz (?). I'd check the parameters being fed. |
| ||
| What should i do? Plzz help. The link to the Beta is http://twicfall.com/CS3D.rar |
| ||
| First. Try to create a terrain and apply a bump map. It works fine. But try to restart the app, and open the world.csw. Then try to apply the bumpmap. Then it crashes. (Select a terrain in the terrain list first, before you can take any action) |
| ||
| LoL.. Now i tried to use the BCF_RequestFile instead, and now the same error occurs!!! |
| ||
| Dammit i've found the bug.. A WritePixelFast command have written too many pixels and got access to some other memory in the app, and it caused it to crash.. |
| ||
| So we can say this is not a bug. Tho, didn't even know writepixelfast can access the ram that way. |