I'm having trouble porting a working gui/modal program from Linux to Windows. It runs fine on Linux, and runs for a while on Windows, but ends up with the following error:
gui__center_string(&null,105,57,"N40",&null) from line 43 in textbutton.icn TextWidth(&null,"N40") from line 205 in guiprocs.icn It seems to occur in the following loop: while *(q := select(udp_port,2)) > 0 do every f := !q do { r := receive(f) ... button[index].attrib( "bg=" || color, "fg=black" ) button[index].set_attribs( "bg=" || color, "fg=black" ) button[index].finally() button[index].init() button[index].resize() } When several udp msgs are received together, requiring several buttons to change color, after the loop exits (and processing goes back to the modal event loop?), the error occurs. When one message is received (alone), and only one button changes color, it seems to work fine. (I'm not sure about the finally, init, or resize, but calling them makes the button color take effect.) Full error text is at http://www.halcyon.com/wturner/windows_error_msg.txt Any suggestions? Wendell ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Unicon-group mailing list Unicon-group@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unicon-group