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

Crash when using RichEdit 2.0 and Composite Control

9 views
Skip to first unread message

atloc...@yahoo.com

unread,
Aug 28, 2006, 6:40:42 PM8/28/06
to
Hi, I'm trying to make a composite control that has a RichEdit 2.0
control in the dialog. When I add the RichEdit item from the toolbox
to my dialog and then run the control in the ActiveX Test container as
soon as the control starts to load I get a unhandled exception. This
occurs from a brand new ATL project with a brand new composite control
and seems to ONLY crash in the ActiveX Test Container (I.e. i have run
the control embedded in other software and it works fine).. Any help
with how I can get this working in the test container would be great!
Thanks!

Exception:
Unhandled exception at 0x1008f73d (Polygon.dll) in tstcon32.exe:
0xC0000005: Access violation reading location 0x00000001.

A break point is set at: Line 2117 of atlwin.h

My auto variables at this time are:
+ this 0x0012efc0 ATL::CAxWindowT<ATL::CWindow> * const
+ iid {IID_IAxWinAmbientDispatch} const _GUID &
ppUnk 0x0012efb4 void * *
hr S_OK HRESULT
+ spUnk {0x00000001} ATL::CComPtr<IUnknown>


And a call stack of:
> Polygon.dll!ATL::CAxWindowT<ATL::CWindow>::QueryHost(const _GUID & iid={...}, void * * ppUnk=0x0012efb4) Line 2117 + 0x25 bytes C++

Polygon.dll!ATL::CAxWindowT<ATL::CWindow>::QueryHost<IAxWinAmbientDispatch>(IAxWinAmbientDispatch
* * ppUnk=0x0012efb4) Line 2124 C++

Polygon.dll!ATL::CComCompositeControl<CCompCtl>::BackgroundColorEnumProc(HWND__
* hwnd=0x001710b0, long l=16777215) Line 1605 C++
user32.dll!77d4ccd1()
[Frames below may be incorrect and/or missing, no symbols loaded for
user32.dll]
user32.dll!77d4da57()

Polygon.dll!ATL::CComCompositeControl<CCompCtl>::SetBackgroundColorFromAmbient()
Line 1596 + 0x18 bytes C++
Polygon.dll!ATL::CComCompositeControl<CCompCtl>::Create(HWND__ *
hWndParent=0x000e102c, tagRECT & __formal={...}, long dwInitParam=0)
Line 1630 C++

Polygon.dll!ATL::CComCompositeControl<CCompCtl>::CreateControlWindow(HWND__
* hWndParent=0x000e102c, tagRECT & rcPos={...}) Line 1833 + 0x15
bytes C++
Polygon.dll!ATL::CComControlBase::InPlaceActivate(long iVerb=-1,
const tagRECT * __formal=0x0012f738) Line 996 + 0x1a bytes C++
Polygon.dll!ATL::IOleObjectImpl<CCompCtl>::DoVerbShow(const tagRECT *
prcPosRect=0x0012f738, HWND__ * __formal=0x000e102c) Line 2123 + 0x11
bytes C++
Polygon.dll!ATL::IOleObjectImpl<CCompCtl>::DoVerb(long iVerb=-1,
tagMSG * __formal=0x00000000, IOleClientSite * pActiveSite=0x008bcde4,
tagMSG * __formal=0x00000000, HWND__ * hwndParent=0x000e102c, const
tagRECT * lprcPosRect=0x0012f738) Line 2220 + 0x13 bytes C++
mfc80.dll!COleClientItem::Activate(long nVerb=-1, CView *
pView=0x000e102c, tagMSG * lpMsg=0x00000000) Line 70 C++
mfc80.dll!COleClientItem::DoVerb(long nVerb=-1, CView *
pView=0x008b7778, tagMSG * lpMsg=0x00000000) Line 83 C++
tstcon32.exe!0041f5e9()
tstcon32.exe!004236bd()
tstcon32.exe!00416bd8()
tstcon32.exe!00427164()
user32.dll!77d48734()
user32.dll!77d6e54f()
user32.dll!77d6e592()
user32.dll!77d6b00e()
user32.dll!77d6b00e()
user32.dll!77d6b00e()
user32.dll!77d6c99e()
mfc80.dll!_AfxDispatchCmdMsg(CCmdTarget * pTarget=0x00000000,
unsigned int nID=57856, int nCode=1243980, void (void)* pfn=0x00000000,
void * pExtra=0x00000000, unsigned int nSig=56, AFX_CMDHANDLERINFO *
pHandlerInfo=0x00000000) Line 82 C++
mfc80.dll!CCmdTarget::OnCmdMsg(unsigned int nID=57856, int nCode=0,
void * pExtra=0x00000000, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000)
Line 381 + 0x16 bytes C++
mfc80.dll!CView::OnCmdMsg(unsigned int nID=57856, int nCode=0, void *
pExtra=0x00000000, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000) Line
158 + 0x11 bytes C++
mfc80.dll!CFrameWnd::OnCmdMsg(unsigned int nID=57856, int nCode=0,
void * pExtra=0x00000000, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000)
Line 887 + 0x15 bytes C++
tstcon32.exe!0040bb20()
mfc80.dll!CWnd::OnCommand(unsigned int wParam=0, long lParam=0) Line
2299 + 0xd bytes C++
mfc80.dll!CFrameWnd::OnCommand(unsigned int wParam=57856, long
lParam=0) Line 317 + 0xf bytes C++
mfc80.dll!CWnd::OnWndMsg(unsigned int message=273, unsigned int
wParam=57856, long lParam=0, long * pResult=0x0012fd1c) Line 1755 +
0x10 bytes C++
mfc80.dll!CWnd::WindowProc(unsigned int message=273, unsigned int
wParam=57856, long lParam=0) Line 1741 + 0x17 bytes C++
mfc80.dll!AfxCallWndProc(CWnd * pWnd=0x00000000, HWND__ *
hWnd=0x001210a2, unsigned int nMsg=273, unsigned int wParam=57856, long
lParam=0) Line 243 C++
mfc80.dll!AfxWndProc(HWND__ * hWnd=0x001210a2, unsigned int nMsg=273,
unsigned int wParam=57856, long lParam=0) Line 388 + 0x10 bytes C++
mfc80.dll!AfxWndProcBase(HWND__ * hWnd=0x001210a2, unsigned int
nMsg=273, unsigned int wParam=57856, long lParam=0) Line 407 + 0x16
bytes C++
user32.dll!77d48734()
user32.dll!77d48816()
mfc80.dll!CThreadSlotData::GetThreadValue(int nSlot=0) Line 265 C++
user32.dll!77d489cd()
mfc80.dll!CWnd::FromHandle(HWND__ * hWnd=0x00154fa8) Line 311 C++
user32.dll!77d496c7()
mfc80.dll!AfxInternalPumpMessage() Line 183 C++
mfc80.dll!CWinThread::Run() Line 625 + 0x7 bytes C++
mfc80.dll!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__
* hPrevInstance=0x00000000, char * lpCmdLine=0x00151f28, int
nCmdShow=1) Line 47 + 0x7 bytes C++
tstcon32.exe!0042bc01()
kernel32.dll!7c816fd7()

Tunturi

unread,
Aug 28, 2006, 10:32:50 PM8/28/06
to
Just one more addition, I'm using Visual Studio .NET 2005, however i've
tried the same thing in 2003 and got pretty much the same result..
0 new messages