I get this error the first time I build/compile a particular project after opening Delphi (D6 Pro). Subsequent builds do not give the error.
views:
84answers:
1
A:
The error can be caused by an exception being raised in a design component on the form. If the component is running some initialisation code which raises an exception this error will be produced. This can be shown by adding
raise Exception.CreateFmt('Test', []);
into the code of the component. Note that in D6 Pro this does not produce 'Test' in the error message. The underlying exception message is not displayed.
soid
2010-06-19 11:30:42
I don't think so: Simply building/compiling an project doesn't Create the components on the forms. Opening up the forms causes the creation of the components, but the OP is complaining about the first build, not the first time the form is opened.
Cosmin Prund
2010-06-19 12:14:59
Hi Cosmin, Maybe 'initialisation' is the wrong word. The component that caused the RLINK32 was TffServerEngine which I was testing with some new exception messages. I wanted it to generate one of these so I could see the new message had compiled properly and I hard-coded it to always produce an exception in one of the file handling routines. If you have the NoAutoSaveCfg property False it writes to some tables such as FFSINFO.FF2 during the first build/compile, at least when I do it in the IDE anyway, I did not test the command line. I got the RLINK32 error on first build/compile in the IDE.
soid
2010-06-19 15:36:56
This is what I understand: You wrote an "IDE Expert" that plugs into the IDE and raises an exception when the IDE first tries to save a file? Well then, your IDE is behaving correctly! What did you expect it to do? Also your answer to your own question is ambiguous, please define "some initialisation code" (for most of that's the components constructor), and please define "code of the component" - what's that?
Cosmin Prund
2010-06-20 08:58:10
I can find no reference to "IDE Expert" in D6 Pro. I guess this feature was introduced in D7. No, I have not written an IDE Expert.I am debugging a database called FlashFiler:http://sourceforge.net/projects/tpflashfiler/It contains a 'Component' called TffServerEngine. See p.407 of the FlashFiler pdf documentation for details.The function I am editing is in fffile.inc which contains the low level file access routines. The function is FFPositionFilePrim32 which seeks to a position in a file.When I forced an exception in this function I got the RLINK32 error when building my project.
soid
2010-06-20 11:00:58
The D6 Pro help page for the RLINK32 error suggests these possibilities: Dupicate resource name. Corrupted resource file. Unsupported resource type such as 16-bit. Problems upgrading a resource from 16 to 32 bit. None of these are correct for my exception. The RLINK32 error message gives no idea of the true origin of the problem. Ideally it should provide the text of the exception that was raised in the TffServerEngine Component.
soid
2010-06-20 11:07:40