CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    318

    TIMEOUT and COM : HELP !!!

    I make an activeX control under VB.
    This one call another activex.

    I make an app that call my vb ocx.
    To resume the app call vb's ocx that call another ocx.

    If the process of the last activex (called by VB ocx) is too length (depending of the machine speed) i have a message that appears and says :

    Title : Server Busy
    Text : This action cannot be completed because "name of ocx called by vb ocx" program is not responding. Choose "Switch to" and correct the problem.
    Buttons : Switch to ..., Retry, Cancel (grayed)

    But in fact all is ok. If i wait and click on retry all is ok.

    This is like a system timeout on either vb ocx call or com system call.
    I dont know if it is a system message or a vb sdk message.

    I want to avoid this type of message.

    Could your help ???






  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: TIMEOUT and COM : HELP !!!

    there is an OLEServerBusyTimeout property that you can set for the application object.
    Check out the online docs.


  3. #3
    Join Date
    May 1999
    Posts
    318

    Re: TIMEOUT and COM : HELP !!!

    Fine this is what i need but the problem is that function dont works in a ocx.
    The error is : Operation not valid in ocx dll.

    In fact the problem is that i have an app that call a vb ocx that call another (generic) ocx.
    I want to avoid timeout on the last ocx.
    The better way is to implement OLEServerBusyTimeout in the first caller that means my app.
    But this app is a MFC app (visual c) not a vb app.
    Dont know how to implement the timeout in my mfc app.












Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured