| View previous topic :: View next topic |
| Author |
Message |
wenjie wang Guest
|
Posted: Thu Oct 28, 2004 4:09 am Post subject: Question: Program crashs without reaching the breakpoint set |
|
|
Greetings,
I'd like to know is there any situation where your program could crash
without reaching the breakpoint which you set at the beginning of
main().
|
|
| Back to top |
|
 |
Artie Gold Guest
|
Posted: Thu Oct 28, 2004 4:30 am Post subject: Re: Question: Program crashs without reaching the breakpoint |
|
|
wenjie wang wrote:
| Quote: | Greetings,
I'd like to know is there any situation where your program could crash
without reaching the breakpoint which you set at the beginning of
main().
|
In initialization of static variables perhaps?
HTH,
--ag
--
Artie Gold -- Austin, Texas
"If you don't think it matters, you're not paying attention."
|
|
| Back to top |
|
 |
Mike Wahler Guest
|
Posted: Thu Oct 28, 2004 5:43 am Post subject: Re: Question: Program crashs without reaching the breakpoint |
|
|
"wenjie wang" <wwang (AT) bigpond (DOT) net.au> wrote
| Quote: | Greetings,
I'd like to know is there any situation where your program could crash
without reaching the breakpoint which you set at the beginning of
main().
|
Yes, there are several. One possibility is during
the constructor of a file-scope object. If you can
put together a small compilable example that gives
the problem behavior, we can take a look.
-Mike
|
|
| Back to top |
|
 |
Stuart Gerchick Guest
|
Posted: Thu Oct 28, 2004 1:06 pm Post subject: Re: Question: Program crashs without reaching the breakpoint |
|
|
[email]wwang (AT) bigpond (DOT) net.au[/email] (wenjie wang) wrote in message news:<a2774f44.0410272009.4de77b9 (AT) posting (DOT) google.com>...
| Quote: | Greetings,
I'd like to know is there any situation where your program could crash
without reaching the breakpoint which you set at the beginning of
main().
|
There are many reasons for this. Much can be done before the first
line of the program. Static variables and things with a file scope
are all set up. Construtors could be called. Pls look at what you
have a that scope or anything static
|
|
| Back to top |
|
 |
puppet_sock@hotmail.com Guest
|
Posted: Thu Oct 28, 2004 9:53 pm Post subject: Re: Question: Program crashs without reaching the breakpoint |
|
|
[email]wwang (AT) bigpond (DOT) net.au[/email] (wenjie wang) wrote in message news:<a2774f44.0410272009.4de77b9 (AT) posting (DOT) google.com>...
| Quote: | Greetings,
I'd like to know is there any situation where your program could crash
without reaching the breakpoint which you set at the beginning of
main().
|
In addition to the fine advice others have given:
A breakpoint implies a debugger. If the debugger, together with
the prog, and anything else that may be running, runs out of memory,
then you could FUBAR before the program gets to any actual action.
Though, you *should* get appropriate diagnostics if that happens.
Socks
|
|
| Back to top |
|
 |
wenjie wang Guest
|
Posted: Mon Nov 01, 2004 1:14 am Post subject: Re: Question: Program crashs without reaching the breakpoint |
|
|
Thanks you all the replies. I wish I have had the code and then I
have some kind of idea what might be the problem;-)
I was asked about the question and I have got no clue about it;-(
That's why I turn into this group for help.
Thanks again for the replies
|
|
| Back to top |
|
 |
|