[Wendell writes:] > 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
Interesting. Your button's cbwin field is null, which suggests that after a finally() wiped it out, a subsequent init() did not restore it. > 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.) > Any suggestions? (1) it is probably possible to avoid the recalling the finally/init pair. For example, after calling set_attribs() one can probably call WAttrib ! ([button[index].cbwin] ||| button[index].attribs) WAttrib ! ([\ (button[index].cwin)] ||| button[index].attribs) to set the attributes on the button's window references, and then invalidate and/or resize in order to get them redrawn. (2) If you boil your bug down to a reproducible state, possibly by building some lists with which to fake/hardwire the UDP behavior which triggers the bug, I would be happy to dig deeper and try to understand why Windows buggy behavior doesn't match Linux good behavior. Clint ------------------------------------------------------------------------- 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