I was using Google SketchUp Pro to export 3ds models to use in Dark GDK. My programs worked fine using these models in them, until i began using another computer. The biggest difference between them was that before i was using Windows XP with service pack 2, and now I am using Windows Vista Home Premium. I used the exact same files to debug the program from Visual C++ 2008 express on the new pc, but the program does not work. I get this error:
Unhandled exception at 0x00f1b5ba Program.exe: 0xC0000005: Access violation reading location 0x00000010.
I wrote this program to demonstrate the problem. "a.3ds" is an untextured box.
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadObject ("a.3ds", 1);
while ( LoopGDK ( ) )
{
dbSync ( );
}
return;
}
The Error occurs while executing this line:
dbLoadObject ("a.3ds", 1);
Why did DarkGDK suddenly stop loading 3ds files? How do I fix this?
Thanks.