×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Error in initializing the UG using "UF_Initialize()"

Error in initializing the UG using "UF_Initialize()"

Error in initializing the UG using "UF_Initialize()"

(OP)
I am getting the following error while initializing the UG using "UF_Initialize()". Thanks in advance for your help, Any help is highly appreciated!!

"
'MeshICBatchX86.exe': Loaded 'C:\EngApps\NX\NX8.5\UGII\libattr.dll'
'MeshICBatchX86.exe': Loaded 'C:\EngApps\NX\NX8.5\UGII\libhidl.dll'
First-chance exception at 0x7609969b in MeshICBatchX86.exe: Microsoft C++ exception: UErrorCode at memory location 0x0012eff0..
'MeshICBatchX86.exe': Loaded 'C:\Windows\System32\dbghelp.dll'
First-chance exception at 0x7609969b in MeshICBatchX86.exe: 0x00000000: The operation completed successfully.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
First-chance exception at 0x7609969b in MeshICBatchX86.exe: Microsoft C++ exception: UGS::Error::Standard at memory location 0x0012f38c..
First-chance exception at 0x7609969b in MeshICBatchX86.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7609969b in MeshICBatchX86.exe: Microsoft C++ exception: UGS::Error::Standard at memory location 0x0012f43c..

RE: Error in initializing the UG using "UF_Initialize()"

Can you share the code you have used.?

RE: Error in initializing the UG using "UF_Initialize()"

(OP)
Hi Mukund,

Thanks for looking into this. please see the following simple code snippet that I was using to initialize UG. The same exe was able to run in another system without any re-build. There is something in my system making it to crash, whcih I am unable to identify. I appreciate your help.

Also, FYI, I have uninstalled and re installed couple of times UG NX, but still problem persists. Are there any logs from UG that shows more details on this?

#include <iostream>

//Open C Headers
#include <uf_curve.h>
#include <uf.h>
#include <uf_csys.h>
#include <uf_part.h>

using namespace std;

int main(int argc, char* argv[])
{
try
{
/* Initialize the Open C API environment */
int errorCode = UF_initialize();


/* Terminate the Open C API environment */
errorCode = UF_terminate();

std::cout << "Initialized session..." << std::endl;
}
catch (exception e)
{
std::cerr << "Caught exception " << e.what() << std::endl;
return 1;
}

return 0;
}

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources