How can I locate and fix the random errors with my .vshost.exe fil

G

Guest

I'm getting the follow error message randomly and then my application
crashes. How can I locate the bug code and how can I fix this?

Managed Debugging Assistant 'DisconnectedContext' has detected a problem in
'C:\Projects\UnityAdmin\bin\Release\UnityAdmin.vshost.exe'.
Additional Information: Context 0x18fac8' is disconnected. Releasing the
interfaces from the current context (context 0x18f978).This may cause
corruption or data loss. To avoid this problem, please ensure that all
contexts/apartments stay alive until the applicationis completely done with
the RuntimeCallableWrappers that represent COM components that liveinside
them.
 
N

Nicholas Paldino [.NET/C# MVP]

Pucca,

It is most likely that the errors are anything but random. If anything,
your code is throwing exceptions.

The thing is, are you using the vshost.exe file in production, or is
this when you run it from VS.NET? You shouldn't be getting this from within
VS.NET, and you shouldn't be running this in production.

Can you give more information?
 

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