Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Error in initializing the UG using "UF_Initialize()"

Status
Not open for further replies.

vrganji

Aerospace
Joined
Jul 15, 2014
Messages
3
Location
IN
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..
 
Can you share the code you have used.?
 
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;
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top