🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Modal dialog in main thread causes file io in another to fail

#5713
From: Remy Lebeau (TeamB)
Date: Wed, 20 Jul 2005 20:01
21 lines
1654 bytes
"Pontius" <mfbscs@mchsi.com> wrote in message
news:42dea200$1@newsgroups.borland.com...

> This works fine, except if I happen to open a modal dialog in the
> main form, like a FileOpenDialog for example. If it's open while
> the thread in the second form makes the call to CreateFile(), then
> CreateFile() will fail.

Fail how exactly?  What error does it report?  My guess would be that the
dialog is operating on the same file that the thread is trying to access,
and the dialog is not setting sharing attributes on the file when opening
it.

> Is there any documentation that says having a modal dialog open
> will cause all file IO in all other threads to fail? I've never seen any.

Modal dialogs in general do not have any effect on file I/O.


Gambit
Technical Details
Message-ID: <42deaeb1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42dea200$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ea5ae54620c4626a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42dea200$1@newsgroups.borland.com>
Subject: Re: Modal dialog in main thread causes file io in another to fail
Date: Wed, 20 Jul 2005 13:01:08 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42deaeb1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1121889969 68.69.17.41 (20 Jul 2005 13:06:09 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail