Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to run NXOpen C++ applications in NX7.5

Status
Not open for further replies.

yadvdinesh

Aerospace
Apr 13, 2015
31
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.
 
 http://files.engineering.com/getfile.aspx?folder=c5f102c6-9cf2-4255-84ac-ec58b9bbdcfd&file=log_file_details.JPG
Replies continue below

Recommended for you

It looks like the signing did work and that the issue is related to dependent dll (not) loading after the check for signing.

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
 
Hi Joe,

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?
 
Yadvdinesh,

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
 
Joe,

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.
 
Yadvdinesh,

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,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor