473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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.vsh ost.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.
--
Thanks.
Nov 3 '06 #1
1 4588
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?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:E8**********************************@microsof t.com...
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.vsh ost.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.
--
Thanks.

Nov 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Acacia | last post by:
How would you generate a random number in C++?
10
by: Virus | last post by:
Ok well what I am trying to do is have 1.) the background color to change randomly with 5 different colors.(change on page load) 2,) 10 different quotes randomly fadeing in and out in random...
16
by: Jason | last post by:
Hi, I need a way to use random numbers in c++. In my c++ project, when using the mingw compiler I used a mersenne twister that is publicly available and this did its job well. Now I have...
9
by: greeningster | last post by:
I have written an application in Visual C++ for a customer but it seems to crash randomly. Could anyone give me any help on how I could track this down ? Also, there appears there might be...
10
by: Brett Romero | last post by:
I have a VS.NET 2005 solution with 10 projects. I have unbinded all projects, closed and reopened the solution. When I build, via Nant, I copy all of the PDB and DLLs to the EXE bin/debug folder....
28
by: Elfour | last post by:
In c++ what is the code to make teh program randomly select a number?
2
by: John A. Bailo | last post by:
I upgrade a Windows Service VS.2003 project to VS.2005 I noticed two new files. MyProject.vshost.exe MyProject.vshost.config What are these? Do I need copy them to the target to run my...
0
by: urkel | last post by:
Hello everybody, I have these errors on C program that may be because of random number definition. I use an SSH to compile C like in Linux. May be you have idea whether the errors are due to the...
3
by: warth33 | last post by:
Hello Newbie in asp net here. I have been struggling with a problem for weeks, and after analyzing logs I found something new. The problem in short: I have a web app, not done in .net. It is...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.