Article View: borland.public.cppbuilder.nativeapi
Article #2320Re: VC++ CSemaphore equivalent?
From: Jonathan Benedicto
Date: Mon, 12 Mar 2007 18:40
Date: Mon, 12 Mar 2007 18:40
34 lines
2138 bytes
2138 bytes
Robert G. Hoover wrote: > Display() uses... > > HDC hDC = GetDC(hWindow); > > hWindow is passed in as ShellForm->Handle which I assume is the handle to > the > window? (ShellForm is my main window, built from TCustomForm by BDS) Try commenting out the call to Display() and see if that cures the mouse lag. If it does, then it is highly likely that there is a sync issue in Display() causing the video to hiccup. > So if both threads are accessing the same memory then they'll still be > waiting > on each other If two threads try to access the same data, they will access it, but it will cause problems with the threading, causing, in your case, the video to hiccup. > and I wouldn't have seen it until now with this new > dual-processor? Correct. > And TThread won't help me one bit, eh? ;) Correct again. All TThread does is hide the BeginThread stuff. Jon
Technical Details
Message-ID:
<45f59e8e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45f57403@newsgroups.borland.com> <45f59433$1@newsgroups.borland.com> <45f5973e$1@newsgroups.borland.com> <45f598bf$1@newsgroups.borland.com> <45f59c41$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,411b13b57e2ea81a X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jonathan Benedicto" <invalid@nobody.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45f57403@newsgroups.borland.com> <45f59433$1@newsgroups.borland.com> <45f5973e$1@newsgroups.borland.com> <45f598bf$1@newsgroups.borland.com> <45f59c41$1@newsgroups.borland.com> In-Reply-To: <45f59c41$1@newsgroups.borland.com> Subject: Re: VC++ CSemaphore equivalent? Date: Mon, 12 Mar 2007 14:40:48 -0400 Lines: 35 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16386 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16386 NNTP-Posting-Host: 74.115.18.89 Message-ID: <45f59e8e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1173724814 74.115.18.89 (12 Mar 2007 11:40:14 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail