Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2023-03

Bug in 3.2.3 with corba interfaces

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Frb

While I haven't got a simple example, by this time I am sure the issue is not in my code. (it's not online avail yet)

I have a class, with 2 corba interfaces

  TIdeLocalsValue = class(TLocalsValue, TWatchAbleResultIntf, TWatchAbleDataIntf)
...
end

If I get an interface using
  (SomeVar as TWatchAbleDataIntf).Foo

it either crashes, or calls the wrong method.

If I swap the order of the interfaces in the declaration, then it works (but the other interface will fail).

And yes, the object on which I work is of the correct class. And it is alive (not a dangling pointer).

-----
I have  tried to introduce a Base class, and move one Interface to that base class, but no luck ....

Reply by email