Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with ActiveX control - It crashes

1 view
Skip to first unread message

Kiran

unread,
Jan 10, 2008, 2:21:36 AM1/10/08
to
Hi All,

I have created an ActiveX control to work from IE. My aim is to create
a new window (mainframe) from the control and do my job there.
Everything goes fine and I have created the mainframe and added some
splitters and all those stuff.

On one command, I have to create a new worker thread and fetch data
from server. Then I have to display that data using another ActiveX
control on the mainframe (which is also mine). When I launch my
application, my mainframe displays correctly. But, when I click on the
Test Container, my application crashes.

Upon investigation, I realized that, the crash is from the worker
thread. Problem is while invoking my viewer control from thread. All
pointers got disturbed and the m_hWnd of the control is 0xfeefee,
which is causing the problem. This is happening only when I change
focus to Test Container. The same kind of behavior is there when I
launch my control my IE. If I click on the IE window, my main ActiveX
crashes.

Any ideas why this is happening? Any help is greatly appreciated.

Thanks in advance,
KVRN Kiran Kumar.

Kiran

unread,
Jan 10, 2008, 4:43:06 AM1/10/08
to
I tried to get the handle of the viewer control from worker thread,
but, I am getting m_pCtrlCont as NULL, which is causing the
application to fire an assertion.

Any clues?

0 new messages