|
(Replying to myself)
I'm having problems with the emulator getting stuck in an infinite loop. Actually, the symptom is that the emulator seems to be locking up -- but based on how large the tracefile gets (29 megabytes in a few seconds) I'm assuming that it's stuck in an a loop.
while ((field = tn5250_display_prev_field (This)) != NULL) { tn5250_display_set_cursor_field (This, field);
TN5250_LOG(("field->entry_id=%d, currentfield=%d\n", field->entry_id, currentfield));
if (field->entry_id == currentfield) { if (field->id == orig_id) { field = tn5250_display_prev_field (This); tn5250_display_set_cursor_field (This, field); break; } if (!differentfieldfound) { break; } } else { differentfieldfound = 1; }
TN5250_LOG(("field->nextfieldprogressionid=%d, currentfield=%d\n", field->nextfieldprogressionid, currentfield));
if (field->nextfieldprogressionid == currentfield) { break; } }
The logged entries look like this:
This->cy = 2, This->cx = 0 field->entry_id=2, currentfield=3 field->nextfieldprogressionid=0, currentfield=3 tn5250_display_prev_field entered! This->cy = 1, This->cx = 8 field->entry_id=1, currentfield=3 field->nextfieldprogressionid=0, currentfield=3 tn5250_display_prev_field entered! This->cy = 22, This->cx = 8 field->entry_id=43, currentfield=3 field->nextfieldprogressionid=0, currentfield=3 tn5250_display_prev_field entered! This->cy = 22, This->cx = 0 field->entry_id=42, currentfield=3 field->nextfieldprogressionid=0, currentfield=3 tn5250_display_prev_field entered! This->cy = 21, This->cx = 8 field->entry_id=41, currentfield=3 field->nextfieldprogressionid=0, currentfield=3 tn5250_display_prev_field entered! This->cy = 21, This->cx = 0 field->entry_id=40, currentfield=3 field->nextfieldprogressionid=0, currentfield=3 tn5250_display_prev_field entered! This->cy = 20, This->cx = 8 field->entry_id=39, currentfield=3 field->nextfieldprogressionid=0, currentfield=3 tn5250_display_prev_field entered! This->cy = 20, This->cx = 0 field->entry_id=38, currentfield=3 field->nextfieldprogressionid=0, currentfield=3 tn5250_display_prev_field entered! This->cy = 19, This->cx = 8 field->entry_id=37, currentfield=3 field->nextfieldprogressionid=0, currentfield=3 tn5250_display_prev_field entered!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.