egroups
Members-
Content Count
22 -
Joined
-
Last visited
Everything posted by egroups
-
PLABEL VCL Labelling, FlowChart and Technical Drawing editor
egroups replied to Alberto Fornés's topic in Delphi Third-Party
Hi Alberto,it's great. -
JSON feed, replacement form RSS/Atom
egroups replied to Tommi Prami's topic in Network, Cloud and Web
RSS is super and Feedly is friend. -
Spring4d 2.0 is out,but not compatible with 1.2. Of course its open source,but is any simply changelog between 1.2 and 2.0,what's new etc? And is any manual for easy convert Project with spring4d 1.2 for using with spring4d 2.0?
-
Finding Memory Leak fast with Spring4D container?
egroups posted a topic in Algorithms, Data Structures and Class Design
Hi there, I convert legacy application to using Spring4D container for dependency injection. For memory leaks using FastMM4. Occasionally appear memory leak in different places and I solve them gradually. The problem is with the use of dependency injections, FatsMM generates very large log file (aka 2GB) and very long time.Some registered class in container not call Destroy (memory leaks in dependency graph). Is there any way to more easily and quickly detect places where there is a memory leak? Any extension for container or different method? -
Finding Memory Leak fast with Spring4D container?
egroups replied to egroups's topic in Algorithms, Data Structures and Class Design
Thanks Stefan,I try LeakCheck and Registry.FindAll -
Super,many thanks.
-
I switched from Delphi 10.2 to Delphi 11 and for now I'm using Spring4d 1.2. When GetIt is functional, I'll install Delphi 11 at home and then I'll test with Spring4d 2.0.
-
Collections,Container,Logging,Persistence,Events,TActions,TProcs...
-
if LMethod.IsClassMethod and LMethod.IsStatic then begin {$IF CompilerVersion >= 35} if not Assigned(FGetter) and (LMethod.MethodKind = mkClassFunction) and LMethod.HasName('Get' + FDependencyProperty.Name) then {$ELSE} if not Assigned(FGetter) and (LMethod.MethodKind = mkClassFunction) and SameText(LMethod.Name, 'Get' + Name) then {$IFEND} This work for me.
-
Finding duplicate properties in classes
egroups posted a topic in Algorithms, Data Structures and Class Design
Is anyway how can get list all classes in project,inherited from specific class and have specific property? By refactoring I can clear properties in descendant,which is defined in parent class. -
I have many registrations in spring4d container. In DEBUG mode start application OK but in RELEASE before show first SplashScreen I get error: Cannot resolve type: xxxxType Hi can I quickly identify where is problem? Cannot use brakpoints,container logging etc. My xxxxType is very much used accros application and inject in many places.
-
Spring4d container Error: Cannot resolve type: xxx
egroups replied to egroups's topic in General Help
After many test,create private logging in Spring units I detect the cause.I use Resolving in DataModule who initialized in initialization section,before Container Build. -
Structured Difference Viewer added to MMX Code Explorer
egroups replied to Uwe Raabe's topic in MMX Code Explorer
OK,thanks. -
Structured Difference Viewer added to MMX Code Explorer
egroups replied to Uwe Raabe's topic in MMX Code Explorer
How I can setup/activate this feature? -
Is any very simplest way,how to print simple ASCII text file throw FastReports by the code?
-
Releation between entity types
egroups replied to chkaufmann's topic in Algorithms, Data Structures and Class Design
Own framework?Do you trying Spring4d ORM? -
Simple method to get Expiration Date of PKCS12 certificate
egroups posted a topic in Network, Cloud and Web
Hi, I need get Expiration Date from certificate. I tryed this code with libeay32: function TSOpenSSL.CertificatePKCS12Expirate(const pFileName, pPassword: string): TDateTime; var buffer: Array [0..1023] of char; ca: pSTACK_OFX509; certfile: pBIO; lTime: pASN1_TIME; p12: pPKCS12; pCertificate: pX509; pkey: pEVP_PKEY; begin certfile:=BIO_new(BIO_s_file()); if (certfile = nil) then raise Exception.Create('Error creating BIO.'); BIO_read_filename(certfile, PAnsiChar(UTF8Encode(pFileName))); p12:=d2i_PKCS12_bio(certfile, nil); PKCS12_parse(p12, PAnsiChar(pPassword), pkey, pCertificate, ca); //here is allways pCertificate=nil PKCS12_free(p12); p12:=nil; BIO_free(certfile); if (pCertificate = nil) then raise Exception.Create('Unable to read certificate from file ' + pFileName + '.'); lTime:=pCertificate.cert_info.validity.notAfter; end; I wrote in comment where pCertificate is allways nil and I cannot of course read any data from this. Why? Password I have correct.I tryed this on some certificate files. -
Simple method to get Expiration Date of PKCS12 certificate
egroups replied to egroups's topic in Network, Cloud and Web
Thanks for your answer.I tried ICS and now working for me. -
Hello, I tryed generate LiveBindings by Code. I am used from example this code procedure Bind(const Source: TObject; const SourcePropertyName: string; const Target: TObject; const TargetPropertyName: string); var lSrcProperty,lDstProperty:string; lAssocInput,lAssocOutput:IScope; lManaged:TBindingExpression; begin lAssocInput:=TBindings.CreateAssociationScope([Associate(Source,'Src')]); lAssocOutput:=TBindings.CreateAssociationScope([Associate(Target, 'Dst')]); lSrcProperty:='Src.'+ SourcePropertyName; lDstProperty:='Dst.'+ TargetPropertyName; lManaged:=TBindings.CreateManagedBinding( [lAssocInput],lSrcProperty, [lAssocOutput],lDstProperty, nil, nil,[coNotifyOutput]); BindingExpressions.Add(lManaged); end; This is OK if I used for example: Bind(srcViewModel,'String',dstEdit,'Text') Bind(srcViewModel,'Number',dstEdit,'Text') Bind(srcViewModel,'Boolean',dstCheckBox,'Checked') But I have srcViewModel.Container.DataSource and on form DBGrid (I NEED DBGrid). When I Use Bind(srcViewModel,'Container.DataSource',dstDBGrid,'DataSource') is OK,but when I use TBindings.Notify application says DBGrid don't have property DataSource. Why? What problem when I binding DataSource to DataSource?
-
I tryed Bind(srcViewModel.Container,'DataSource',dstDBGrid,'DataSource'),no error,but DataSource not binded,DBGrid.DataSource not Assigned. In srcViewModel I call TBindings.Notify(self,'Container'); //nothing TBindings.Notify(self,'Container.DataSource'); //nothing
-
Do you design each form for separate case, or use common forms for similar design?
egroups replied to Mike Torrettinni's topic in VCL
Do you have any framework for dynamically create forms? -
Super