Help! I need input! :)
Help! I need input! :)
How can I make a TForm "interface-able"? :)
It'll only released when the Application terminates.
Test/Sample project:
http://data.hu/get/8452169/Test003.zip
http://data.hu/get/8452169/Test003.zip
How can I make a TForm "interface-able"? :)
It'll only released when the Application terminates.
Test/Sample project:
http://data.hu/get/8452169/Test003.zip
http://data.hu/get/8452169/Test003.zip
See here: http://wiert.me/2009/08/10/delphi-using-fastmm4-part-2-tdatamodule-descendants-exposing-interfaces-or-the-introduction-of-a-tinterfaceddatamodule/
ReplyDeleteBob Devine
ReplyDeleteThx, I'll check right now.
Bob Devine thanks!
ReplyDeleteChecked, modified, Thank You Bob Devine ! :)
ReplyDeleteWhat do You think? :)
Modified source:
http://data.hu/get/8452251/Test003Final.zip
I modified the TForm2._Release:
ReplyDeletefunction TForm2._Release: Integer;
begin
Result := InterlockedDecrement(FRefCount);
if (Result = 0) then
begin
if FOwnerIsComponent then
Owner.RemoveComponent(Self);
Destroy;
end;
end;
...so if FOwnerIsComponent is True:
FOwnerIsComponent := Assigned(Owner) and (Owner is TComponent);
...then I'll call
Owner.RemoveComponent(Self);
too.
ReplyDeleteGoogle+ need some code formatting routines :)
I've only been asking since launch.
ReplyDeleteNándor Kiss The zip file won't extract.
ReplyDeleteJeroen Wiert Pluimers No problem - was a very nice post.
ReplyDeleteBob Devine
ReplyDeleteWith win7 and WinRAR too I can extract.
Nándor Kiss Strange - I use 7-zip and zipgenius and neither of them can open it.
ReplyDeleteBob Devine
ReplyDeleteYes, really strange.
Now I downloaded at work and uncompressed win WinRAR 4.00 (64-bit)
What version of 7-zip/zipgenius are You using?
edit:
Tried with 7-Zip [64] 4.65 - Works fine.
Nándor Kiss I downloaded it on my other PC and it extracted fine this time.
ReplyDeleteOk :)
ReplyDeletePost code as a Gist so people can view it online and don't need to download it. https://gist.github.com/
ReplyDeleteJeroen Wiert Pluimers nice, never knew that, thx! :)
ReplyDeleteurl:
ReplyDeletehttps://gist.github.com/xcluster/402d6fa5453f5fa6a060
[ Is this what I have to share? :) ]
https clone url:
https://gist.github.com/402d6fa5453f5fa6a060.git
Indeed. Thanks for sharing.
ReplyDeletePastebin is another alternative to gist.github.com
ReplyDeleteFor me there are two cool things about gist: it can have multiple files per entry, and it is version controlled.
ReplyDelete