Re: [fpc-devel] Unwanted finalization

2012-10-13 Thread Yury Sidorov
Committed in r22638. Thanks. - Original Message - From: "Ludo Brands" To: "'FPC developers' list'" Sent: Saturday, October 13, 2012 7:26 PM Subject: Re: [fpc-devel] Unwanted finalization Hello, The declaration of ITypeInfo.Invoke() is broke

Re: [fpc-devel] Unwanted finalization

2012-10-13 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: > > Funny, but I have also encountered the problem in this place yesterday :) > > But with PVariant(VarResult)^ in my case. > > Yes, the declaration of ITypeInfo.Invoke() should be changed to eliminate > > unwanted compiler magic with managed types when

Re: [fpc-devel] Unwanted finalization

2012-10-13 Thread Ludo Brands
> Hello, > > The declaration of ITypeInfo.Invoke() is broken now anyway. Some of > out parametrs should accept nil values and it is not possible > with the > current declaration. I doubt that ITypeInfo.Invoke() is used directly > by user code. Especially in this broken form. > I completely a

Re: [fpc-devel] Unwanted finalization

2012-10-13 Thread Yury Sidorov
- Original Message - From: "Jonas Maebe" To: "FPC developers' list" Sent: Saturday, October 13, 2012 7:05 PM Subject: Re: [fpc-devel] Unwanted finalization On 13 Oct 2012, at 18:01, Yury Sidorov wrote: Funny, but I have also encountered the problem in thi

Re: [fpc-devel] Unwanted finalization

2012-10-13 Thread Jonas Maebe
On 13 Oct 2012, at 18:01, Yury Sidorov wrote: > Funny, but I have also encountered the problem in this place yesterday :) But > with PVariant(VarResult)^ in my case. > Yes, the declaration of ITypeInfo.Invoke() should be changed to eliminate > unwanted compiler magic with managed types when a n

Re: [fpc-devel] Unwanted finalization

2012-10-13 Thread Yury Sidorov
anges today or tomorrow. Best Regards! Yury Sidorov. - Original Message - From: "Ludo Brands" To: "'FPC developers' list'" Sent: Saturday, October 13, 2012 6:34 PM Subject: [fpc-devel] Unwanted finalization Dear all, In comobj.pp I'm gett

[fpc-devel] Unwanted finalization

2012-10-13 Thread Ludo Brands
Dear all, In comobj.pp I'm getting sometimes a SIGSEGV in the following code: function TAutoObject.Invoke(DispID: LongInt; const iid: TGUID; LocaleID: longint; Flags: Word; var params; VarResult, ExcepInfo, ArgErr: pointer): HResult; stdcall; ... begin ...