none
Server Busy "Switch to" problem (C#)

    Question

  • I hope this is the right forum.

    But I have the following problem i have an application wich uses a COM object.

    In one of my methods I Ask the com object for an article id. The com object displays a dialog where the user can sellect the right one.

    If the user wait's to long he get's the message Server is busy "Switch to" how can I prevent it that this message is thrown.

    I Use the following code so far.

    public class ERPConnectionRidder8 : IErpConnection
      {
        private RidderApplication application;
        #region IErpConnection Members
    
        public object FindArticle()
        {
          IRidderTable articleTable = application.CreateR8Table("ARTIKEL");
          object articleNumber = application.ShowBrowse("ARTIKEL", articleTable, "ARTIKELNUMMER");
    
          return articleNumber;
        }
    
        public bool Login(string user, string password, bool showLogin)
        {
          if (application == null)
          { 
            application = new RidderApplication();
          }
          return application.Login(user, password, "001", showLogin);
        }
    
        public void Logout()
        {
          application.Logout();
        }
    
        #endregion
      }
    
    The FindArticle Method is causing the problems when called
    Wednesday, September 08, 2010 12:46 PM

Answers

  • Hi,

    Thanks for your post. Could you debug into the code to see what happens when that error message shows? Here is a similar thread and it implies that there could be some other causes potentially. The solution in that thread indicated that some other running softwares are causing this problem.


    Please mark the right answer at right time.
    Thanks,
    Sam
    • Marked as answer by SamAgain Thursday, September 16, 2010 3:41 AM
    • Unmarked as answer by SamAgain Friday, September 17, 2010 9:52 AM
    • Edited by SamAgain Friday, September 17, 2010 9:56 AM refine
    • Marked as answer by eryang Thursday, September 30, 2010 2:49 AM
    Friday, September 10, 2010 7:44 AM

All replies

  • Hi,

    Thanks for your post. Could you debug into the code to see what happens when that error message shows? Here is a similar thread and it implies that there could be some other causes potentially. The solution in that thread indicated that some other running softwares are causing this problem.


    Please mark the right answer at right time.
    Thanks,
    Sam
    • Marked as answer by SamAgain Thursday, September 16, 2010 3:41 AM
    • Unmarked as answer by SamAgain Friday, September 17, 2010 9:52 AM
    • Edited by SamAgain Friday, September 17, 2010 9:56 AM refine
    • Marked as answer by eryang Thursday, September 30, 2010 2:49 AM
    Friday, September 10, 2010 7:44 AM
  • We temporarily mark a reply, please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Please mark the right answer at the right time.
    Thanks,
    Sam
    Thursday, September 16, 2010 3:41 AM