This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Infinite loop in PrettyWriter
- From: Wen-Chun Ni <wcn at tbcommerce dot com>
- To: Kawa List <kawa at sources dot redhat dot com>
- Date: Fri, 29 Nov 2002 10:59:38 -0800
- Subject: Infinite loop in PrettyWriter
Hi Per,
When I was testing my program, certain string (FString really) will
cause the program to hang. I traced the problem to the code to
gnu.text.PrettyWriter.
Inside the method indexColumn(), the loop
while (todo > 0)
{
...
int size = getQueueSize(op);
todo -= size;
op += size;
}
But, in some cases, size will be zero and todo never reaches 0. I think
this can be a bigger problem that's beyond my knowledge of the
implementation details.
Wen-Chun