Error opening DFM file

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
777Yves
Posts: 37
Joined: Mon 09 Aug 2010 19:55
Location: Québec

Error opening DFM file

Post by 777Yves » Mon 06 Jun 2016 15:00

Hi, I upgrade MyDac from 7.6.11 to the lastest version. Delphi XE is running on a XP sp3 machine. I have uninstall the previous version of MyDac via the control panel before installing the new version. Everything went fine except that when I compile or built the project I was working on, I receive this message:
[DCC Error] E2161 Error: RLINK32: Error opening file "P:\PCHP_Db\Dev\Fmrq2000\Source\DbLocal.DFM"
Those DFM files that RLink complain about are all data module created at the beginning of the project.
I could see the file via explorer and I could access it in Delphi.
If I rebuilt the project, I receive the same message but for another DFM file.
[DCC Error] E2161 Error: RLINK32: Error opening file "P:\PCHP_Db\Dev\Fmrq2000\Source\DbCumul.DFM"
The file is also there and accessible.
If I rebuilt the project, I receive the same message but for another DFM file or the built is successfull and the project run.
It then seem ok as long as I don't close and reopen the project.
I have never experience a similar problem.

Yves

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Error opening DFM file

Post by ViktorV » Tue 07 Jun 2016 13:08

It seems that there are some old DAC units on your computer.
To solve the problem, try to perform the following steps:
- close the IDE;
- uninstall MyDAC;
- find all DAC units, like MemUtils.dcu, CRParser.dcu, CLRClasses.dcu, MemData.dcu, MemDS.dcu, DBAccess.dcu, MyClasses.dcu files on your PC and delete them;
- find all *dac*.bpl, *datasetmanager*.bpl, dclcrcontrols*.bpl and crcontrols*.bpl files on your PC and delete them;
- install MyDAC;
- run the IDE and try to compile your project.

777Yves
Posts: 37
Joined: Mon 09 Aug 2010 19:55
Location: Québec

Re: Error opening DFM file

Post by 777Yves » Tue 07 Jun 2016 15:27

Hi, well I have follow your last message and I did not find any remaining file on my computer.
I use FindEverything.exe to check all those name and no trace.
Is this an extensive list or could it possibly have some other files name that are not in the list ?
A point that I forgot to explain is that we install SecureBridge for the first time after upgrading MyDac.
We bought the 2 packages at the same time, last week.
Any other idea will be welcome.

Thanks, Yves.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Error opening DFM file

Post by ViktorV » Wed 08 Jun 2016 10:28

Unfortunately, we could not reproduce the problem. Installation of SecureBridge after updating MyDAC cannot cause this problem. Please try to install RAD Studio XE without third party components and the latest versions of MyDAC and SecureBridge on another machine (e.g. virtual), and check whether the problem repeats.

Post Reply