![]() |
CreateToolbar |
Post Reply ![]() |
Author | |
slowsail ![]() Newbie ![]() Joined: 17 September 2008 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 09 April 2009 at 8:44pm |
Hi,
I create a toolbar in a view with the codes, VERIFY(m_maskviewBar.CreateToolBar(WS_TABSTOP|WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS, this)); VERIFY(m_maskviewBar.LoadToolBar(IDR_MASKVIEW_BAR)); CXTPImageManager* pImageManager = XTPImageManager(); pImageManager->SetIcons(IDR_MASKVIEW_BAR, IDB_MASKVIEW_BAR_FOR_ADAPTIVEMESH); And it's a dll project. The toolbar is generated properly ![]() But it crashes when I click OK or Cancel to quit the DLL. It says "0x00000014" memory is can not be "read"... |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Try in ExitInstance of your App of dll add CXTPPaintManager::Done() and XTPImageManager()->RemoveAl();
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
slowsail ![]() Newbie ![]() Joined: 17 September 2008 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
oleg,
Thanks for your kindly help. But it still crashes. I also confirm that it's not problem of CXTPImageManager. Actually the crash is still there after I comment the following two line of codes, /////////////////////////////////// CXTPImageManager* pImageManager = XTPImageManager(); pImageManager->SetIcons(IDR_MASKVIEW_BAR, IDB_MASKVIEW_BAR_FOR_ADAPTIVEMESH); /////////////////////////////////// It seems that CreateToolBar() or LoadToolBar() generates the crash. |
|
![]() |
|
slowsail ![]() Newbie ![]() Joined: 17 September 2008 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
I traced the codes, it breaks here.
![]() BTW: I use Extreme Toolkit pro 12.02. |
|
Intel Q6600
Windows XP SP3 Extreme Toolkit pro 12.02 |
|
![]() |
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 |