Again "Access Violation reading location 0x0000000"
Posted: Wed Dec 01, 2004 7:04 am
I have:
Code: Select all
main.cpp
#include "CMainMenu.h"
#include "include/irrlicht.h"
using namespace irr;
CMainMenu m_menu;
IrrlichtDevice *device =0;
IVideoDriver *driver = 0;
gui::IGUIEnvironment* guienv = 0;
IGUIElement* root = 0;
...
int main()
{
IrrlichtDevice *device =createDevice(EDT_NULL,dimension2d<s32>(640, 480), 16,false, false, false, 0);
IVideoDriver* driver = device->getVideoDriver();
m_menu.readCFG();
...
CMainMenu.h
...
io::IXMLReader* xml = 0;
...
void CMainMenu::readCFG()
{
xml = device->getFileSystem()->createXMLReader("config.xml");
bool mapParsing = true;
while(xml->read() && mapParsing == true) [b]! ON THIS LINE DEBUGGER STOPS[/b]
{
if (core::stringw("Renderer") == xml->getNodeName())
rendererString = xml->getAttributeValue(L"renderer");
...
CMainMenu.h
...
class CMainMenu
{
public:
...
void readCFG();
...