Article View: borland.public.cppbuilder.nativeapi
Article #3606Re: Threads, PlaySound and waveOutGetNumDevs
From: Bob Gonder
Date: Sat, 20 May 2006 14:40
Date: Sat, 20 May 2006 14:40
20 lines
1895 bytes
1895 bytes
Mike Collins wrote: >Thanks Bob, this could be an issue that is only manifesting it's self when I >use the various functions that I have described. Looks like it's time to dust off the debugger. Set a breakpoint on the first line of the function. Run. View the CPU. Note the value for esp and memorize the return address in the stack window. Now single step through the code, and pay attention to the stack window and the esp. If the esp changes after stepping over a call, then the called function is buggy. If you see the return address change, then the last item you stepped on is buggy. If you reach the return statement and esp isn't what it was when you hit the breakpoint, then there's something wrong in your code, or a compiler bug.
Technical Details
Message-ID:
<eq9u62pf562ra979jh7squ9hk1j9n00uqm@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.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> <446dfc10$1@newsgroups.borland.com> <446e0a32$1@newsgroups.borland.com> <uj4s62dv0f1o3dt7hdpj99rato13je2vvs@4ax.com> <446f056d$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: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Threads, PlaySound and waveOutGetNumDevs Date: Sat, 20 May 2006 07:40:41 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <eq9u62pf562ra979jh7squ9hk1j9n00uqm@4ax.com> References: <446dbb8d$1@newsgroups.borland.com> <446dfc10$1@newsgroups.borland.com> <446e0a32$1@newsgroups.borland.com> <uj4s62dv0f1o3dt7hdpj99rato13je2vvs@4ax.com> <446f056d$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 71.0.33.27 X-Trace: newsgroups.borland.com 1148136037 71.0.33.27 (20 May 2006 07:40:37 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news2.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