• ### Announcements

#### Archived

This topic is now archived and is closed to further replies.

# Ngine illegal error problem.

## Recommended Posts

dirkduck    122
I can get the latest version of The Ngine to compile and link fine, but whenever I try to run it I get an illegal error (page fault) right before it starts (before it even starts to draw a window). Im not sure what the problem is. Ive tried it on two computers, and I get the same error each time. Any ideas? Thanks. (im using windown 98 SE on each computer) EDIT: Just did a debug and it says the error occures on this line in render.cpp:

bool CRENDERER::
bSetupScreen(char* a_szConfigINIFile, int a_iFlags)
{
return (pr_pRenderInterface->bSetupScreen  //THIS ONE

(a_szConfigINIFile, a_iFlags));
}

It points to the return line. Any ideas? http://www.labino.net - freeware and shareware games. Edited by - dirkduck on March 20, 2002 7:47:59 PM Edited by - dirkduck on March 20, 2002 7:48:53 PM

##### Share on other sites
mrbugg    122
Hmm, I''m no guru programmer or anything, but you seem to be missing a finishing ) on the end of the return command. \

Try:

return (pr_pRenderInterface->bSetupScreen)

Mr Bugg

##### Share on other sites
dirkduck    122
Arg, sorry, I just copyed and pasted code striaght from the engine, must have left off the parenthesie when i did that, it should be there.

http://www.labino.net -
freeware and shareware games.

##### Share on other sites
terminate    259
In renderer.h change

  	CRENDERER(void)	{	}

to

  	CRENDERER(void) : pr_pRenderInterface(NULL)	{	}

This should fix it.