Memory access violation

Blitz3D Forums/Blitz3D Programming/Memory access violation

Mr. Slat(Posted 2007) [#1]
Well, I don't know why this is happening... Each time I run my program in blitz3D it works fine...but when I create the executable, the program ends retrieving a memory access violation message.... What could be causing this? please help. Thanks


DQ(Posted 2007) [#2]
is the exe being created in the correct folder that your media is coming from?


Mr. Slat(Posted 2007) [#3]
totaly...


Ked(Posted 2007) [#4]
Did you put ChangeDir SystemProperty("appdir") at the top before you compiled?


Mr. Slat(Posted 2007) [#5]
The .Exe is in the correct folder. that's not the problem.
For instance, the program begins with a vid, and it shows it. the message is retrieved only after that. I was wondering if there's a problem with my directx.....but that wouldn't make sense, since the program works fine when I run it in blitz3d.

jeeeze.....l


big10p(Posted 2007) [#6]
Compile a version with debug on and see what exactly the error is.

This problem is almost always caused by misplaced media or DLLs, though.


Mr. Slat(Posted 2007) [#7]
wrong, dude.....But I already found the problem....
I had to stop the program at some suspicious code with a waitkey() command to see when it retrieved the message.... and it seams it was the GFXDriverName(2)$ command.....Thanks for the help anyway, I'll see how to overcome this now

If anyone knows why it gives the message only on .exe...you're welcome

=D