SAP application had to terminate due to an ABAP runtime from C# GUI

I am using sapfewse.ocx in C# to automate SAP GUI. On the user interface i have loaded hierarchical data using the tree control, whenever any user clicks on any node of the tree, the below mentioned code is called, which is generating error as shown below:


private GuiApplication sapEngine { get; set; }
private GuiConnection sapConnexion { get; set; }
private GuiSession sapSession { get; set; }

sapEngine = new GuiApplication();
sapConnexion = sapEngine.OpenConnection(sapGUIConfig.EndPoint,Sync:true);
sapSession = (GuiSession)sapConnexion.Sessions.Item(0);

// ...

    GuiTree treeFilters = getTreePath("wnd[0]/usr/ssub%_SUBSCREEN_%_SUB%_CONTAINER:SAPLSSEL:2001/ssubSUBSCREEN_CONTAINER2:SAPLSSEL:2000/cntlSUB_CONTAINER/shellcont/shellcont/shell/shellcont[1]/shell");
                    treeFilters.ExpandNode("          1");
                    treeFilters.SelectNode("         16");
                    treeFilters.TopNode = "         15";
                    treeFilters.DoubleClickNode("         16");


The SAP application had to terminate due to an ABAP runtime error.

Pls suggest what to do