Print Page | Close Window

QuickPDF freeze with 100% cpu usage

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1187
Printed Date: 29 Sep 24 at 1:21AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: QuickPDF freeze with 100% cpu usage
Posted By: cristian
Subject: QuickPDF freeze with 100% cpu usage
Date Posted: 27 Aug 09 at 9:52AM
Hi,

I am trying to create a table and write some data into the rows. For this I use some HTML tags like <ul> an <li> to get a nice unordered list with bullets beginig each element. Everithing seems to work (except font size for which I already posted a topic here http://www.quickpdf.org/forum/topic1186_post5488.html#5488 ) .
However if I try to enter a list element wider then the cell QuickPDF will freeze in DrawTableRows() with 100% CPU usage.

To ilustrate the problem I modified the sample program located in C:\Program Files\Quick PDF Library\Samples\CPlusPlus\cplusplus-dll-helloworld.zip .

Just add the following lines after DrawText() .

int tableid = QP.CreateTable(1,1);
QP.SetTableRowHeight(tableid,1,1,150);
QP.SetTableColumnWidth(tableid,1,1,150);
QP.SetTableCellContent(tableid,1,1,"<ul><li>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</li></ul>");
QP.DrawTableRows(tableid,100, 500,150,1,1);




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk