Suncad
Mechanical
- Oct 30, 2013
- 44
Hey there,
I have an awkward issue my .NET NXOpen program. After I run the compiled .dll filewhich works as it should, without exception, except I cannot rebuild to make chnages because it is held by NX process.
I do have a function to unload :
And I know NX reads this function (I checked with just-in-time debugger), still after reaching End Module, the only way to recompile is to close and restart NX every time![[sad] [sad] [sad]](/data/assets/smilies/sad.gif)
Same goes with Excel application : in my program, I also open an excel sheet to read values, and close it :
And I notice excel app never close in Windows process list, it just start a new instance every time I read the .dll with NX.
Any clue anyone on the behavour ?
Sun
NX12 - Microsoft Visual Studio 2019 Community x64
I have an awkward issue my .NET NXOpen program. After I run the compiled .dll filewhich works as it should, without exception, except I cannot rebuild to make chnages because it is held by NX process.
I do have a function to unload :
Code:
Public Function GetUnloadOption(ByVal dummy As String) As Integer
[COLOR=#73D216]
'Unloads the image when the NX session terminates[/color]
GetUnloadOption = NXOpen.Session.LibraryUnloadOption.AtTermination
End Function
And I know NX reads this function (I checked with just-in-time debugger), still after reaching End Module, the only way to recompile is to close and restart NX every time
![[sad] [sad] [sad]](/data/assets/smilies/sad.gif)
Same goes with Excel application : in my program, I also open an excel sheet to read values, and close it :
Code:
xlWorkBook.Close()
xlApp.Quit()
Any clue anyone on the behavour ?
Sun
NX12 - Microsoft Visual Studio 2019 Community x64