Interface casting allowed to interfaces without GUID
Original Reporter info from Mantis: Marc @mweustink
-
Reporter name: Marc Weustink
Original Reporter info from Mantis: Marc @mweustink
- Reporter name: Marc Weustink
Description:
An interface without GUID gets a default {00000000-0000-0000-0000-000000000000}
Casting to such interface returns the first available. Delphi doesn't allow this, which IMO the wanted behaviour. Since by casting you want to have one specific interface. Not having its GUID set is usually a user error.
The sample program crashes for CORBA interfaces. I'll add a separate report for that.
Additional information:
Reporter: Marc Weustink
EMail: marc at freepascal dot org
Mantis conversion info:
- Mantis ID: 6797
- OS: All
- Fixed in version: 2.2.2
- Fixed in revision: 9840 (#34ff7931)