Problem with a slider
Posted: Mon Aug 29, 2005 03:45
I am trying to create a slider, but when I execute the program, I get the following exception:
It always happens on this line of code:
Here is a more complete cut of the code:
Any help is greatly appreciated. Thanks
Code: Select all
Unhandled exception at 0x42c80000 in SpaceRaceD.exe: 0xC0000005: Access violation reading location 0x42c80000.
It always happens on this line of code:
Code: Select all
Slider->setMaxValue(100.0);
Here is a more complete cut of the code:
Code: Select all
CEGUI::Slider* Slider;
CEGUI::Window* myTop = wmgr.loadWindowLayout("Layouts/SoundMenu.layout");
myRoot->addChildWindow(myTop);
Slider = (CEGUI::Slider*)wmgr.getWindow("sldSound");
Slider->setMaxValue(100.0);
Slider->setClickStep(1.0);
Slider->setCurrentValue((float)g_iSoundVolume);
Any help is greatly appreciated. Thanks