procedure dnsrequestdone(sender:tobject;error : word);\r
procedure sessionclosed(sender:tobject;error : word);\r
end;\r
+ treleasetest=class(tlcomponent)
+ destructor destroy; override;
+ end;
var\r
listensocket : tlsocket;\r
serversocket : tlsocket;\r
procedure tsc.timehandler(sender:tobject);\r
begin\r
//writeln('got timer event');\r
-end;\r
+end;
+
+destructor treleasetest.destroy;
+begin
+ writeln('releasetest.destroy called');
+ inherited destroy;
+end;
+\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;
begin\r
lcoreinit;\r
+ releasetest := treleasetest.create(nil);
+ releasetest.release;
+
ipbin := forwardlookup('invalid.domain',5);\r
writeln(ipbintostr(ipbin));\r
\r