This site is no longer active and is available for archival purposes only. Registration and login is disabled.

why does debug version not show bugs that release does?


why does debug version not show bugs that release does?

Postby Conan » Apr 26, 2004 @ 11:49am

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby Pejo Software - Per » Apr 26, 2004 @ 11:58am

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby Jinks » Apr 26, 2004 @ 12:04pm

The stylus is mightier than the pen!
jinks
User avatar
Jinks
pm Member
 
Posts: 281
Joined: Feb 21, 2004 @ 1:57am
Location: Croydon, UK


Postby Dan East » Apr 26, 2004 @ 12:49pm

Memory allocated in a debug build also has padding on either end of the array. It is supposed to be used to check if the array was overwritten, but Windows CE debugger doesn't check it.

So to rehash what has already been said:

Try building individual source files Release build with all optimizations turned off.

Make sure you aren't reading dynamically allocated data before the data is initialized.

Watch for writing past the end (or beginning) of dynamically allocated arrays. Just a single byte will cause problems - but only in a Release build.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby mlepage » Apr 26, 2004 @ 4:02pm

Jinks is write, the optimizer can also screw things up. Happened to me a few times. Try a build without optimizations.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby rcp » Apr 26, 2004 @ 11:51pm

User avatar
rcp
pm Member
 
Posts: 184
Joined: Jul 18, 2003 @ 2:12am
Location: Duluth, GA. (Southeast US)


Postby j.edwards » Apr 27, 2004 @ 12:59am

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby Conan » Apr 27, 2004 @ 7:00am

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby Jim » Apr 27, 2004 @ 9:07am

Like I said else where recently, I recommend writing your own memory wrapper functions which have error checking..these will definately check your memory problems, you can also then check memory problems even when optimizations are on, then on release you use a version with out your memory debug.
So many bugs tend to be down to memory screw ups it an investment to write such code.

Jim.
User avatar
Jim
pm Member
 
Posts: 97
Joined: Feb 8, 2002 @ 5:03pm
Location: London


Postby mlepage » Apr 27, 2004 @ 2:31pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Conan » Apr 27, 2004 @ 2:44pm

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby mlepage » Apr 27, 2004 @ 6:17pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Kzinti » Apr 27, 2004 @ 6:43pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby StephC » Apr 27, 2004 @ 9:00pm

Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby drgoldie » Apr 28, 2004 @ 7:36am

here another thing to try:

if you have issues with different application behaviour in release/debug (ofcourse release versions make the problems, since most of us run their programs most of the time in debug, so it usually runs fine there) then enable debug information for release builds and have a look into what happens in the release code...

bye,
Daniel
drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Next

Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum