jpluimers
There are a few TNonRefCountInterfacedObject (or maybe better named TNonReferenceCountedInterfacedObject) implementations around (see list of links below). They can be used to expose interfaces, but do not provide interface reference counting. This means you have… … Read more
4 years ago in Conference Topics, Conferences, Delphi, Development, Event, Software Development0
jpluimers
Since I had captures messages inside the main message loop, I forgot it is straightforward: create a [WayBack] TApplicationEvents instance, then use the [WayBack] OnMessage event and hook it to a method like procedure TMainForm.ApplicationEventsMessage(var Msg: TMsg; var… … Read more
4 years ago in Conference Topics, Conferences, Delphi, Development, Event, Software Development0
jpluimers
Since G+ is down, a lot of interesting questions have vanished. Luckily I saved some by [WayBack] Jacek Laskowski – Google+ related to Spring4D and dependency injection: [WayBack] Spring4D IoC and specific singleton… – Jacek Laskowski –… … Read more
4 years ago in Conference Topics, Conferences, Delphi, Development, Event, Software Development0
jpluimers
A few tips. Set breakpoints in these units: System.pas: procedure _AbstractError; begin if Assigned(AbstractErrorProc) then AbstractErrorProc; RunErrorAt(210, ReturnAddress); end; System.SysUtils.pas: procedure AbstractErrorHandler; begin raise EAbstractError.CreateRes(@SAbstractError); end; add a watch for ClassName that has “Allow side… … Read more
4 years ago in Conference Topics, Conferences, Delphi, Development, Event, Software Development0
jpluimers
Still not sure why the RTL code is like this: procedure TRemotable.SetDataContext(Value: TDataContext); begin if (RemotableDataContext <> nil) and (RemotableDataContext = Self.DataContext) then begin TDataContext(RemotableDataContext).RemoveObjectToDestroy(Self); end; FDataContext := Value; end; It means that if you… … Read more
4 years ago in Conference Topics, Conferences, Delphi, Development, Event, Software Development0