Print Page | Close Window

Crash in ToolkitPro1113vc80!DrawTextApi()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=12927
Printed Date: 21 December 2024 at 10:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash in ToolkitPro1113vc80!DrawTextApi()
Posted By: akur
Subject: Crash in ToolkitPro1113vc80!DrawTextApi()
Date 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!




Replies:
Posted By: Oleg
Date 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


Posted By: akur
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net