Game Development Community

I doesn't work in the release build...

by Tim "Zear" Hammock · in Torque Game Engine · 02/13/2002 (3:48 pm) · 4 replies

What a nightmare. I have my own bitmap based button. The mouse-overs work fine in the debug build, but not in the release build. Gah. Anybody have any ideas?


(whoops! _It_ doesn't work...)

#1
02/13/2002 (8:41 pm)
Sorry.. release build problems are a usually a pain in the butt to track down :(
#2
02/14/2002 (4:25 am)
The number one thing to look for is uninitialized variables. The debug build will initialize ints to 0, and the release won't.

Josh
#3
02/14/2002 (10:45 am)
It looks like it may be related to texture handling. My fault I'm sure. When I short-circuit the code in the component's onRender() method to use the mouseover image at all times, it still displays the normal (non-mouseover) image.

I'm still digging...
#4
02/14/2002 (1:24 pm)
Mebbe I should change my nick from Zear to RedHerring...



I noticed that other strangeness was beginning to ensue. On reflection, I realized I had not closed the project in VC (nevermind shutting down VC or the machine itself) in nearly a week. I had saved and rebuilt everything (several hundred times), but apparently Windows or VC was beginning to descend into madness.

So I rebooted. Been so long since I changed from Win98 to Win2000, I forgot how well that can work...



The component works fine now. Grrr.



I thank you for your support. :]