Jump to content
Sign in to follow this  
sandokhane

error while creating form: range check error

Recommended Posts

Hi; i created a form with Delphi 10.4 ; now i can't open this form in delphi11 and i get this error message "error while creating form34.dfm : range check error".

any idea please ti resolve this problem.

Unit34.dfm

Share this post


Link to post

Sometimes see this error if third party components are not installed and up to date. For example updating to a new Delphi release but not updating third party components like FastReports but just using what was already installed.   

  • Like 1

Share this post


Link to post

the project compiles without error despite the fact that it contains about twenty forms using the same components.

but unfortunately I can't view and modify the said form with D11.

Share this post


Link to post

i deleted components one by one from the dfm file ...

when i deleted nextdbgrid the form was opned without error in the IDE.

So..i confirm ..the problem was with nextdbgrid component.

 

thank you very much form you help.

 

 

[560AAC6F]{NxStandard6Run_d11.bpl} NxControls6.TNxCustomScrollBar.Update + $C3
[695AA5EA]{rtl280.bpl  } System.ErrorAt (Line 5896, "System.pas" + 3) + $4
[695AA62E]{rtl280.bpl  } System.Error (Line 5907, "System.pas" + 1) + $7
[560AAC6F]{NxStandard6Run_d11.bpl} NxControls6.TNxCustomScrollBar.Update + $C3
[741C074F]{vcl280.bpl  } Vcl.Controls.TWinControl.GetClientRect (Line 12880, "Vcl.Controls.pas" + 1) + $9
[5609EEF2]{NxStandard6Run_d11.bpl} NxGraphics6.DotToPixel$qqri + $1A
[560AAAB2]{NxStandard6Run_d11.bpl} NxControls6.TNxCustomScrollBar.SetValues + $2E
[55382B7F]{NxGrid6Run_d11.bpl} NxCustomGrid6.TNxCustomGrid6.UpdateHorzScrollBar + $93
[55382C9D]{NxGrid6Run_d11.bpl} NxCustomGrid6.TNxCustomGrid6.UpdateScrollBars + $15
[55381F15]{NxGrid6Run_d11.bpl} NxCustomGrid6.TNxCustomGrid6.SetActiveView + $49
[69615FF6]{rtl280.bpl  } System.TypInfo.SetOrdProp (Line 2534, "System.TypInfo.pas" + 33) + $0
[696B3039]{rtl280.bpl  } System.Classes.TPropFixup.ResolveReference (Line 10279, "System.Classes.pas" + 0) + $9
[696B3EF1]{rtl280.bpl  } System.Classes.TReader.DoFixupReferences (Line 10760, "System.Classes.pas" + 23) + $7
[696B3F0E]{rtl280.bpl  } System.Classes.TReader.DoFixupReferences (Line 10763, "System.Classes.pas" + 26) + $4
[696B510C]{rtl280.bpl  } System.Classes.TReader.ReadData (Line 11379, "System.Classes.pas" + 6) + $3
[696C37BD]{rtl280.bpl  } System.Classes.TComponent.ReadState (Line 17354, "System.Classes.pas" + 0) + $1
[741B564F]{vcl280.bpl  } Vcl.Controls.TControl.ReadState (Line 5823, "Vcl.Controls.pas" + 3) + $4
[741BA1FD]{vcl280.bpl  } Vcl.Controls.TWinControl.ReadState (Line 8916, "Vcl.Controls.pas" + 3) + $5
[742F9E31]{vcl280.bpl  } Vcl.Forms.TCustomForm.ReadState (Line 4426, "Vcl.Forms.pas" + 3) + $5
[696B60A8]{rtl280.bpl  } System.Classes.TReader.ReadRootComponent (Line 11815, "System.Classes.pas" + 37) + $B
[695B0DDA]{rtl280.bpl  } System.TMonitor.Exit (Line 20079, "System.pas" + 1) + $2

 

Edited by sandokhane

Share this post


Link to post
1 hour ago, sandokhane said:

the project compiles without error despite the fact that it contains about twenty forms using the same components.

but unfortunately I can't view and modify the said form with D11.

The IDE loads designtime packages along with runtime packages before it makes instances of components for the visual form designer. It doesn't do that when compiling. Making sure third party components are installed, reinstalled or updated after installing a new Delphi can help make sure everything is all hooked up and working so they load into the IDE and work without issues in projects that use them. Not sure what the underlying issue is just that I have seen similar errors and re-installing third party components solved it. Guessing it fails to load something but ends up showing an out of bounds error for some reason. 

Edited by Brian Evans
  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×