Nasty little infinite loop

Topics: Developer Forum
Jun 4, 2007 at 2:01 PM
I found that under certain rare circumstances, it is possible for the GetScreenAsXML() routine to enter an infinite loop, gobbling memory until it takes over the computer. The culprit is at the end of the dump_fieldAsXML() routine in Ctlr.cs:

if (baddr < address) return -1;

This should be:

if (baddr <= address) return -1;

Cheers!