<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
If I'm not wrong I found my bug in the 4. day<br>
<br>
Component has :<br>
procedure LMTimer(var Message: TLMTimer); message LM_TIMER;<br>
<br>
here is hold to timerevent<br>
....<br>
var B : boolean;<br>
begin<br>
if csLoading in ComponentState then Exit;<br>
if (FTimerID = 0) then begin <br>
FTimerID := SetTimer(Self.Handle, 1, 500, nil); <-- start <br>
DebugLn(['UpdateTimer;FTimerID > ', FTimerID, ' : Self.Handle
>', Self.Handle]);<br>
end;<br>
....<br>
<br>
here is destroy event of component<br>
var B : Boolean;<br>
begin<br>
DebugLn(['Destroy;> ', 1]); //destroy started<br>
if (FTimerID <> 0) then begin<br>
DebugLn(['Destroy;FTimerID > ', FTimerID, ' : Self.Handle
>', Self.Handle]);<br>
B := KillTimer(Self.Handle, FTimerID);<br>
DebugLn(['Destroy; FTimerID > ', FTimerID, ' : Self.Handle
>', Self.Handle, ' Killed>', B]);<br>
FTimerID := 0;<br>
end;<br>
DebugLn(['Destroy;> ', 2]);//destroy ended<br>
<br>
<br>
and this is debug lines:<br>
<br>
UpdateTimer;FTimerID > 1 : Self.Handle ><font color="#ff0000"><u><b><big>140042733101744</big></b></u></font><br>
TMainIDE.DoFixupComponentReferences UNRESOLVED BEFORE loading 0
Root=FRM_Appointment:TFRM_Appointment RefRoot=DM Refs="MainConn"<br>
Destroy;> 1<br>
Destroy;FTimerID > 1 : Self.Handle ><font color="#ff0000"><u><b><big>0</big></b></u></font><br>
Destroy; FTimerID > 1 : Self.Handle ><font color="#ff0000"><u><b><big>0
</big></b></u></font>Killed>False<br>
Destroy;> 2<br>
<br>
<br>
where is my handle ? why its "0" if its come 0 howto access self
handle so access then childs?<br>
<br>
</body>
</html>