X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/2dd575b95694c126013c912526093ff4915f3398..e14f985630dc9b0edad92d591fbede30928cda37:/lcoretest.dpr diff --git a/lcoretest.dpr b/lcoretest.dpr index 3c4277d..61d771f 100755 --- a/lcoretest.dpr +++ b/lcoretest.dpr @@ -16,7 +16,9 @@ uses //include it to check if it compiles ok ;) {$ifndef win32} , - lmessages, + {$ifndef nomessages} + lmessages, + {$endif} unitfork {$endif} ; @@ -34,6 +36,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; @@ -145,7 +150,14 @@ end; procedure tsc.timehandler(sender:tobject); begin //writeln('got timer event'); -end; +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); @@ -155,8 +167,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));