Home > Archive > VC Language > June 2005 > Sharing violationin fopen function with "w" flag
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Sharing violationin fopen function with "w" flag
|
|
| mdiezb 2005-06-03, 9:09 am |
| Hi,
I have a a application developed in Visual C++ 6.0. It is running very well
in Windows 2000 platform but in XP I have got some random problems. I have
been testing and I have seen, I think, that the problem is in fopen function.
I am running VMWare machine with XP Pro Service Pack 2. The VMWare is
running on Windows 2000. The files are in Windows 2000 and I read the filed
trought the net.
If I run the same application in Windows 2000 there is not problem. It run OK.
The problem is follow: When I call the fopen function in a exact pont,
sometimes the system going to down and slowly and when the system return the
file hanlde, sometimes return OK and sometimes return 0x00000. I have use the
"filemon" tool and, in this situation, the filemon shows: "Sharing violation
error"
Also, I have compared the systems calls with filemon in W2k and XP and I hav
seen that the fopen funtion, in W2k, make a "Query" call but in XP not.
I have spent very time in order to discover the problem but I have not seen
the solution.
Also I have installed several hotfixes after the SP2.
Thanks.
| |
| Mark Randall 2005-06-03, 4:02 pm |
| Go prod System Internals website and download proc monitor, see if anything
else has that file open... an antivirus, for example.
--
- Mark Randall
http://zetech.swehli.com
"mdiezb" <mdiezb@discussions.microsoft.com> wrote in message
news:E38D60DE-E312-4A92-A521-8909FEA6475E@microsoft.com...
> Hi,
>
> I have a a application developed in Visual C++ 6.0. It is running very
> well
> in Windows 2000 platform but in XP I have got some random problems. I have
> been testing and I have seen, I think, that the problem is in fopen
> function.
>
> I am running VMWare machine with XP Pro Service Pack 2. The VMWare is
> running on Windows 2000. The files are in Windows 2000 and I read the
> filed
> trought the net.
>
> If I run the same application in Windows 2000 there is not problem. It run
> OK.
>
> The problem is follow: When I call the fopen function in a exact pont,
> sometimes the system going to down and slowly and when the system return
> the
> file hanlde, sometimes return OK and sometimes return 0x00000. I have use
> the
> "filemon" tool and, in this situation, the filemon shows: "Sharing
> violation
> error"
>
> Also, I have compared the systems calls with filemon in W2k and XP and I
> hav
> seen that the fopen funtion, in W2k, make a "Query" call but in XP not.
>
> I have spent very time in order to discover the problem but I have not
> seen
> the solution.
>
> Also I have installed several hotfixes after the SP2.
>
> Thanks.
>
>
|
|
|
|
|