Sign in Join

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

Mailing lists / lazarus / 2011-03

Nice error in IDE - missing form resource

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Juha gmail
to Michael Van Canneyt

Michael Van Canneyt kirjoitti lauantai, 26. maaliskuuta 2011 21:43:19:

When I click 'check consistency' in the Key mappings page of the options dialog, I get a nice error that the form's resources cannot be found.

I can reproduce it when I first select another mapping scheme (Classic) and then 'check consistency'.

See attached screenshot. Reproducable with today's lazarus.

I actually saw it earlier when I played with the key mappings. Then I was busy and didn't pay attention. I could look at it now...

Juha

Reply by email

Juha gmail
to Michael Van Canneyt: When I click 'check consistency' in the Key mappings page of the options dialog, I get a…

Michael Van Canneyt kirjoitti lauantai, 26. maaliskuuta 2011 21:43:19:

When I click 'check consistency' in the Key mappings page of the options dialog, I get a nice error that the form's resources cannot be found.

r30021, I fixed it like this:

constructor TKeyMapErrorsForm.Create(AnOwner: TComponent);
begin
  inherited CreateNew(AnOwner);
  ...

calling "inherited CreateNew" instead of "inherited Create". It works but looks little stupid. Is this the best way to fix it?

Anyway it works now.
The problem happened when there actually were conflicts in the key mapping.

Juha

Reply by email

Mattias Gaertner
to Juha gmail
Show quoted text 13 lines
Michael Van Canneyt kirjoitti lauantai, 26. maaliskuuta 2011 21:43:19: > When I click 'check consistency' in the Key mappings page of the options > dialog, I get a nice error that the form's resources cannot be found. r30021, I fixed it like this: constructor TKeyMapErrorsForm.Create(AnOwner: TComponent); begin inherited CreateNew(AnOwner); ... calling "inherited CreateNew" instead of "inherited Create". It works but looks little stupid. Is this the best way to fix it?

Yes.

Anyway it works now. The problem happened when there actually were conflicts in the key mapping.

Mattias

Reply by email