Lahey Support
10-14-2003, 07:17 PM
Visual Studio: Build errors when certain controls are added to a Windows Form
Lahey issue number: FSW-4689
<hr>
The information in this post applies to:
LF Fortran v7.0 Enterprise edition
LF Fortran v7.0 Developer edition
LF Fortran v7.0 Educational edition
Symptoms
Adding a timer, imagelist, tooltip, or notifyicon control to a Windows Form, causes the following compiler build error:
error FRT1497: 'Dispose' not a component of a derived type, cannot be specified as structure component.
Cause
A bug in the Fortran for .NET compiler that incorrectly diagnoses that IContainer does not contain a method Dispose(). IContainer inherits from IDisposable which does have the Dispose member.
Workaround
Look for the following automatically generated source code:
class(System%ComponentModel%IContainer), private, pointer :: components
Change IContainer to Container:
class(System%ComponentModel%Container), private, pointer :: components
Status
Fixed in v7.0.1 maintenance update.
Lahey issue number: FSW-4689
<hr>
The information in this post applies to:
LF Fortran v7.0 Enterprise edition
LF Fortran v7.0 Developer edition
LF Fortran v7.0 Educational edition
Symptoms
Adding a timer, imagelist, tooltip, or notifyicon control to a Windows Form, causes the following compiler build error:
error FRT1497: 'Dispose' not a component of a derived type, cannot be specified as structure component.
Cause
A bug in the Fortran for .NET compiler that incorrectly diagnoses that IContainer does not contain a method Dispose(). IContainer inherits from IDisposable which does have the Dispose member.
Workaround
Look for the following automatically generated source code:
class(System%ComponentModel%IContainer), private, pointer :: components
Change IContainer to Container:
class(System%ComponentModel%Container), private, pointer :: components
Status
Fixed in v7.0.1 maintenance update.