Subj : Re: Exception occurs only when run outside the debugger *confused* To : comp.programming From : Nick Keighley Date : Wed Aug 24 2005 04:50 am James Dow Allen wrote: > > My program throws an exception coming from the glibmm > > library when I start it normally. However, when I run it > > with the debugger (KDbg), it > > runs just fine! (no exception thrown). > > > > I am using g++ 3.3.5. Does anyone have an idea how odd > > behavior like this can happen, generally? > > In C, use of automatic variables before initialization > is a common source of such anomalies. Use of uninitialized > malloc'ed variables, or array index out of bounds are > other possibilities. Use of threads or longjmps could also > be culprit; any other possibilities, anyone? I recently had one where the command line arguments used in the debugger were not the same as the arguments used when the program was started from a script. Stupid, yes. -- Nick Keighley .