C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question: Program crashs without reaching the breakpoint set

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
wenjie wang
Guest





PostPosted: Thu Oct 28, 2004 4:09 am    Post subject: Question: Program crashs without reaching the breakpoint set Reply with 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().
Back to top
Artie Gold
Guest





PostPosted: Thu Oct 28, 2004 4:30 am    Post subject: Re: Question: Program crashs without reaching the breakpoint Reply with quote



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





PostPosted: Thu Oct 28, 2004 5:43 am    Post subject: Re: Question: Program crashs without reaching the breakpoint Reply with quote




"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





PostPosted: Thu Oct 28, 2004 1:06 pm    Post subject: Re: Question: Program crashs without reaching the breakpoint Reply with quote

[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





PostPosted: Thu Oct 28, 2004 9:53 pm    Post subject: Re: Question: Program crashs without reaching the breakpoint Reply with quote

[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





PostPosted: Mon Nov 01, 2004 1:14 am    Post subject: Re: Question: Program crashs without reaching the breakpoint Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.