[Lazarus] exception class 'EReadError' with message Invalid value for property (onClick event in TMenuItem)

Peter Williams pewilliams2010 at live.com
Fri Mar 11 20:07:46 CET 2011


Hi Lazarus List,
I am encountering a strange run time error... Project island_maker.exe raised exception class 'EReadError' with message Invalid value for property
Error reading CreateaNewIsland1.OnClick: Invalid value for property
procedure TForm1.CreateANewIslandClick(Sender: TObject);begin  make_an_island;end; { CreateaNewIslandClick }{--------------------------------------------------------------------}
// where make_an_island is procedure TForm1.make_an_island;
object Form1: TForm1  Left = 131  Height = 585  Top = 47  Width = 917  Caption = 'Form1'  ClientHeight = 565  ClientWidth = 917  Menu = MainMenu1  LCLVersion = '0.9.31'  object Memo1: TMemo    Left = 0    Height = 565    Top = 0    Width = 917    Align = alClient    TabOrder = 0  end  object MainMenu1: TMainMenu    left = 64    top = 48    object File1: TMenuItem      Caption = '&File'      object CreateANewIsland: TMenuItem        Caption = '&Create A New Island'        OnClick = CreateANewIslandClick      end      object SaveIslandToFile: TMenuItem        Caption = '&Save Island To File'        OnClick = SaveIslandToFileClick      end    end    object Options: TMenuItem      Caption = '&Options'      OnClick = OptionsClick    end  end  object SaveDialog1: TSaveDialog    left = 131    top = 48  endend
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110312/298a6bd1/attachment-0002.html>


More information about the Lazarus mailing list