Recent

Author Topic: After changing grids.pas Internal error 200611031  (Read 1465 times)

Soner

  • Sr. Member
  • ****
  • Posts: 305
After changing grids.pas Internal error 200611031
« on: April 21, 2019, 06:08:02 pm »
When I add this line:
Code: Pascal  [Select][+][-]
  1.   type
  2.     TDeltaMoveNextEvent = procedure(Sender: TObject; const ACol, ARow: Integer; var ADeltaCol, ADeltaRow: Integer) of object;
  3.  
to lcl\grids.pas then lcl can not be compiled. I get Internal error 200611031.

This worked with lazarus 1.8.5.  So I changed fpc from Lazarus 2.0.2. with from my lazarus 1.8.5 I get still same error.
What is changed in lazarus 2? Is this bug?

P.S.
If someone try this and get same error then you must delete this line and the compiled units in folder lazarus/lcl/units/ else you won't be able comple anything with lcl-depency.
« Last Edit: April 21, 2019, 06:16:58 pm by Soner »

Thaddy

  • Hero Member
  • *****
  • Posts: 14360
  • Sensorship about opinions does not belong here.
Re: After changing grids.pas Internal error 200611031
« Reply #1 on: April 21, 2019, 06:16:21 pm »
This is a bug and you should report it against FPC, not Lazarus. 200611031 means November 31 2006. It should not occur. Subject is compiler, not rtl.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Soner

  • Sr. Member
  • ****
  • Posts: 305
Re: After changing grids.pas Internal error 200611031
« Reply #2 on: April 21, 2019, 06:23:03 pm »
Now I see  someone had same error here https://forum.lazarus.freepascal.org/index.php/topic,39507.15.html.


Can somebody try to reproduce it?




Soner

  • Sr. Member
  • ****
  • Posts: 305
Re: After changing grids.pas Internal error 200611031
« Reply #3 on: April 21, 2019, 06:41:49 pm »
I tested with fpc 3.2.0 and lazarus 2.0.3-r61029 and this error doesn't occure. Maybe time to switch to fpc 3.2.0.


Problem solved here: https://forum.lazarus.freepascal.org/index.php/topic,39507.msg318468.html#msg318468
« Last Edit: April 21, 2019, 06:50:22 pm by Soner »

Soner

  • Sr. Member
  • ****
  • Posts: 305
Re: After changing grids.pas Internal error 200611031
« Reply #4 on: April 21, 2019, 07:19:02 pm »
Maybe I found the cause of this error.
Look at the procedure lists screenshot. It shows nothing when you call it for grids.pas.
When you change grids.pas with from old version (i.e. lazarus 1.8.5)  and call procedure list then all procedures are listed screenshot 2.
Maybe procedure list (code tools) and compiler using same code.

P.S.
I copied grids.pas from lazarus svn version to lazarus 2.0.3 and all procedures are listed in procedure list.
Something must wrong for the parser with grids.pas from lazarus 2.0.2 (lazarus 2 fixes branch)
« Last Edit: April 21, 2019, 07:46:13 pm by Soner »

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: After changing grids.pas Internal error 200611031
« Reply #5 on: April 22, 2019, 08:36:47 pm »
There is a bug report for same internal error number : https://bugs.freepascal.org/view.php?id=32352

 

TinyPortal © 2005-2018