Sign in Join

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

Mailing lists / fpc-pascal / 2021-01

TProxyStream.Check always raises error.

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Virgo Pärna

Is there any reason, why TProxyStream.Check always raises Exception without checking, if err = S_OK (ISteam call succeeded). TOleStream overrides this Check to use OleCheck, which handles it. But if Check needs to be overrided for it to be useful, shouldn't Check just be abstract?

Virgo Pärna
Sven Barth
to Virgo Pärna
Virgo Pärna wrote 6 lines
Is there any reason, why TProxyStream.Check always raises Exception without checking, if err = S_OK (ISteam call succeeded). TOleStream overrides this Check to use OleCheck, which handles it. But if Check needs to be overrided for it to be useful, shouldn't Check just be abstract?

I made it abstract in revision 48097.

Regards,
Sven