<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi David and everyone.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I got around the BeginDrag method causing a
premature tick in a CheckBox. I have a more serious problem now which I've
been trying to solve for several hours but I'm not getting
anywhere.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm getting either an access violation or an
"Abstract Error" when dragging checkboxes in the CheckGroup. In my
larger program, it actually works fine for 1 or 2 drags, but the next
one produces the error. In the test program, it occurs every
time.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The error is occuring in the System.GetDynaMethod
assember code which doesn't help me much. Here is a download of
the component and a small test program. I hope someone can
help.</FONT></DIV>
<DIV><A href="http://www.stationplaylist.com/ChkGroup.zip"><FONT face=Arial
size=2>http://www.stationplaylist.com/ChkGroup.zip</FONT></A></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Compile, run, and drag one item onto
another to produce the error.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In the cbDragDrop procedure, a copy of the dragged
checkbox details (CBOld) is inserted at the drop location, and then the
dragged checkbox is freed. </FONT><FONT face=Arial size=2>The error does
not occur if I remark out the line: OldCB.Free. Perhaps the freed
checkbox is being accessed somewhere but I can't establish where. I've
tried break points in every procedure/function.<BR></DIV></FONT>
<DIV><FONT size=2><FONT face=Arial><FONT>It's a little messy with the TList and
TStringList being used together but I'll clean that up
later.</FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT></FONT></FONT></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial><FONT>Many thanks,</FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT
face=Arial><FONT>Ross.</DIV></FONT></FONT></FONT></BODY></HTML>