Embedding Visio in .NET: loaderlock error

B

b.alex

Hi,

I'm trying to create a .Net application with a Visio drawing control on a
WinForm. I create the minimum application: a WinForm with the drawing control
on it, and no code using it. When I run the application and exit, I get a
LoaderLock MDA error.

I've Googled this problem and come up with nothing helpful. Some people who
have run into this have been advised to turn off the LoaderLock warning in
their debugger, but that just hides the problem: the app still doesn't
terminate under the debugger.

If I run outside of the debugger, the process does terminate, though there's
no way to tell if it did so gracefully. And even if it did, ignoring the
error is not as good as solving it.

So, has anyone solved the LoaderLock error? It seems to me that everyone
embedding Visio in .NET must've encountered it.

Thank you,
Bob Alexander
 
M

Mark Nelson [MS]

You could review the ActiveX control sample in the Visio SDK to see how your
code compares.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
B

b.alex

Hi Mark,

Thank you for replying. I tried the sample in the Visio SDK, Samples\Office
Plan\CSharp\Visual Studio 80, ran it under Visual Studio 2008, and got the
same problem: a LoaderLock error when I exited.

So the problem is not in my program. It might be in the Visual Studio 2008
environment, or .NET 3.5, or something specific to my machine.

Are you able to run the Office Plan sample in VS 2008 without error?

Thanks,
Bob
 
M

Mark Nelson [MS]

Yes, I have run that sample application under VS 2008 on Windows Vista
without error.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top