Hi!
Just to explain the problem I'll show some of my code..
void Test()
{
dbText( 123 , 123 , "TEST!!!" );
}
void main()
{
lua::make();
DWORD point;
point = (DWORD) &Test;
lua::register_user_function( point , "Test" , "" , 0 , 0 );
lua::load_file("C:\\test.lua");
lua::terminate();
}
The code compiles but after like 1/2 seconds it comes up with an error msg saying :
Unhandled exception at 0x0040a093 in lua test.exe: 0xC0000005: Access violation reading location 0x00000010.
I press "Break", then it shows this msg
No symbols are loaded for any call stack frame. The source code cannot be displayed.
I press okey and it goes back to the IDE.
What is wr0ng?
Good night..