Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Linker    [ Add a report in this area ]  
Report #:  41620   Status: Closed
[Pascal Error] E2161 RLINK32: Error opening file ...<projectname>.TLB
Project:  Delphi Build #:  10.0.2558.35231
Version:    10.0 Submitted By:   Guus Creuwels
Report Type:  Crash / Data loss / Total failure Date Reported:  3/2/2007 1:09:45 AM
Severity:    Critical / Show Stopper Last Updated: 9/15/2012 4:30:31 AM
Platform:    All versions Internal Tracking #:  
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : 11.0.2902.10471
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
3.00 out of 5
Total Votes: 1
Description
Not always, but several times per week when I build a project the compiler status stays on 'Linking' for an extremely long time (2 minutes or more, normally just a few seconds). After being patient the error: "[Pascal Error] E2161 RLINK32: Error opening file "<projectfolder>\<projectname>.TLB" is displayed in the messages window.

Even worse is that the <projectname>.tlb file is deleted from the file system... I have to restart Delphi and recover the files from the source control system.

Probably this occurs after installing the "Hotfix Rollup - Hotfixes 1-10f (except 2)".

Unfortunately the project is too complex to add it as an attachment.
Steps to Reproduce:
Unfortunately the project is too complex to add it as an attachment.
Workarounds
None
Attachment
None
Comments

Craig Farrell at 3/2/2007 12:00:46 PM -
Are you actively editing the Type Library Editor before this happens? If there are IDL errors introduced into the the type library editor then, unfortunately, they may not be displayed in the type library editor, but can result in an RLINK32 error when the .TLB has failed to be produced.

Guus Creuwels at 3/5/2007 12:24:42 AM -
No, I do not have to change anything to the TLB, not even to the project. It usually happens as follows:

(0. Get the latest sources from SourceSafe)
1. Start BDS
2. Opening the bdsgroup
3. Activate the main project (a dll with tlb)
4. Click project - build <projectname>.

Jim Cullison at 3/27/2007 12:31:54 PM -
I also get this error fairly frequently.  All 5 developers in my team get it about once every other week.  The .tlb file is deleted each time.  Delphi 2006 (10.0.2558.35231 Update 2).  Windows XP x64.

I got the error prior to installing the hotfixes, and still do since installing them (all but #2), so that's not the problem in my opinion.

The error happens after the question "The type library <projectname> had translation errors or warnings.  Some information may be lost or modified.  Do you want save with these modifications?"

Heh, I just noticed that message says "Do you want save".

Anyway, I get that type library warning quite a bit, but intermittently.

This particular type library has been brought forward from as far back as Delphi 3, I believe.

I can restore the tlb from StarTeam, but the project typically won't compile and link successfully until I close the IDE, restore the tlb file, and start up the IDE and do a Compile.

Maybe some of this will help.

Denis Peshkov at 12/26/2009 11:58:43 PM -
This error is 100% reproduced on Windows 7, when Delphi was started without admin rights. If this solution did not solve th problem, then look at UAC (User Account Control).

Tomohiro Takahashi at 12/27/2009 4:46:10 PM -
Denis-san
Could you please provide Steps to reproduce this issue?
If you have a sample proejct, please upload it to this forum. I will attach it to this report as Sysop.
[Embarcadero Discussion Forums >> Attachments]
https://forums.codegear.com/forum.jspa?forumID=2

Server Response from: ETNACODE01