473,836 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 'DisconnectedCo ntext' has detected a problem in
'C:\Projects\Un ityAdmin\bin\Re lease\UnityAdmi n.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 RuntimeCallable Wrappers that represent COM components that liveinside
them.
--
Thanks.
Nov 3 '06 #1
1 4604
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.co m

"Pucca" <Pu***@discussi ons.microsoft.c omwrote in message
news:E8******** *************** ***********@mic rosoft.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 'DisconnectedCo ntext' has detected a problem
in
'C:\Projects\Un ityAdmin\bin\Re lease\UnityAdmi n.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 RuntimeCallable Wrappers 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
20710
by: Acacia | last post by:
How would you generate a random number in C++?
10
2513
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 spots on the webpage. with a delay timer on them, so they keep changing as the page is open. Not random each time the page is loaded. If anyone can help it would be greatly appreaciated, I have tried many of
16
4235
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 shelled out on VC++ 6.0 compiling that same code is proving difficult. I am not too worried how I generate random numbers in c++, as long as it is sufficiently random. Can anybody help me out in getting what I want from VC++?
9
3860
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 memory leaks too. How can i track these down ?
10
23664
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. Source Safe is not running. I see a myapp.vshost.exe in the bin/debug folder. I cannot delete it. I can't kill that process either. When I do a build, I want to clean out the bin/debug folder. However, the myapp.vshost.exe file locks DLLs...
28
2599
by: Elfour | last post by:
In c++ what is the code to make teh program randomly select a number?
2
3320
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 Windows service?
0
1907
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 random number generators in my program do not match those available from libraries in the SSH. My C program uses these libraries #include<stdio.h> #include<stdlib.h> #include<math.h> #include<assert.h> #include<fftw3.h> // These are the...
3
3726
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 apache/php stuff. A few php pages make call to stand alone apps developed in c#. The c# apps makes operations on the windows media services, doing stuff like creating/ removing publishing points.
0
9825
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10852
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10596
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10255
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5829
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4459
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4021
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.