![]() |
Taskpanel using in COM Component gvs erro |
Post Reply
|
| Author | |
jigarmehtamscit
Groupie
Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Topic: Taskpanel using in COM Component gvs erroPosted: 10 March 2006 at 2:12pm |
|
Hi,
I am using CXTPTaskPanel in my ActiveX COM Component which is also written in Visual C++. In debug build, Task panel is initialized properly, its very fine till now, but, i am getting wincore.cpp (line 986) [snap attached] debug assertion failure, when I hover on the task panel. What I do is simply popping up the dialog on some event and in that dialog, only one task panel is there. I initialize the task panel through following code. void CPropGridDlg::InitTaskPanel() { // TODO: Add your control notification handler code here //CXTPPaintManager::SetTheme(xtpThemeOffice2003); XTThemeManager()->SetTheme(xtThemeOffice2003); CRect rectClientArea; RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0, CWnd::reposQuery, rectClientArea); CXTPClientRect rc(this); rc.top = rectClientArea.top + 5; rc.right = 150; rc.bottom = rc.bottom - 20; if (!m_wndTaskPanel.Create(WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS| WS_CLIPCHILDREN, rc, this, IDD_PROPGRID_DIALOG)) { MessageBox("Failed to create.."); } //m_wndTaskPanel.SetTheme(xtpTaskPanelThemeNativeWinXPPlain) ; //m_wndTaskPanel.SetTheme(xtpTaskPanelThemeNativeWinXP); m_wndTaskPanel.SetTheme(xtpTaskPanelThemeShortcutBarOffice20 03); m_wndTaskPanel.SetOwner(this); CXTPTaskPanelGroup* pGroupLighting = m_wndTaskPanel.AddGroup(IDS_ABOUTBOX); pGroupLighting->AddLinkItem(IDS_ABOUTBOX, 0); pGroupLighting->AddLinkItem(IDS_ABOUTBOX, 1); pGroupLighting->AddLinkItem(IDS_ABOUTBOX, 2); m_wndTaskPanel.SetAnimation(xtpTaskPanelAnimationYes); m_wndTaskPanel.Reposition(TRUE); } The strange is, Task panel is initialized and shown properly but when I hover my mouse on any area of task panel, it gives this debug assertion error. please reply me at the earliest, what should I do to solve this.. I am using Visual Studio 6.0 (visual c++ 6.0).. The debug assertion error I am getting is, ![]() |
|
|
Regards,
Jigar Mehta |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 March 2006 at 12:42pm |
|
Show Call Stack.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jigarmehtamscit
Groupie
Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 March 2006 at 2:56pm |
|
Following is the call stack.. If i put the same thing in my dialog based application its working. Just in activeX control its not working and in activeX too, its giving debug error while hovering the mouse over the task panel area, till that time its perfect. // TODO: Add your control notification handler code here pGroup3DText->AddTextItem("Right"); pGroup3DText->AddTextItem("Top"); pGroup3DText->AddTextItem("Bottom"); Can you tell me why it is happening ?
|
|
|
Regards,
Jigar Mehta |
|
![]() |
|
jigarmehtamscit
Groupie
Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 March 2006 at 2:57pm |
|
Oh.. I think you mean something different by call stack. Can you please tell me how should I get call stack ?
|
|
|
Regards,
Jigar Mehta |
|
![]() |
|
jigarmehtamscit
Groupie
Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 March 2006 at 3:06pm |
|
I think following information will be helpful to you.. Following are the lines debugger shown to me while breaking at assertion,
Now, providing you with call context.. |
|
|
Regards,
Jigar Mehta |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 March 2006 at 3:53pm |
|
What version of Toolkit do you have? It looks like conflict of two MFC based ocx... Do you use another ocx in application or in your ocx? |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |