Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Crash in ToolkitPro1113vc80!DrawTextApi()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash in ToolkitPro1113vc80!DrawTextApi()

 Post Reply Post Reply
Author
Message
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Topic: Crash in ToolkitPro1113vc80!DrawTextApi()
    Posted: 15 December 2008 at 4:39am
Hello,

our QA reports crashes from several client machines originating in code of XTPPaintManager's DrawTextApi() function. They run XP SP2/SP3.

The callstack of the crash gained from those clients (it's exactly the same by all of them) is this:

user32!GetPrefixCount+0x4c
user32!DT_GetExtentMinusPrefixes+0x3a
user32!DT_DrawStr+0x132
user32!DT_DrawJustifiedLine+0x2d
user32!AddEllipsisAndDrawLine+0x128
user32!DrawTextExWorker+0x1a1
user32!DrawTextExA+0xad
user32!DrawTextA+0x46
ToolkitPro1113vc80!CDC::DrawTextA+0x1e
ToolkitPro1113vc80!DrawTextApi+0x5b
ToolkitPro1113vc80!CXTPPaintManager::DrawControlText3+0x13c
ToolkitPro1113vc80!CXTPPaintManager::DrawControlText2+0x27c
ToolkitPro1113vc80!CXTPPaintManager::DrawControlToolBarParent+0x4a8
ToolkitPro1113vc80!CXTPPaintManager::DrawControl+0x7b

Do you have any idea why does the drawing of a CNemXTPControlButton crash inside User32.DLL?

Thanks, in advance!

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2008 at 2:06am

Hi,

DrawTextApi just call CDC::DrawText... Is there way to catch parameters passed to DrawText ? Maybe you have some weird text to draw...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2008 at 7:17am
Originally posted by oleg oleg wrote:

Maybe you have some weird text to draw...

Do you suspect there can be some very special character sequences in some non-English languages that GDI can't draw?

We have no special info about which texts can cause such a crash (if any), but on the other side, rest of the computers run the same version OK.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.