![]() |
Error statically linking to V10.40 |
Post Reply
|
| Author | |
snhd
Newbie
Joined: 09 July 2006 Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Topic: Error statically linking to V10.40Posted: 23 December 2006 at 12:28pm |
|
First-chance exception in app.exe: 0xC0000005: Access Violation. When I link with V10.31 everything works just fine.
The problem occurs while resizing the app.
void CMainFrame::OnSize(UINT nType, int cx, int cy)
{ CXTPFrameWnd::OnSize(nType, cx, cy); }
if (GetPaintManager()->BaseTheme() == xtpThemeRibbon) Output of Call Stack from my application : |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 December 2006 at 9:15am |
|
I can't reproduce :( Maybe you didn't add toolkt resources.
in GUI_Outlook try also add to res\GUI_Outlook.rc2" before #include "CodejockSample.rc"
#define _XTP_STATICLINK
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Kukis
Newbie
Joined: 24 May 2006 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 December 2006 at 11:00am |
|
Problem is related to a new handler
void CXTPStatusBar::OnWindowPosChanged(WINDOWPOS* lpwndpos) { CControlBar::OnWindowPosChanged(lpwndpos); if (GetPaintManager()->BaseTheme() == xtpThemeRibbon)
{ ........... } } Roots of the problem are GetPaintManager() call. It can return 0 if m_bCommandBarsTheme == FALSE
(at least i'm using this style, had to make quick fix myself) CXTPPaintManager* CXTPStatusBar::GetPaintManager() const
{ if (!m_bCommandBarsTheme) <---------------------- here return NULL; if (m_pCommandBars)
return m_pCommandBars->GetPaintManager(); return XTPPaintManager(); } Quick solution would be to change library and recompile, or add your own status bar and add handler
ON_WM_WINDOWPOSCHANGED() with check for NULL return: void CStatusBarEx::OnWindowPosChanged(WINDOWPOS* lpwndpos)
{ CControlBar::OnWindowPosChanged(lpwndpos); CXTPPaintManager* pManager = GetPaintManager();
if (pManager && pManager->BaseTheme() == xtpThemeRibbon) { ............... } } |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 December 2006 at 3:10pm |
|
Thanks. You right. Changed.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
snhd
Newbie
Joined: 09 July 2006 Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 December 2006 at 2:57am |
|
Hi Kukis
Thanks
Merry Christmas.
A very Happy & Prosperous New Year to you & all.
|
|
![]() |
|
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 |