Article View: borland.public.cppbuilder.nativeapi
Article #3597Re: Threads, PlaySound and waveOutGetNumDevs
From: Remy Lebeau (TeamB)
Date: Fri, 19 May 2006 17:07
Date: Fri, 19 May 2006 17:07
22 lines
1993 bytes
1993 bytes
"Mike Collins" <its@TheBottomOfThePost.com> wrote in message news:446dbb8d$1@newsgroups.borland.com... > Does this make sense? Does anyone have any ideas? I know everyone will > say, what is the catch statement returning (in terms of errors) but the > simple answer is nothing - because I'm not getting that caught beep. It > just seems that by including the try catch i have somehow prevented the > crashing of the thread whist still catching nothing. What I'm basically > saying is without the try.. catch the code kills the thread, with it in, it > doesn't, BUT it doesn't catch anything either! Using a try..catch forces a stack frame to be created for the calling function. Without knowing what your thread is actually doing, my first instinct is that you are probably corrupting the stack, and the try..catch is hiding that since the stack is likely being restored to a proper state by the stack frame when the function exits. But that is just a guaess. You need to provide more details about your code in order to diangose it better. Gambit
Technical Details
Message-ID:
<446dfc10$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<446dbb8d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9ea40ee0ccd38b3b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <446dbb8d$1@newsgroups.borland.com> Subject: Re: Threads, PlaySound and waveOutGetNumDevs Date: Fri, 19 May 2006 10:07:49 -0700 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <446dfc10$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1148058640 68.69.17.41 (19 May 2006 10:10:40 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail