RLINK32: Error opening file "... \ Data.DFM". The first time happens when I create a project after opening Delphi

I get this error when I first create / compile a specific project after opening Delphi (D6 Pro). Subsequent builds do not give an error.

+3
source share
4 answers

The error can be caused by the fact that an exception occurs in the design component of the form. If some initialization code is running in the component that causes an exception, this error will be generated. This can be shown by adding

raise Exception.CreateFmt('Test', []);

into the component code. Note that in D6 Pro this does not cause a “Test” in the error message. The original exception message is not displayed.

+1
source

, ​​ {$ R *.dfm} ( Delphi ) {$ R fMain.dfm}.

+3

Deplhi 2010, , , IDE, , , .

0

, , , ( ).


( , ):

First, I uploaded the “broken” block to the IDE. This did not cause an error until I pressed F12 to see the form. The error message raised by the IDE is not very useful, but after changing {$ R * .dfm} to {$ R MainForm.dfm} the error message has changed to something more specific. More precisely, in the error report, one line was of particular interest:

{MyControls_XE.bpl} StrGrdBase.TBaseStrGrid.FixCursor (Line 569, "StrGrdBase.pas" + 9) + $8

I went over to this row, and I saw that in some conditions I tried to focus on the second row, while the grid only had one row.

0
source

Source: https://habr.com/ru/post/1750805/


All Articles