Cancel
Showing results for 
Search instead for 
Did you mean: 

NX10 is closing right after cycle in dll

Pioneer
Pioneer

I have a problem. 

After I run dll with some cycle of counting faces , NX10 asks to close. Before it worked fine, but latest cycle was with huge amount of data and this starts to happen. Anybody knows how to cure that? maybe i need to clean something in cash memory? Please help.

 

thanks

e

 

3 REPLIES 3

Re: NX10 is closing right after cycle in dll

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

What does the NX syslog tell you?

Are you adding the objects to any list or array? I would prefer a list instead of an array.

Which NX release are you working with?

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX12.0.2, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX (1876) | AWC 3.4 Preparing: -

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: NX10 is closing right after cycle in dll

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Depending on how big your operation is exactly (and how much RAM it eats) you can unset the redo function. This helped when something i did with thousands of nxobjects was starting to hog gigabytes of RAM. It never asked to close with me tough.

 

theSession->EnableRedo(false);

 

And then, after the operation

 

theSession->EnableRedo(true);

Re: NX10 is closing right after cycle in dll

Pioneer
Pioneer

Hello, unfortunately EnableRedo did´t help (I put it at the begining of the Sub Main() and at the end, before End Sub - right??).Moreover in some another cycles nx dies when it´s never happened before:issue.jpg

 

 

 

maybe something temp nx  files I need to clean? i using NX10.0.3.5

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

By the way, here is cycle which stacked my nx, before it worked fine:

        For Each facettag As Tag In Facetface
            Dim facetID As Integer = UFConstants.UF_FACET_NULL_FACET_ID
            Dim vertcount As Integer = Nothing
            ufsession.Facet.AskMaxFacetVerts(facettag,vertcount)
            Dim Vertices (0,2) As Double
            ufsession.Facet.CycleFacets(facettag,facetID)
            While facetID<>UFConstants.UF_FACET_NULL_FACET_ID
                ufsession.Facet.AskNumVertsInFacet(facettag,facetID,vertcount)
                ufsession.Facet.AskVerticesOfFacet(facettag,facetID,vertcount,Vertices)
                ufsession.Facet.CycleFacets(facettag,facetID)
            End While
        Next

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

thanks

e