473,385 Members | 1,888 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,385 software developers and data experts.

DisconnectedContext 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):

DisconnectedContext 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

RuntimeCallableWrappers 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.IHTMLDocument2 (using as keyword)
- iterating over mshtml.IHTMLDocument2.all and casting appropriate elements
as mshtml.DispHTMLInputElement
- iterating over mshtml.IHTMLDocument2.forms and casting elements as
mshtml.DispHTMLFormElement
- 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 1406

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

Similar topics

6
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...
3
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...
3
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...
32
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
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...
0
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...
2
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...
6
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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,...
0
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...

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.