,\r
{$ifndef nomessages}\r
lmessages,\r
+ unitwindowobject,\r
{$endif}\r
unitfork\r
{$endif}\r
procedure dnsrequestdone(sender:tobject;error : word);\r
procedure sessionclosed(sender:tobject;error : word);\r
end;\r
+ treleasetest=class(tlcomponent)\r
+ destructor destroy; override;\r
+ end;\r
var\r
listensocket : tlsocket;\r
serversocket : tlsocket;\r
begin\r
//writeln('got timer event');\r
end;\r
+\r
+destructor treleasetest.destroy;\r
+begin\r
+ writeln('releasetest.destroy called');\r
+ inherited destroy;\r
+end;\r
+\r
procedure tsc.sessionclosed(sender:tobject;error : word);\r
begin\r
Writeln('session closed with error ',error);\r
ipbin : tbinip;\r
dummy : integer;\r
iplist : tbiniplist;\r
+ releasetest : treleasetest;\r
begin\r
lcoreinit;\r
+ releasetest := treleasetest.create(nil);\r
+ releasetest.release;\r
+ \r
ipbin := forwardlookup('invalid.domain',5);\r
writeln(ipbintostr(ipbin));\r
\r