I/O error 32 (share error) while opening executable

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Jonatan Magnusson

I/O error 32 (share error) while opening executable

Post by Jonatan Magnusson »

Hi,

I'm trying to run a win16 delphi application under Wine.

At one point of the execution the program tries to open its own exe file
and read some data from it.

At that point i get an error message dialog: "I/O error 32". A quick
google tells me that has to do with sharing of files.

So I launch the application with "WINEDEBUG=+file" and here's the log
right up until the message box is displayed:

---
trace:file:RtlGetFullPathName_U (L"C:\\DGTSYS\\lccflag1.sl2" 520
0x7e69b6c4 (nil))
warn:file:wine_nt_to_unix_file_name L"lccflag1.sl2" not found
in /home/jonatan/.wine/dosdevices/c:/dgtsys

trace:file:GetShortPathNameA "C:\\condi\\CONDILNK.EXE"
trace:file:GetShortPathNameW L"C:\\condi\\CONDILNK.EXE"
trace:file:GetShortPathNameW returning L"C:\\condi\\CONDILNK.EXE"

trace:file:CreateFileW L"C:\\condi\\CONDILNK.EXE" GENERIC_READ
GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE creation 3 attributes
0x0

trace:file:RtlDosPathNameToNtPathName_U (L"C:\\condi\
\CONDILNK.EXE",0x7e69b640,(nil),(nil))

trace:file:RtlGetFullPathName_U (L"C:\\condi\\CONDILNK.EXE" 520
0x7e69b384 (nil))

trace:file:wine_nt_to_unix_file_name L"\\??\\C:\\condi\\CONDILNK.EXE" ->
"/home/jonatan/.wine/dosdevices/c:/condi/CONDILNK.EXE"

warn:file:CreateFileW Unable to create file L"C:\\condi\
\CONDILNK.EXE" (status c0000043)

trace:file:CreateFileW returning 0xffffffff
---

I've made sure that the current user has read/write permission on
CONDILNK.EXE.

Any hints?

Does Wine not allow a program to open its own executable?


Regards,

Jonatan Magnusson
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: I/O error 32 (share error) while opening executable

Post by vitamin »

Jonatan Magnusson wrote:warn:file:CreateFileW Unable to create file L"C:\\condi\\CONDILNK.EXE" (status c0000043)
Indeed that is STATUS_SHARING_VIOLATION. What the Wine version?
Jonatan Magnusson

I/O error 32 (share error) while opening executable

Post by Jonatan Magnusson »

mån 2009-03-23 klockan 21:25 -0500 skrev vitamin:
Jonatan Magnusson wrote:
warn:file:CreateFileW Unable to create file L"C:\\condi\\CONDILNK.EXE" (status c0000043)
Indeed that is STATUS_SHARING_VIOLATION. What the Wine version?




Hi,

I've tried this on both Ubuntu 8.04 and 8.10. On 8.04 the version is
1.0.0 (1.0.0-1ubuntu4 to be exact).

Regards,

Jonatan Magnusson
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

I/O error 32 (share error) while opening executable

Post by austin987 »

On Tue, Mar 24, 2009 at 3:12 AM, Jonatan Magnusson <[email protected]> wrote:
mån 2009-03-23 klockan 21:25 -0500 skrev vitamin:
Jonatan Magnusson wrote:
warn:file:CreateFileW Unable to create file L"C:\\condi\\CONDILNK.EXE" (status c0000043)
Indeed that is STATUS_SHARING_VIOLATION. What the Wine version?




Hi,

I've tried this on both Ubuntu 8.04 and 8.10. On 8.04 the version is
1.0.0 (1.0.0-1ubuntu4 to be exact).

Regards,

Jonatan Magnusson




Upgrade. Latest is 1.1.17.

--
-Austin
Jonatan Magnusson

I/O error 32 (share error) while opening executable

Post by Jonatan Magnusson »

tis 2009-03-24 klockan 09:12 +0100 skrev Jonatan Magnusson:
mån 2009-03-23 klockan 21:25 -0500 skrev vitamin:
Jonatan Magnusson wrote:
warn:file:CreateFileW Unable to create file L"C:\\condi\\CONDILNK.EXE" (status c0000043)
Indeed that is STATUS_SHARING_VIOLATION. What the Wine version?
Hi,

I've tried this on both Ubuntu 8.04 and 8.10. On 8.04 the version is
1.0.0 (1.0.0-1ubuntu4 to be exact).

Regards,

Jonatan Magnusson
I've now upgraded to 1.1.17 using the repositories pointed to by
winehq.org, but i still get the exact same error and debug messages.

Regards,
Jonatan
Locked