File saving issue in NXOpen external program in NX 7.5
File saving issue in NXOpen external program in NX 7.5
(OP)
Hi All,
I have created a NXOpen external program to open a part file and execute some operations and save as in another file name. This application is getting error in one particular system. The error is it could not able to save as or save the opened part file if folder length is more than 130 characters. It is saving if folder length less than 130 characters. when I try in interactive mode (File > Execute > NXOpen) it is saving fine if more than 130 character also. I am using maximum 24 character including extension for file name.
NXOpen.NXException: Internal error: memory access violation - This is the exception i am getting when i run the external program.
Here I have three questions.
1. Why only that particular system is getting this error.
2. Application saves the file when I run in interactive mode if folder length is more than 130 characters. Why external application gets fail?
3. Is it related to windows issue?
Thanks,
Selvaraj C
NX Automation Engineer.
I have created a NXOpen external program to open a part file and execute some operations and save as in another file name. This application is getting error in one particular system. The error is it could not able to save as or save the opened part file if folder length is more than 130 characters. It is saving if folder length less than 130 characters. when I try in interactive mode (File > Execute > NXOpen) it is saving fine if more than 130 character also. I am using maximum 24 character including extension for file name.
NXOpen.NXException: Internal error: memory access violation - This is the exception i am getting when i run the external program.
Here I have three questions.
1. Why only that particular system is getting this error.
2. Application saves the file when I run in interactive mode if folder length is more than 130 characters. Why external application gets fail?
3. Is it related to windows issue?
Thanks,
Selvaraj C
NX Automation Engineer.





RE: File saving issue in NXOpen external program in NX 7.5
Also, this:
www.nxjournaling.com
RE: File saving issue in NXOpen external program in NX 7.5
Not sure what language you are developing in either, but are you sure you have declared the variable holding the save-as file specification large enough to hold your 130+ character path?
Graham Inchley, Systems Developer, Sandvik Coromant. www.sandvik.com
HP EliteBook 8760w, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX6.0.5.3 MP5
Testing: NX8.5.3.3 MP4 64bit | NX9.0.2.5