Bosna i Hercegovina – Hrvatski. It’s a pretty deep chunk of code. Net 5 Jan 9, vb. Specifying STA seems to have fixed it. Thank you very much for your help. Wednesday, January 9, 4:
|Date Added:||3 November 2009|
|File Size:||16.49 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
Specifying STA seems to have fixed it. You must log in or register to reply here.
The process cannot access the file because it is being used by another process. Am I using the Marshal. If the lines using the DSOleFile. So I have the following questions besides the exception.
DSOlefile and VB.Net
The document is in use by another program and cannot be opened for read-write access. You can use this in your custom applications to read and to edit the OLE document properties that are associated with Microsoft Office files, such as the following: Thanks for the help. NET memory management is nondeterministic, which can cause problems when you need to deterministically release COM objects in server applications, such as ASP. The test app was all one thread.
ReleaseComObject and its dangers.
VB.NET and DSOFile.dll: QueryInterface Failure
Well, I wrote a simple little test application and it worked without issue. Tell us what we can do to improve the article Submit. Jan 27, Posts: The interface appears to have changed from dsoledile version 1. ReleaseComObject method decrements the reference count of the supplied runtime callable wrapper.
DSOlefile and | PC Review
But on my client’s machine, it fails with the following error: I am new to. Visual Basic Interop and Upgrade https: The object is not connected to the document it was removed or the document was closed. The real one is running in a a seperate thread to the main executable. Skip to main content.
Have you initialized the ApartmentState of the threads you are creating in your service? Should I set the object to Nothing after using Marshal.
Thread starter Robert Start date Jul 24, South Africa – English. You can use Marshal.
Problem with and vbscript
The component converts the data to Automation friendly data types for easier use by high level programming languages such as Visual Basic 6. This forum supports Visual Daolefile.
Thanks for the reply. You’ll need to choose a username for the site, which only take a couple of moments. I didn’t do any hard-coding of the GUIDs or anything.