Unable to run NXOpen C++ applications in NX7.5
Unable to run NXOpen C++ applications in NX7.5
(OP)
I have developed an application using VS2008 for NX7.5. The application has been developed using C++. When I try to run the dll file in my computer it works perfectly fine. But when I try to run the application in other computers, I get an error message "Failed to load image-see log file for details Function name-ufusr".
I have signed my application & other computers are also having valid CPP author license. Still I am unable to run the application.
Any help would be appreciated.
I have signed my application & other computers are also having valid CPP author license. Still I am unable to run the application.
Any help would be appreciated.





RE: Unable to run NXOpen C++ applications in NX7.5
Was the VS project built as Release or Debug? MS Visual studio would have the debug libraries on your machine that the end user likely would not have.
HTH, Joe
RE: Unable to run NXOpen C++ applications in NX7.5
VS project was built as Release. Also, the dll file is saved on common server. The dll is being taken from the server so the other machines will be having access to debug libraries.
Any other idea on how to fix it?
RE: Unable to run NXOpen C++ applications in NX7.5
Ok, good. "One possibility eliminated."
My top suspicion is still that the production users computers are missing one or more libraries that are available on the development computer.
1) On your development computer does the dll work from that same network location (unc (ip address) in the screen shot)?
2) Was the NX installation on the production computers done using the setup.exe on the NX distribution media or was some other "copy the files" approach used? (The NX installation from setup.exe also (among other things) installs MS VC runtime libraries to Windows directories so copying an existing NX installation is an illegitimate/incomplete NX.
3) Is dotNet framework is installed on the non-developer computer?
4) Is libugopenint.dll etc. available on the production computers?
Next dumpbin.exe /dependents (or depends.exe from an old version of visual studio) to determine the dependencies of the nxapi dll. Then check to see that these dlls are available on the end user computer (as the end user).
HTH,
Joe
RE: Unable to run NXOpen C++ applications in NX7.5
Finally I am able to run the applications on production computers. I had developed the application using VS2008. Today I uninstalled VS2008, & reinstalled the Full VS2008. After reinstalling I compiled my application again. And it started working on the other computers as well.
I am still wondering why it was not running earlier.
RE: Unable to run NXOpen C++ applications in NX7.5
A syslog from when it worked before the VS reinstalltion might shed some light but that is optimistic.
Was the original installation and Express version or just a subset of the full version?
Joe,
RE: Unable to run NXOpen C++ applications in NX7.5