X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/987e8123d8ba3201ed2690004cfefd7983ff7487..4eb91688c3bbc5eaf93c101b984f486dd42de9bc:/lcoretest.dpr diff --git a/lcoretest.dpr b/lcoretest.dpr index 150b488..da31cd6 100755 --- a/lcoretest.dpr +++ b/lcoretest.dpr @@ -18,6 +18,7 @@ uses , {$ifndef nomessages} lmessages, + unitwindowobject, {$endif} unitfork {$endif} @@ -36,6 +37,9 @@ type procedure dnsrequestdone(sender:tobject;error : word); procedure sessionclosed(sender:tobject;error : word); end; + treleasetest=class(tlcomponent) + destructor destroy; override; + end; var listensocket : tlsocket; serversocket : tlsocket; @@ -148,6 +152,13 @@ procedure tsc.timehandler(sender:tobject); begin //writeln('got timer event'); end; + +destructor treleasetest.destroy; +begin + writeln('releasetest.destroy called'); + inherited destroy; +end; + procedure tsc.sessionclosed(sender:tobject;error : word); begin Writeln('session closed with error ',error); @@ -157,8 +168,12 @@ var ipbin : tbinip; dummy : integer; iplist : tbiniplist; + releasetest : treleasetest; begin lcoreinit; + releasetest := treleasetest.create(nil); + releasetest.release; + ipbin := forwardlookup('invalid.domain',5); writeln(ipbintostr(ipbin));