Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Failed to load image

Status
Not open for further replies.

wiengines

Mechanical
Nov 10, 2008
59
Using NX7.5, and Visual Basic 2010 Express.

I would like to be able to compile my journals into dll's, but so far I am not having any luck.

I am able to compile and build the dll just fine, but when I go to run the dll, I get the following error message:

Failed to load image - see log file for details
Function Name: ufusr


Thoughts?



Chris T.
Project Design Analyst
Kohler Co. Engine Division
Using NX7.5
 
Replies continue below

Recommended for you

have you included the signing recources , and signed, read the docs
 
Hmmm, one IT guy siad that I do have the NX .net author license, and another one said I don't. At this point, I'm going to assume that I don't have it.

Chris T.
Project Design Analyst
Kohler Co. Engine Division
Using NX7.5
 
Assuming that you have a local install and the license is on some server, You can read what licenses you have
without having access to the actual license file:

Open a command prompt, ( "CMD" + <Enter> on the Windows start )
In this window, type "SET ugs" +<Enter>,
Windows will respond
UGS_LICENSE_SERVER=28000@servername
and probably also UGS_LICENSE_BUNDLE.

Then type SET UGII + <Enter>
which responds UGII_BASE_DIR=C:\dir\dir
and some other variables

Type "CD %UGII_BASE_DIR% + <Enter>" ( This will set your current directory to the address seen above.)
then CD UGFLEXLM +<Enter>

In this directory, there are local copies of the flexlm licening software and a tool named "lmutil"
The following line will use the lmutil to list which licenses are in use at the moment and what licenses are available.
You can type "lmutil /help +<Enter> to see the full list if you like.

Now type
"lmutil lmstat -c 28000@servername -a + <Enter>"
( Where "28000@servername" is what Windows responded when you typed "SET UGS" )

If this information "scrolls by too quickly" ( Which it normally does) Add " > c:\temp\licenses_in_use.txt" to the line and the result is instead pushed into a new textfile named "licenses_in_use.txt".
i.e
"lmutil lmstat -c 28000@servername -a > c:\temp\licenses_in_use.txt + <Enter>"

I have this line in a .bat file which i use when people complain that "there are no xyz licenses available".

Regards,
Tomas


 
Thanks Toost for the tip! It worked very well :)

Looking at the licenses available, this is what I have:
C++ author
C++ runtime
ufunc development
ufunc execute
.net runtime

Sadly, I do not see the .net author license listed. Guess that answers my question.

Chris T.
Project Design Analyst
Kohler Co. Engine Division
Using NX7.5
 
Wiengines,

For your consideration:

The utility "%UGII_BASE_DIR%\ugii\run_journal.exe" can effectively reauthor the existing .Net journal as a c++ journal which would be suitable for creating the dll.

HTH, Joe

"%UGII_BASE_DIR%\ugii\run_journal.exe" -r=newfile_name.cpp,lang=cpp, format=ascii existing_filename.vb

Usage: run_journal [ -pim ] [ -r=<filename>[,lang=<lang>][,format=<format>] ] [
-profile ] [ -allow_redo ] <journal-file> [ -args .... ]
Runs a journal file from the command line

-pim Run the journal with NX connected to Teamcenter
Any arguments after -pim that are not in the list below but a
re before
the -args switch are assumed to be for setting up the Teamcen
ter session,
examples are -u=<user>, -p=<password> and -g=<group>
-r=<filename>[,lang=<lang>][,format=<format>]
Rerecord a new journal to the given file name
<lang> must be vb, cpp, cs or java
<format> must be ascii, utf8, unicode, or unicode_big_endian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor