I'm using GameMonkey in my project for scripting. When I try to run the game, it gives me a "Has encountered a problem" error. Here's what my debugger spits out:
Here's my header (without all of the Irrlicht functions):#0 0x00406b9c gmMachine::AddSourceCode
#1 0x00406fa8 gmHooks::Begin
#2 0x004101fc gmCodeGenPrivate::Lock
#3 0x00404659 gmMachine::ExecuteString
#4 0x0040132d main
Code: Select all
#include "gmThread.h"
class GameManager : public IEventReceiver
{
public:
gmMachine* getgmMachine();
gmMachine* gm;
};
Code: Select all
#include "gmThread.h"
gmMachine* GameManager::getgmMachine()
{
return gm;
}
Code: Select all
#include "GameManager.h"
int main()
{
GameManager game;
game.getgmMachine()->ExecuteString( "print( \"Hello, world!\" );" );
}