🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2552

Indy 9 SysLog in a DLL

#2552
From: Paul
Date: Sun, 26 Mar 2006 08:41
22 lines
1761 bytes
Hi,

I'm trying to wrap the Indy 9 SysLog Client into a DLL.  I've got it 
basically working, but my application hangs when it tries to free the DLL. 
The DLL is loaded with  "hDLL = LoadLibrary("CTSsyslogClient.dll");" and 
freed with "FreeLibrary(hDLL);".

If I comment out the "FreeLibrary(hDLL);" is does not hang, and CodeGuard 
doesn't throw up any errors.  The handle is not corrupted when getting to 
free, so it isn't that.

Also, I've tried not setting the TIdSysLog to active, so its instantiated 
but not used, and TIdSysLogMessage are constructed, but dropped (as 
TIdSysLog is not active),  In this scenario freeing the DLL does not hang 
the application.

So it seems to be connected to sending messages to TIdSysLog which 
eventually stops the DLL from unloading.

Does anyone have any ideas or clues?

Paul 
Technical Details
Message-ID: <442645a5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed01.chello.at!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a7a7e5cdcf8a0abf,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Paul" <plmacca@clara.co.uk>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Indy 9 SysLog in a DLL
Date: Sun, 26 Mar 2006 08:41:26 -0000
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 86.132.252.208
Message-ID: <442645a5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1143358885 86.132.252.208 (25 Mar 2006 23:41:25 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed01.chello.at!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail