Click here to Skip to main content
11,648,785 members (82,770 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC10.0
Hi Experts,

I have a problem while using MSXML2::IXMLDOMDocumentPtr save() function. I have an application which listens to a port. The application is creating different xmls while recieving requests and saves those created xml's in a folder in the "AppData". There are about 30 request and in response 30 xml's were created. The xml's are named as "Resp1.xml, Resp2.xml, Resp3.xml, etc".

But some of the time application is thrown an exception at the point of code where saving the xml.
This is not happening all the time. The exception says "The process can't access the file because it is being used up by another process".

Please help me .

Thanks,
Satheesh
Posted 13-Apr-13 6:53am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I doubt we'd be able to help you with this online, as you'd probably need to debug it. At the very least some more information would be needed.

However, having said that:

1) Are you making sure that you close (dispose) any object (e.g. StreamWriter) that you use to access the file?
2) Have you tried to find out what is locking the file - e.g. by using process explorer? Is it your application or another one?

Regards,
Ian.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 F-ES Sitecore 409
1 CPallini 370
2 OriginalGriff 334
3 Kornfeld Eliyahu Peter 324
4 Sergey Alexandrovich Kryukov 254
0 OriginalGriff 1,512
1 Sergey Alexandrovich Kryukov 1,022
2 jyo.net 994
3 DamithSL 986
4 CPallini 945


Advertise | Privacy | Mobile
Web04 | 2.8.150804.4 | Last Updated 13 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100