Article View: borland.public.cppbuilder.internationalization
Article #836Mixing RTL and Windows API for file I/O
From: Andrue Cope
Date: Wed, 19 Jun 2002 15:21
Date: Wed, 19 Jun 2002 15:21
17 lines
1700 bytes
1700 bytes
We have discovered that (apparently) if you mix calls to the RTL file I/O functions with Windows API calls your program becomes slightly unstable. In our case roughly 5% of the time we would get an AV or the program would just unload itself from memory. FWIW by 'mix' I don't mean sharing handles between the two function groups. I just mean some modules using the RTL for file I/O and others using the Windows API. In theory there should be no linkage but it appears from our experience that there is. One further point is that the Windows API calls were being made by a DLL whilst the EXE was making RTL calls. Andrue Cope [Bicester, UK] Team Thai Kingdom
Technical Details
Message-ID:
<VA.00001435.01a12ecd@email.address.sorry>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!netaxs.com!newsread.com!newshub.northeast.verio.net!verio!netnews.com!xfer02.netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10297d,62e1508239966256,start X-Google-Attributes: gid10297d,public X-Google-ArrivalTime: 2002-06-19 08:32:25 PST Date: Wed, 19 Jun 2002 16:21:07 +0100 Newsgroups: borland.public.cppbuilder.internationalization Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va Message-ID: <VA.00001435.01a12ecd@email.address.sorry> Subject: Mixing RTL and Windows API for file I/O From: Andrue Cope <not.a.valid@email.address.sorry> Reply-To: not.a.valid@email.address.sorry NNTP-Posting-Host: 193.131.113.252 X-Trace: dnews 1024500206 193.131.113.252 (19 Jun 2002 08:23:26 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!netaxs.com!newsread.com!newshub.northeast.verio.net!verio!netnews.com!xfer02.netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews