Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalconfusion Pin
AlexO6-Feb-03 2:44
AlexO6-Feb-03 2:44 
Generalfocus after application exit Pin
aputic5-Feb-03 21:23
aputic5-Feb-03 21:23 
General#undefs Pin
el_scrub5-Feb-03 20:21
el_scrub5-Feb-03 20:21 
GeneralRe: #undefs Pin
Johnny ²6-Feb-03 1:12
Johnny ²6-Feb-03 1:12 
GeneralSDK for GDI+ Pin
reen5-Feb-03 18:38
reen5-Feb-03 18:38 
GeneralUsing XML for a database Pin
paulb5-Feb-03 17:35
paulb5-Feb-03 17:35 
GeneralRe: Using XML for a database Pin
Joan M5-Feb-03 20:32
professionalJoan M5-Feb-03 20:32 
GeneralOpinions - Debug/Release and something in between Pin
nde_plume5-Feb-03 14:17
nde_plume5-Feb-03 14:17 
For years now we have all been working with two software configs
Debug and Release (cross product with other things like Unicode,
or various languges etc.)

I have been thinking about adding an additional type of config
to my projects, and wanted your opinions. Debug, of course, is
overloaded with extra debugging checks, ASSERTS, ASSERT_VALID
and so forth. Consequently, it is loaded down with extra stuff
that makes it run slow. (Also the optimizer is generally off
to make single stepping code easier.) Release turns off all that
stuff to maximize the speed of the program (which, BTW, usually
means mimizing the size of the program rather than the number of
instructions on modern CPUs, but that is a different issue.)

I have been considering an intermediate type of configuration,
call it Rebug a combination of Release and Debug. This tool
keeps all the ASSERTS and other debugging tools, but redefines
them to log as errors, and dump minidumps as opposed to breakpoints.
Similar with unhandled exceptions etc. Rebug is also stripped
of symbols (though I keep a pdb.)

What is the purpose of Rebug? Well it is released as part of
the install, and installed right next to the release version.
If a bug happens in the field, the user can switch to the
Rebug version (presumably through a menu command in the Release
version), recreate the bug, and generate all sorts of tracking
information for the debugger back at home base. In particular
it catches problems early, by detecting failed assertions,
uncaught exceptions, and so forth. Rebug would also include
various options like range checking, stack frame checking,
dog tags and so forth. It would allow the generation of
a good debug run in the field for debugging without sending
out the debug version, and having a breakpoint fire in the
middle of a real user session.

Why not just use the standard XP mechanism for handling crashes?
Because the Rebug version can potentially catch the problem
early enough that it is readily apparent what is happening,
rather than looking at a static picture where the data set is
already screwed up.

I wonder what y'all think of this idea?

GeneralRe: Opinions - Debug/Release and something in between Pin
-=jarl=-5-Feb-03 14:43
-=jarl=-5-Feb-03 14:43 
General2 questions Pin
moraalg5-Feb-03 14:03
moraalg5-Feb-03 14:03 
GeneralRe: 2 questions Pin
Abbas_Riazi5-Feb-03 21:58
professionalAbbas_Riazi5-Feb-03 21:58 
QuestionMenu Access in MDI? Pin
brigham_young5-Feb-03 12:42
brigham_young5-Feb-03 12:42 
GeneralProgram file asscociation Pin
varuna825-Feb-03 12:44
varuna825-Feb-03 12:44 
GeneralRe: Program file asscociation Pin
Mike Nordell5-Feb-03 21:03
Mike Nordell5-Feb-03 21:03 
GeneralRe: Program file asscociation Pin
varuna826-Feb-03 12:57
varuna826-Feb-03 12:57 
GeneralChat to hex Pin
varuna825-Feb-03 12:27
varuna825-Feb-03 12:27 
GeneralRe: Chat to hex Pin
Mike Nordell5-Feb-03 21:04
Mike Nordell5-Feb-03 21:04 
GeneralRe: Chat to hex Pin
Abbas_Riazi5-Feb-03 22:03
professionalAbbas_Riazi5-Feb-03 22:03 
QuestionDo you access a SQL server the same way you access a ACCESS DATABASE?? Pin
IrishSonic5-Feb-03 11:34
IrishSonic5-Feb-03 11:34 
AnswerRe: Do you access a SQL server the same way you access a ACCESS DATABASE?? Pin
nde_plume5-Feb-03 14:07
nde_plume5-Feb-03 14:07 
Generalneed help with odbc with paragraph of text.. Pin
trustno15-Feb-03 11:04
trustno15-Feb-03 11:04 
GeneralRe: need help with odbc with paragraph of text.. Pin
KarstenK6-Feb-03 0:11
mveKarstenK6-Feb-03 0:11 
General"Catastrophic Failure" in Visual Studio.NET Pin
Jonathan Gilligan5-Feb-03 10:14
Jonathan Gilligan5-Feb-03 10:14 
GeneralHelp with structure and createThread function call Pin
Pecan2045-Feb-03 9:52
Pecan2045-Feb-03 9:52 
GeneralRe: Help with structure and createThread function call Pin
Joaquín M López Muñoz5-Feb-03 10:35
Joaquín M López Muñoz5-Feb-03 10:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.