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

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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?
 
Back
Top