My Sequence Editor is crashing

Hello
Have written a c++ dll function whitch is used in the model. In the function i get pointer to the Execution via SequenceContext.
ExecutionPtr pExecution = m_pContext->Execution;
// Now do some stuff 
pExecution->Release();
In the Operater Interface this works well, because the helpfile said:
Execution Property (Read Only)
Syntax
SequenceContext.Execution
Data Type
Execution
Purpose
Returns a reference to the currently executing execution. Release your reference to this object when you are done using it.
if i delete:  pExecution->Release(); The sequence editor works too:
That means the Editor is using this reference, too.
Please tell me where will this object bereleased?
Greetings from the lake of constance, Germany
juergen
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

It looks like you are using the TestStand API via a #import generated C++ wrapper.  This is probably the best way to use any COM server in C++, but you need understand that the types that you use are C++ smart pointers.  For example, the local variable of type "ExecutionPtr" is a C++ smart pointer class that will automatically release the reference it holds when it goes out of scope, which is a nice feature!. Thus, you shouldn't call Release directly, because then it will be called twice.
If you are curious, the implementation of the COM smart pointers for #import wrappers can ultimately be found in the _com_ptr_t class which is in your copy of Program Files\Microsoft Visual Studio 8\VC\Include\comip.h file.

Similar Messages

  • Can I create child windows in the Sequence Editor?

    Good morning,
    I'm working on an ActiveX class that manipulates some MFC dialogs and other useful things. I was wondering if anyone has been successful creating windows that have the sequence editor as a parent.
    I tried calling the following code with the ActiveX Adapter, and I pass it a copy of Engine.AppMainHwnd:
    long CCmdTargetTSDebugWindow:howDebugWindow(long parent)
    // TODO: Add your dispatch handler code here
    dialog = new CDialogTSDebugWindow();
    dialog->Create(IDD_DIALOG_TSDEBUGWINDOW, CWnd::FromHandle((HWND)parent));
    dialog->ShowWindow(SW_SHOW);
    return 0;
    This works for about 20 seconds then TestStand crashes. If anyone knows of a legal way to create a child window, please let
    me know!
    Thanks,
    Chris Norris
    Carrier Access Corporation
    [email protected]
    303.218.5826

    Hi,
    Maybe this example will help.
    http://zone.ni.com/devzone/explprog.nsf/webmain/0284C64CE766E18F862567AF004F06F8?opendocument
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Preuut and postuut sequences are not executing when run using UI. They run when using the sequence editor.

    I am using TestStand 3.5 and LabVIEW 8 in a Windows XP environment.
    I have a sequence that runs properly when run from the sequence editor.  I have made a few minor mods to the simple Operator Interface that ships with TestStand.  When I run my sequence using the modified Operator Interface, the PreUUT and PostUUT sequences do not execute.  Only the main sequence executes.  This also happens when I run the demo sequences that ship with TestStand.
    What am I missing?

    Hi,
    It sound like you are executing the sequences without the process model, do you get a report at the end of the execution?
    What are these minor mods you have done?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • TestStand 4.0 Sequence Editor Comments

    We are in the process of upgrading from TestStand 3.5 to 4.0.
    We use mostly Custom Steps and the Comments in the steps are used as "Help" instructions for each Custom Step Type.
    In TestStand 4.0, the comments show up in the Sequence Editor and for us are mostly repeatative. 
    Is there a way to suppress the comments from showing up on the Sequence Editor but still allow reading them in the Step properties? 
    I searched through the Station Options and other system configuration options but can't find anything.
    Mike

    Check out:
    http://forums.ni.com/ni/board/message?board.id=330&message.id=15113#M15113

  • Programatically select a step in a sequence in a sequence file loaded in TestStand sequence editor using C#

    Hi all,
    I have written C# code to load a sequence file dynamically in TestStand Sequence editor. The code is as follows...
    myEngine.PostUIMessage(mySequenceContext.Execution, mySequenceContext.Thread, UIMessageCodes.UIMsg_OpenWindows, 0, null, mySequenceFile, true );
    The code is working fine and I could view the Sequence file opened in TestStand Sequence editor.
    Now, I wish to select one sequence in the opened sequence file to get the details of  the sequence programatically. In other words, I want to simulate a mouse click to a sequence and view the steps associated with that sequence.
    Can anybody give some clues...
    Thanks in advance.

    Hi,
    Also I am getting error like "Index out of range. Source:  TSUISUPP.SelectedSteps   at NationalInstruments.TestStand.Interop.UI.Support.SelectedSteps.AddStep(Step val)". Error code: "-17500; Operation Failed." My code is like
    mySequenceFile = myEngine.GetSequenceFileEx(@"D:\dynamic loaded sequence.seq", 0, TypeConflictHandlerTypes.ConflictHandler_UseGlobalType);
    mySequence = mySequenceFile.GetSequenceByName("First");
    Step myStep = mySequence.GetStep(2, StepGroups.StepGroup_Main);
    SequenceContext mySequenceContext = mySequenceFile.NewEditContext();
    mySequenceContext .AsPropertyObject();
    myEngine.PostUIMessage(mySequenceContext .Execution, mySequenceContext .Thread, UIMessageCodes.UIMsg_OpenWindows, 0, null, mySequenceFile, true);
    ApplicationMgr applicationMgr = (ApplicationMgr)myEngine.GetInternalOption(InternalOptions.InternalOption_ApplicationManager);
    SequenceFileViewMgr sequenceFileViewMgr = (SequenceFileViewMgr)applicationMgr.GetSequenceFileViewMgr(mySequenceFile);
    sequenceFileViewMgr.SelectedSequences.Clear();
    sequenceFileViewMgr.SelectedSequences.AddSequence(mySequence);
    sequenceFileViewMgr.SelectedSteps.AddStep(myStep);
    I am sure that my Sequence selected in the Sequence file loaded has more than 2 steps. Please help me in solving this problem and that in the previous post.
    Thanks,
    Biju kuttan

  • Insert menu item blank in sequence editor for new sequence

    In TestStand 2.0.1, when I create a new sequence file using the sequence editor and right-click to insert a step, the Insert menu is greyed out.
    If I open an existing sequence file, copy a step from it, and paste it into the empty sequence, then whatever that step was (let's say Action) becomes available on the Insert menu.
    Is there any way to fix this other than re-installing TestStand? Any idea why this is happening?
    Thanks,
    Gizmogal

    Hi,
    This sounds like you have a problem with your type Palette files in sowe way.
    Check out if you can read the ini files found in teststand\cfg\TypePalettes.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Find if in sequence editor API call

    I swear I found this somewhere once but can't find it now.  What is the API call (or other mechanism) to determine if I'm running from the sequence editor versus a UI?
    What I want to do is if running from sequence editor, make one call, but if running from UI, make another.
    Thanks.
    Solved!
    Go to Solution.

    RunState.IsEditor
    Thanks,
    PH

  • Elements Editor keeps crashing on Windows 7 - any suggestions?

    Editor keeps crashing on launsh.  My PC runs Windows 7.  Has anyone experienced the same problem and found a fix?
    Thanks

    Hi,
    I would like to know whether organiser or editor crashes ?
    If its organiser then there is something related to Catalog.
    Try these steps :
    1. Goto this location : C:\ProgramData\Adobe\Elements Organizer\Catalogs\  -- (program data is hidden folder by default , you will need to unhide it)
    2. Under this location you will find all the catalogs that were created by you
    3. Choose your default catalog.
    4. In that select and delete all the folders except Breezedata and file with extension .pse8db
    5. Relauch your organiser and then check if its stil crashing.
    Thanks,
    Baljeet

  • My Photoshop Elements 7 editor is crashing at startup.

    The box says "Adobe Photoshop Elements (Editor) has stopped working"  I thought I found some solutions that referenced Twain? but could not locate this in my system.  Anyone have the fix??

    Can nobody help me with this issue?  I assume I am going to have to re-install my PSE 7 but if anyone has a fix or can tell me why editor is crashing I sure would appreciate some insight.....!!
    Thanks!!

  • Teststand Sequence Editor has stopped working

    I get the following message and error code when running my sequence file. This sequence files works ok on another machine. It is a display message to the screen for user input. Software version is 4.2.1
    Teststand Sequence Editor has stopped working. 
    Problem signature:
    Problem Event Name: CLR20r3
    Problem Signature 01: seqedit.exe
    Problem Signature 02: 4.2.1.83
    Problem Signature 03: 4af027d1
    Problem Signature 04: PresentationFramework
    Problem Signature 05: 3.0.0.0
    Problem Signature 06: 4f350630
    Problem Signature 07: 6263
    Problem Signature 08: e1
    Problem Signature 09: System.Windows.Markup.XamlParse
    OS Version: 6.1.7601.2.1.0.256.4
    Locale ID: 1033

    Kingme wrote:
    I get the following message and error code when running my sequence file. This sequence files works ok on another machine. It is a display message to the screen for user input. Software version is 4.2.1
    Teststand Sequence Editor has stopped working. 
    Problem signature:
    Problem Event Name: CLR20r3
    Problem Signature 01: seqedit.exe
    Problem Signature 02: 4.2.1.83
    Problem Signature 03: 4af027d1
    Problem Signature 04: PresentationFramework
    Problem Signature 05: 3.0.0.0
    Problem Signature 06: 4f350630
    Problem Signature 07: 6263
    Problem Signature 08: e1
    Problem Signature 09: System.Windows.Markup.XamlParse
    OS Version: 6.1.7601.2.1.0.256.4
    Locale ID: 1033
    Do your code modules use System.Windows.Markup.XamlParse? Is the process close to running out of memory (i.e. over 1GB of memory used)? Do you have any DLLImprorts (if C#) or any native code (i.e. C/C++) being called by your sequences? Does the error happen every time you run? Always on the same step? If so, what is that step doing? Have you tried to debug the process?
    -Doug

  • Distributed TestStand vs. Sequence Editor

    I am having problems with TestExec that I created a distribution for.  The executable that I created and distributed, will not run, for failing to find or open a DLL.  However, when I run the same sequence using the Sequence Editor that I also included in the distribution, it works fine.  I have checked and it appears that all setting are the same on both the Executable and the Sequence Editor, can anyone explaion this.

    Hi greggj_00,
    Did you follow the directions in this article to include your search directories and configuration in your deployment?  I'm assuming this is a DLL which is called by by one of the steps in your sequence.  Where is this DLL placed on the file system in relation to the sequence file?  Also could you post some more info on the error like snowpunter suggested?
    Justin D
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

  • Missing Bowse Sequence Editor

    One of my users has requested a browse sequence, but I can't
    find the Browse Sequence Editor. Another user had a similar problem
    in 2004 and resolved the situation when she ran an update.
    I checked for updates, but none were availalbe, so that's not
    going to work for me. I tried to add a tool, but could not find the
    .exe file. Any suggestions? Thanks. Charles Arnold

    Hi Charles
    I think Colum meant you should click the Tools menu item at
    the top of the screen. Not the Tools tab at the bottom of the
    RoboHelp Explorer pane.
    Cheers... Rick

  • Missing Database Options under Configure menu in Sequence Editor

    In my TestStand 4.0 Sequence Editor, the "Database Options" is missing under "Configure" menu. Does anyone know how to enable this option?
    Thanks

    Glad that was it! Definitely narrows things down.
    These entries on the Configure menu are controlled by a special type of sequence in the process model called Configuration entry points. If you open up one of the default models, you will see a sequence in the Sequences pane called "Configure Database Options". This is the default database options sequence.
    It's possible that your custom model contains a Configure Database Options sequence, but that it isn't configured to be an entry point. You can change this setting by right-clicking the sequence and choosing Sequence Properties. 
    If the custom model does not contain the database functionality at all, further work may be required to add that functionality in. Here's a document explaining how to add new configuration entry points to a process model: http://www.ni.com/white-paper/3837/en Depending on whether this model was originally based on one of our default models and how much of the original database logging code is still present, it may require a fair amount of work to reimplement that functionality. It might be a good idea to contact the person who created this custom model to find out more information about why those database options were removed and how difficult it might be to reimplement them.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Step settings pane in custom sequence editor

    I am trying to implement a custom UI, which is similar to the examples given by NI. What I miss, though, is the step settings pane. I can edit the step settings in the example with the edit menu >> step settings dialog, but I would like to have a pane on the main window, similar to what you see in the full version. I thought it would be as easy as inserting an insertion pane, but it isn't... Does anyone has an example of how to implement such pane?
    Solved!
    Go to Solution.

    Hi paicolman,
    Right now the Step Properties Pane in the Sequence Editor is built into the Sequence Editor and, therefore, only available within the Sequence Editor not in the custom Operator interface.
    The reason why the one in the Sequence Editor looks different is because it is a more compact design so it could easily fit into the Sequence Editor as a pane and not another popup window. The one for the OI is a popup window, so it doesn't need to be so small and compact.
    If you wanted to modify the Step Properties dialog, you would have to completely construct your own dialog and change the callback that connects the command kind. It would be pretty difficult to implement, so using the default dialog is recommended.
    Greetings,
    cheggers
    Sascha E.
    Group Leader Applications Engineering
    National Instruments Switzerland

  • How to fix sequence editor error when using Test Executive 5.1.1 with Labview6.0?

    I had a test sequence that was built with Test Executive 5.1.1 and Labview 5.1.1. The sequence test step vi used Test Shell to allow the user to edit and config the test. After upgrading the test step vi from Labview 5.1.1 to Labview6.0 by mass compiling all vi to Labview6.0, an error occurred while editing the test vi. The error is as following:"Sequence Editor Error: Config Test Vi Callback.vi: Could not config test vi. Make sure the path to the vi is valid." I am sure the vi path is valid, does anybody has any idea why the path was not seen? How can this bug be fixed? Any hints or suggestion would be helpful.

    That's really a TestStand question. You should post to the TestStand Discussion forum. TestStand Discussion Forum

Maybe you are looking for