On Tue, Sep 05, 2006 at 07:04:19PM +0100, Robert Parlett wrote:

> Having just stared at some of my code for a little while, I think this might 
> be a bug on my part!  Basically there is a memory leak of cloned windows for 
> each button.  These are released in any case when the dialog is disposed, but 
> if you re-initialized lots of buttons in the way you are doing, then you 
> could run out of resources whilst the window was still open - possibly this 
> happens sooner on windows than linux.

Yes, that would explain some things.  After a long time on the
Linux host, I sometimes get a memory violation.  Anyway, I just
want to change the color of a button (often), and may not be
doing it the right way.  I'll change to what you suggest below.

> Anyway, the fix is very simple and I'll put it in CVS (gui/component.icn).  
> I'll send you a copy of the file.

Ok, thanks.  As I'm not able to compile on windows, are the .u
files interchangable?  Can I just copy the updated ones from
uni/gui/*.u from Linux to windows?  If not, when will this
update be reflected in the standard windows download package?
(sorry if this one is more work for you, Clint).

> One other thing - I'd change the code in your loop to the following, which is 
> a bit better, because attribs set via set_attribs actually accumulate in a 
> list
>        button[index].attribs := [ "bg=" || color, "fg=black" ]
>        button[index].finally()
>        button[index].init()
>        button[index].invalidate()

Btw, where are the complete windows instructions?  Can I build
Unicon under cygwin and then copy the resulting .exe file to a
non-cygwin windows system & run it?

Thanks for all the help,

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

Reply via email to