473,788 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DisconnectedCon text was detected: BHO/Explorer Bar

I am developing an BHO/Explorer Bar using Addin Express for Internet
Explorer (a framework to get MSHTML/COM Interop newbies like myself off the
ground). Target browser is IE7.

Occasionally, I get this message (not reliably reproducible but seems to
happen with >1 tabs open -- so >1 BHO instances -- and around tab open/close
events):

DisconnectedCon text was detected

Message: Context 0x15dd58' is disconnected. Releasing the interfaces from
the current context

(context 0x15d798).This may cause corruption or data loss. To avoid this
problem, please ensure

that all contexts/apartments stay alive until the application is completely
done with the

RuntimeCallable Wrappers that represent COM components that live inside them.
Addin Express developers have been very helpful with most things I'm not
able to resoolve this. They suggest that I am not calling Release() on some
interfaces and to review my code. But I have no idea ahat to look for.

As I am just starting out with this I have only skeletal code sufficient for
proof-of-concept purposes. The only mildly esoteric things that I am doing
include:

- casting an object as mshtml.IHTMLDoc ument2 (using as keyword)
- iterating over mshtml.IHTMLDoc ument2.all and casting appropriate elements
as mshtml.DispHTML InputElement
- iterating over mshtml.IHTMLDoc ument2.forms and casting elements as
mshtml.DispHTML FormElement
- assigning event handlers for some document events (button.onclick ,
form.onsubmit)

I don't know where to start tracking these errors. Is there any way to
identify the involved contexts (eg 0x15dd58) in the debugger and trap these
events? If not, how can I get a handle on this to track down the problem?

There is an axe over my head. Thanks for helping out.

Kim
Jun 27 '08 #1
0 1432

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

Similar topics

6
28072
by: Chandika | last post by:
Hi all, One of my database was suspected, So I try to recover database then it gives this error Err. 823 Torn Page Detected 823, ... 24, spid51 i/o error Torn Page (Detected) during read at offset 0x0000000040e0000 in file .........
3
43229
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically receive one of these IBM.Data.DB2.DB2Exception messages: ERROR SQL30081N A communication error has been detected. Communication protocol being used: ‘TCP/IP'. Communication API being used: ‘SOCKETS'. Location where the error was detected:...
3
7044
by: Laura | last post by:
I've just installed the DB2 Run-time client in a Solaris machine. Then I finnish the installation configuring the connection: 1. machine catalog was OK: ========================== $ db2 catalog tcpip node atlas remote dsroracle server 8100 DB20000I The CATALOG TCPIP NODE command completed successfully. DB21056W Directory changes may not be effective until the directory cache is refreshed. 2. database catalog was OK:
32
5949
by: Clunixchit | last post by:
How can i read lines of a file and place each line read in an array? for exemple; array=line1 array=line2 ...
2
1173
by: Victor Sayas | last post by:
i hope anyone can help me with this problem, everytime i test compile my web application in asp.net, this error message pops out and i cannot open my internet explorer. after encountering this problem, i also cannot open my windows explorer.
0
1311
by: Dean Hinson | last post by:
Hello, I have received this message when I exit a program I am working on... DisconnectedContext was detected Message: Context 0x18fbd0' is disconnected. Releasing the interfaces from the current context (context 0x18fa80).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the application is completely done with the RuntimeCallableWrappers that represent COM...
2
4851
by: mr_doles | last post by:
I am trying to match users from one database with users in AD to get an e-mail address. The program works but right before it exits I get the following message. DisconnectedContext was detected Message: Context 0x1a04b0' is disconnected. Releasing the interfaces from the current context (context 0x1a0340).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/ apartments stay alive until the...
6
7531
by: Zytan | last post by:
Make a WebBrowser control, and make a bunch of timers / threads that continually call WebBrowser.Document.Write. Eventually, this happens: DisconnectedContext was detected Message: Context 0x1a1530' is disconnected. Releasing the interfaces from the current context (context 0x1a13c0).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/ apartments stay alive until the applicationis completely...
0
9656
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
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
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...
0
10175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9969
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...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7518
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
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.