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

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Trentin
Not too shy to talk
Not too shy to talk
Posts: 27
Joined: Tue Nov 22, 2005 21:25
Contact:

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

Postby Trentin » Mon Aug 14, 2006 15:02

... 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.

User avatar
Trentin
Not too shy to talk
Not too shy to talk
Posts: 27
Joined: Tue Nov 22, 2005 21:25
Contact:

Postby Trentin » Tue Aug 15, 2006 02:22

The only solution I found was to compile the CEGUI source myself and use that version.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Tue Aug 15, 2006 07:21

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.

User avatar
Trentin
Not too shy to talk
Not too shy to talk
Posts: 27
Joined: Tue Nov 22, 2005 21:25
Contact:

Postby Trentin » Tue Aug 15, 2006 13:07

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


Return to “Help”

Who is online

Users browsing this forum: No registered users and 29 guests