PDA

View Full Version : Icon Object Agent crashes LW



GregMalick
02-28-2004, 11:19 PM
If this script is added and Removed repeatedly it seems to crash LW7.5c. The icon in the button seems to get corrupted before the crash.

Can you see anything wrong?

@version 2.6
@warnings
@script motion
@name myIA
@define FWD 1

fwd_icon = @ ".1..............",
".1111...........",
".1111111........",
".11111111111....",
".11111111111111.",
".11111111111....",
".1111111........",
".1111...........",
".1.............."
@;

create
{
setdesc("myIA");
}

destroy
{
if(reqisopen()) reqend();
}

process: ma, frame, time
{
}

load: what,io
{
}
save: what,io
{
}

options
{
icon[FWD] = Icon(fwd_icon);

reqbegin("myLooper");
m5 = ctlbutton("FWD" + icon[FWD], 60, "fwdF");
reqpost();
}

fwdF
{
info("I'm here");
}

GregMalick
03-03-2004, 01:51 AM
By the way, this is pretty much straight out of the LScript v2.6 Release Notes (regarding Icon Agent).