Recent

Author Topic: Double click on any component raises an exception message  (Read 8356 times)

finalist

  • Jr. Member
  • **
  • Posts: 99
Double click on any component raises an exception message
« on: November 06, 2009, 01:25:29 pm »
Every time I try to make an Event OnClick for a Button in my application, I do doubleclick by mouse on it ....
Every time it raises an exception message:
 "The component editor of class "TDefaultComponentEditor" has created the error: "Unable to find method. Please fix the error shown in the message window."
Is this a normal behavior, or I have some bad luck ? >:D
Thanks!

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Double click on any component raises an exception message
« Reply #1 on: November 06, 2009, 01:39:23 pm »
Hi

This happen in general in this case
Code: [Select]
procedure TForm1.Button1Click(Sender: TObject);
begin
  end;
end;

begin without end, or end without begin or another case too.
Fix your code and try again.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Double click on any component raises an exception message
« Reply #2 on: November 06, 2009, 01:44:46 pm »
What is the error shown in the message window?

finalist

  • Jr. Member
  • **
  • Posts: 99
Re: Double click on any component raises an exception message
« Reply #3 on: November 06, 2009, 01:46:33 pm »
I did describe the error message with the bold black text above.

My code is:
var
  Form_TMPSM:  TForm_TMPSM;

implementation

initialization
  {$I unit_tmpsm_.lrs}

end.
« Last Edit: November 06, 2009, 02:26:48 pm by finalist »

finalist

  • Jr. Member
  • **
  • Posts: 99
Re: Double click on any component raises an exception message
« Reply #4 on: November 06, 2009, 07:23:07 pm »
1. I did uninstall the Lazarus ( It was installed at D:\#LAZARUS );
2. I did install new Lazarus at D:\LAZARUS;
3. The above error message does not appear anymore;
4. It appears new message informing me that Lazarus can not find debugger at D:\#LAZARUS\mingw\bin\gdb.exe
5. I did copy from D:\LAZARUS\mingw\bin\gdb.exe to D:\#LAZARUS\mingw\bin\gdb.exe
6. There is no more errors !!!!  :)

May be I need to unistall the Lazarus again, and install it at D:\#LAZARUS ....
I will do this ...

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12119
  • Debugger - SynEdit - and more
    • wiki
Re: Double click on any component raises an exception message
« Reply #5 on: November 06, 2009, 07:38:40 pm »
1. I did uninstall the Lazarus ( It was installed at D:\#LAZARUS );
2. I did install new Lazarus at D:\LAZARUS;

It is possible that something doesn't like the "#" in your path.
There are known issues with spaces in the path too.

If you uninstall/reinstall lazarus your settings are kept. They are in your user's home folder:
C:\Users\martin\AppData\Local\lazarus

The will contain the old debugger and fpc path (which all can be adapted through Environment / options

If you want a fresh install with complete new settings you can delete the folder.

You can also keep more than one set of settings by using --primary-config-path="C:\foo" (add to commandline, using a windows shortcut)


finalist

  • Jr. Member
  • **
  • Posts: 99
Re: Double click on any component raises an exception message
« Reply #6 on: November 06, 2009, 08:29:20 pm »
Thanks Martin_fr,
1. I did uninstall the last installed LAZARUS
2. I did delete the directory:
 D:\Documents and Settings\emo\Local Settings\Application Data\lazarus
3. I did install a new LAZARUS at D:\LAZARUS
4. Everything works fine :)

 

TinyPortal © 2005-2018