Page 1 of 1

Slider::getCurrentValue() returns junk in release mode but..

Posted: Mon Aug 14, 2006 15:02
by Trentin
... Slider::getMaxValue() returns the current value.

Everything works perfect in Debug mode. I'm using the latest stable SDK release 0.4.1 on windows.

Also, I'm calling the functions from Lua script if that makes a difference.

Posted: Tue Aug 15, 2006 02:22
by Trentin
The only solution I found was to compile the CEGUI source myself and use that version.

Posted: Tue Aug 15, 2006 07:21
by scriptkid
Hi Trentin,

did the method return a correct value in release after a rebuild?

If so, then it apprears to be a problem in the DLL. Thanks for mentioning.

Posted: Tue Aug 15, 2006 13:07
by Trentin
It did return the correct values after I rebuilt it. Everything's working perfectly now.

I have no idea what was going but it seemed like one of those wierd compiler errors where a clean rebuild all fixes it.

Just to recap:
- visual studio 8
- SDK bin release of cegui 0.4.1
- SDK bin release of Ogre dagon
- I was trying to get the slider values from inside lua script
- worked in debug mode, not in release mode