Hey yo.
This one is a little silly and might as well be some stupid thing that I did.. or rather certainly.
When I close my app I get an Access Violation when FDevice.Free is called
BUT : only during Debug mode in Delphi, not when I start it directly. And also the error disappears when I use TDeviceattribute.Debug on the device creation.
I could of course easily ignore this and just keep the attribute active while debugging and later remove it for compiling a release version or even just skip FDevice.free completely,
but it just bothers me since I think that I must have done something wrong. Everything seems to work. I also use the same rendering code in the editor as I use in the game engine but it doesnt happen in the editor.
I am aware that this could be caused by a lot of things including a fluke on my PC setup (which I cannot test because I dont have Delphi installed anywhere else), but I wanted to ask if you know any tests I could do in order to get behind what is causing this. I tried to disable different things (Texture loading, Occlusion, Glassy models, drawable texture stuff) but only if I leave out the entire 3D rendering section the error disappears.
Edit: I also can get rid of the error when I disable FTextureCabinet.Free at the end, then FDevice.free doesnt do any trouble.
This one is a little silly and might as well be some stupid thing that I did.. or rather certainly.
When I close my app I get an Access Violation when FDevice.Free is called
BUT : only during Debug mode in Delphi, not when I start it directly. And also the error disappears when I use TDeviceattribute.Debug on the device creation.
I could of course easily ignore this and just keep the attribute active while debugging and later remove it for compiling a release version or even just skip FDevice.free completely,
but it just bothers me since I think that I must have done something wrong. Everything seems to work. I also use the same rendering code in the editor as I use in the game engine but it doesnt happen in the editor.
I am aware that this could be caused by a lot of things including a fluke on my PC setup (which I cannot test because I dont have Delphi installed anywhere else), but I wanted to ask if you know any tests I could do in order to get behind what is causing this. I tried to disable different things (Texture loading, Occlusion, Glassy models, drawable texture stuff) but only if I leave out the entire 3D rendering section the error disappears.
Edit: I also can get rid of the error when I disable FTextureCabinet.Free at the end, then FDevice.free doesnt do any trouble.

Comment