Article View: borland.public.cppbuilder.nativeapi
Article #15158Re: Threads in DLLs (a weird problem)
From: Rob
Date: Thu, 17 Jul 2003 11:22
Date: Thu, 17 Jul 2003 11:22
32 lines
2249 bytes
2249 bytes
"MWP" <mwp@overclockers.com.au> wrote in message news:3f12ee7f$1@newsgroups.borland.com... > > Hi all... > > Is there any special way that threads need to be handled in DLLs? > > Ive found that if my app loads a DLL that uses threads, other windows software start to have problems. > > If my app loads a DLL that doesnt have threads, the problems dont occour. > > > The problems are for example: > Some applications wont start until my software ends (Explorer does this). > Some applications wont show dialogs until my software ends. > > Maybe my DLLs with threads is somehow stopping other applications from being able to create threads?? > Creating threads shouldn't be enough to cause the problems you're seeing. I'm guessing your DLL is maxing out some system resource, such as CPU time, memory, etc. For example, if it creates a large number of threads that could account for the problem. I'm assuming you have the source for both your application and the DLL. If so, try to create a small code sample (i.e. minimise the size of both the DLL and the application that uses it) that recreates your problem. That should help in tracking down the problem.
Technical Details
Message-ID:
<3f1687ee@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!rip!news.webusenet.com!peer01.cox.net!cox.net!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f12ee7f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,5457034f6904b31f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-17 04:37:59 PST From: "Rob" <nospam@nonexistant.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f12ee7f$1@newsgroups.borland.com> Subject: Re: Threads in DLLs (a weird problem) Date: Thu, 17 Jul 2003 20:52:15 +0930 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 211.26.115.5 Message-ID: <3f1687ee@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058441198 211.26.115.5 (17 Jul 2003 04:26:38 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!rip!news.webusenet.com!peer01.cox.net!cox.net!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail