🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #664

Re: DLL and currency issues

#664
From: Colin B Maharaj
Date: Sun, 17 Feb 2008 23:53
19 lines
1738 bytes
OK after a month of checking (on and off)
I revisited the DLL I wrote, and the code
was horrible. I wrote this about 6 years ago...
problems were....

1. No proper encapsulation of variables with objects
    (I was using global variables)
2. Non thread safe code and function calls.
3. Same temporary file names used throughout
    (ridiculous when running con-currently)
4. Other concurrency issues.

I must admit I learn't a lot about multi-threading
design in the last few years - now onto SMP!

dhoke wrote:
> An access violation occurs where?
> 
> Doesn't look like it would happen in the code you presented, 
Technical Details
Message-ID: <47b8c90f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4795f94a$1@newsgroups.borland.com> <4796122d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ab05be4dbc268be
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 17 Feb 2008 19:53:51 -0400
From: Colin B Maharaj <noreply@myhost.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: DLL and currency issues
References: <4795f94a$1@newsgroups.borland.com> <4796122d$1@newsgroups.borland.com>
In-Reply-To: <4796122d$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 080217-0, 02/17/2008), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 190.58.50.199
Message-ID: <47b8c90f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1203292431 190.58.50.199 (17 Feb 2008 15:53:51 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail