Page 1 of 1

Fails to load after recompilation in XE 2 update 4 hf 1

Posted: Mon Oct 22, 2012 12:25 pm
by 16563163
After applying the embarcadero hotfix 1 to update 4 in XE2, the teechart needed to be recompiled. So I run the teerecompile.exe, which run OK, but when I start XE2, it fails to load the compiled package with the following error in the attached image file. How can this be fixed?

Re: Fails to load after recompilation in XE 2 update 4 hf 1

Posted: Mon Oct 22, 2012 1:46 pm
by yeray
Hi,

I see you have many 3rd party tools installed in the IDE. I'd suggest you to unselect any item in the list corresponding to a component that you may suspect to be using TeeChart.
If you find an item that unselecting it allows you to select and use the just recompiled TeeChart version, you will have to also rebuild that component if you want to use it.

Re: Fails to load after recompilation in XE 2 update 4 hf 1

Posted: Mon Oct 22, 2012 3:11 pm
by 16563163
I unselected all of the other components and still get the same error.

Re: Fails to load after recompilation in XE 2 update 4 hf 1

Posted: Tue Oct 23, 2012 9:23 am
by yeray
Hi,

What TeeChart release are you using?

Re: Fails to load after recompilation in XE 2 update 4 hf 1

Posted: Fri Oct 26, 2012 1:22 pm
by 16563163
Release Notes 13th June 2012
TeeChart VCL version 2012
Build 2012.06.120613

I had to reinstall the teechart. So, something must be off with the teerecompile.exe. I also have BDS2006 installed, maybe this confuses it?

Re: Fails to load after recompilation in XE 2 update 4 hf 1

Posted: Fri Oct 26, 2012 3:43 pm
by yeray
Hi,
Dr Stone wrote:I had to reinstall the teechart. So, something must be off with the teerecompile.exe.
I'm not sure to understand if you could finally solve it or not.
This kind of problems usually indicate the IDE has some reference from an older version still being loaded in the packages list or in the library or search path (in some of the personalities). Please check the IDE is clean of references to old installations.
Dr Stone wrote:I also have BDS2006 installed, maybe this confuses it?
No, it shouldn't interfere. We have here machines with a dozen IDEs (from BCB5 to RAD XE3) and TeeChart installed in all them.

Re: Fails to load after recompilation in XE 2 update 4 hf 1

Posted: Sat Oct 27, 2012 9:26 pm
by 16563163
Finally I found what the problem was: if I manually copy the *.bpl from the Compiled\Delphi16.win32\System to windows\system32 and to windows\SysWOW64 everything works. So, the teerecompile does not do this automatically on my system, which is a windows server, even when it runs in the admin mode. Did I do it right and do I need to put an extra copy elsewhere? Where exactly are BPLs supposed to be copied and stored? Where does the BDS pick them up from? Thank you.

Re: Fails to load after recompilation in XE 2 update 4 hf 1

Posted: Sat Oct 27, 2012 9:51 pm
by 16563163
It also works fine if I delete the bpls from windows/system32 and syswow64 and just place them elsewhere, for example the same embarcadero bin folder or any other folder in the system path. Not sure why the teechart installer decided to spread them around the multiple windows system folders.

Re: Fails to load after recompilation in XE 2 update 4 hf 1

Posted: Tue Oct 30, 2012 9:03 am
by yeray
Hi,

Right, the runtime libraries are supposed to be found at:
- Windows/System32, for 32bit OS.
- Windows/System32, for 64bit applications in 64bit OS.
- Windows/SysWOW64, for 32bit applications in 64bit OS.

Both TeeRecompile and TeeInstall utilities try to copy them into the according folders above. However, it seems it failed for some reason in your system.
It may be due to some security software (antivirus, antispyware, antimalware,...) running on the machine, besides to a lack of privileges you checked.
If you still have problems with it, please tell us what exact OS are you running so we can check it here.