Showing results for 
Search instead for 
Did you mean: 

SetOLEServerBusyTimeout Usage

Valued Contributor
Valued Contributor



I am working on an AddIn for Solid Edge in C# and I'm trying to set the OLEServerBusyTimeout as such:

private SolidEdgeFramework.Application m_application;

This however gives me a System.NullReferenceException.


When I am working with the SetOLE function I noticed it is telling me that the function is defined as:

void Application.SetOLEServerBusyTimeout([object SetOLEServerBusyTimeout = Type.Missing])
Is there some way I'm missing to properly set the timeout or is there something else wrong that's causeing the Type.Missing? Thanks, Sean Walsh


Posted by: Sean Walsh
Post date: 5/8/2012 5:23:23 PM


Re: SetOLEServerBusyTimeout Usage

Valued Contributor
Valued Contributor



from your code snippets i must assume that you are not dealing with the correct initialized SolidEdgeFramework.Application object (which seems to be null in your case).

In an AddIn you get access to the Solid Edge application object in the OnConnection handler as follows:


        public void OnConnection(object Application, SolidEdgeFramework.SeConnectMode ConnectMode, SolidEdgeFramework.AddIn AddInInstance)
            // Save parameters to private members
            m_application = Application as SolidEdgeFramework.Application;


Posted by: Wolfgang Kunert
Post date: 5/9/2012 2:37:55 AM