Posted By: bmayfield Cannot load package 'doa40d2006 msg - 09/08/08 06:46 PM
We have Delphi 2006 and Rad Studio 2007. We have a group of applications compiled using doa40d2006 and we compiled and new application using Rad Studio 2007. The applications share the same library path to the bpls. We copied doa41d2006 into the same libary as doa40d2006 so apps could co-exist. When we try to load a Delphi 2006 bpl we get this message:

Cannot load package 'doa40d2006.' It contains unit 'OracleVisual,' which is also contained in package 'doa41d2006'. The Rad Studio 2007 app runs with no error message.

Can we not run applications compiled with previous versions of doa40d2006?

Thanks.

Bruce

Nebraska Workers' Comp
Posted By: Marco Kalter Re: Cannot load package 'doa40d2006 msg - 09/09/08 03:09 PM
I don't think Delphi 2006 and Delphi 2007 can coexist on the same machine.
Posted By: bmayfield Re: Cannot load package 'doa40d2006 msg - 09/11/08 01:57 AM
D7 and D2006 work together because our path points to one folder that contains library components rtl70.bpl and rtl100.bpl as well as doa40d7.bpl and doa40d2006.bpl. We can load a package that requires either doa40d7.bpl and doa40d2006.bpl and do not get the message. We created a D2006 app without DOA and copied the package over to a D2007 library and it runs just fine against the rtl100.bpl. The runtime bpls should be backward compatible anyway. It don't work when we add back DOA components. Can you take another look at you source and see what is causing this?

Thanks again.

Bruce
Posted By: Marco Kalter Re: Cannot load package 'doa40d2006 msg - 09/11/08 03:27 PM
It's not our code. Apparently your IDE attempts to load both the doa41d2006 and doa40d2006 package, which is of course not possible since they contain different versions of the same components.
Posted By: bmayfield Re: Cannot load package 'doa40d2006 msg - 09/11/08 07:58 PM
All we do is copy the DOA components and drop them on a form, update the uses clause and the dcp shows up in the requires list. We don't do anything custom as it is all standard out of the box coding.

Thank you for responding Marco.
© Allround Automations forums