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..
"
'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()"
RE: Error in initializing the UG using "UF_Initialize()"
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;
}