Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX locks .dll file after unload

Status
Not open for further replies.

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 :

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]
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()
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
 
Replies continue below

Recommended for you

Thanks a lot cowski, I'll give it a look
 
Okay option "Immediately" did the trick. Thanks again, what a time saver option :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor