Failed to load image
Failed to load image
(OP)
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?
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





RE: Failed to load image
www.nxjournaling.com
RE: Failed to load image
RE: Failed to load image
Chris T.
Project Design Analyst
Kohler Co. Engine Division
Using NX7.5
RE: Failed to load image
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
RE: Failed to load image
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
RE: Failed to load image
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