[fpc-devel] FreeNotification and opRemove

2012-03-08 Thread Martin
I found a behaviour, of which I am not sure, if it is intended. Maybe someone can comment My understanding is that FreeNotification are *always* set up bi-directional ? At least C1.FreeNotification(C2); will set up for C1 to inform C2, and for C2 to inform C1 whichever is destroyed first to

Re: [fpc-devel] FreeNotification and opRemove

2012-03-08 Thread Martin
Further more: the program below, does not crash in delphi (turbo delphi) On 08/03/2012 09:56, Martin wrote: I found a behaviour, of which I am not sure, if it is intended. Maybe someone can comment My understanding is that FreeNotification are *always* set up bi-directional ? At least C1.

Re: [fpc-devel] Inversion of control for TCustomHTTPModule and descendants

2012-03-08 Thread Sven Barth
Am 06.03.2012 20:09, schrieb Michael Van Canneyt: On Tue, 6 Mar 2012, Sven Barth wrote: Am 06.03.2012 17:35, schrieb michael.vancann...@wisa.be: On Tue, 6 Mar 2012, Sven Barth wrote: Hello together! I'm currently playing around with fcl-web a bit. As I'd like to utilize inversion of co

Re: [fpc-devel] FreeNotification and opRemove

2012-03-08 Thread michael . vancanneyt
On Thu, 8 Mar 2012, Martin wrote: Further more: the program below, does not crash in delphi (turbo delphi) I also noticed. I suspect the problem is the owner; If it gets a free notification, it should pass it to all the children. Michael. On 08/03/2012 09:56, Martin wrote: I found a be

Re: [fpc-devel] FreeNotification and opRemove

2012-03-08 Thread Martin
On 08/03/2012 13:08, michael.vancann...@wisa.be wrote: On Thu, 8 Mar 2012, Martin wrote: Further more: the program below, does not crash in delphi (turbo delphi) I also noticed. I suspect the problem is the owner; If it gets a free notification, it should pass it to all the children. I

Re: [fpc-devel] FreeNotification and opRemove

2012-03-08 Thread Martin
On 08/03/2012 13:34, Martin wrote: On 08/03/2012 13:08, michael.vancann...@wisa.be wrote: On Thu, 8 Mar 2012, Martin wrote: Further more: the program below, does not crash in delphi (turbo delphi) I also noticed. I suspect the problem is the owner; If it gets a free notification, it shou

Re: [fpc-devel] FreeNotification and opRemove

2012-03-08 Thread Martin
On 08/03/2012 13:44, Martin wrote: In the following code, I thing is the problem: Procedure TComponent.Notification(AComponent: TComponent; Operation: TOperation); Var Runner : Longint; begin If (Operation=opRemove) and Assigned(FFreeNotifies) then begin FFreeNotifies.Remove(ACompo

Re: [fpc-devel] FreeNotification and opRemove

2012-03-08 Thread Torsten Bonde Christiansen
On 2012-03-08 14:51, Martin wrote: On 08/03/2012 13:44, Martin wrote: In the following code, I thing is the problem: Procedure TComponent.Notification(AComponent: TComponent; Operation: TOperation); Var Runner : Longint; begin If (Operation=opRemove) and Assigned(FFreeNotifies) then b