Jump to content
Excelsior Forums
Sign in to follow this  
Ashwin

Upgrading the dlls

Recommended Posts

Hi,

I have generated the windows native code from the jars though multi-component principal. It is working properly. But now I want to simply upgrade one of the jar... thus the corresponding dll, but when i generate the new version dll of it and tried to replace it with the older one the application stop working and generated the following error message...

"Failed to load c:\test\foo2.dll <inconsistency with foo2.dll>

unable to find/load c:\test\foo2.dll <referenced from c:\test\MainExe.exe>

If you port compiled executables to other machines, please use the JetPack II deployement utility <see Jet's user guide, deployement automation for detail>"

Can anybody suggest what is the exact procedure for upgrading an existing dll... :)

Share this post


Link to post
Share on other sites
Can anybody suggest what is the exact procedure for upgrading an existing dll

You should create an update package including the updated DLL (see JET User's Guide, Chapter "Deployment Automation", "Step 1 creating a New Package/creating an update")

Share this post


Link to post
Share on other sites

With the help of update package I have followed the mentioned procedure. The package has even identified the changes in the replaced dll...but the problem persist when i have checked it through a trial run...

Share this post


Link to post
Share on other sites

1) does the application work on the build machine after re-compiling the DLL but before using JetPackII?

2) are you sure it's enough to rebuild (and replace) only the DLL?

Here is an excerpt from JET User's Guide ("Dynamic linking"):

------

STEP 5. Re-compilation

If you change the jars from CS_exe compilation set, it is enough to

recompile only the executable with the command

jc =p CS_EXE.prj'

However, if jars compiled into one of the DLLs were changed, it is necessary

to recompile that DLL as well as the components that were built after it,

including the executable.

------

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×