Results 1 to 3 of 3

Thread: Application Hangs When Calling DLL which contains API

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    6

    Application Hangs When Calling DLL which contains API

    Hi All,


    I developed a vb DLL which checks for the internet connection is up or not
    I am doing this by using following API's
    InternetOpen,InternetOpenUrl and InternetCloseHandle

    I will call this DLL from vb application for every 10 secs
    to check connection is up or not but,
    application hangs till the reply comes from the component.
    (not possible to click anywhere even the menu)

    I tried using doevents but it didnt work out..


    Please tell me ASAP other way to do this....

    Thanks
    Harish

  2. #2
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176

    Re: Application Hangs When Calling DLL which contains API

    Ummm this should be in the vb section ask a mod to move it or just wait for them


    Any chance of posting the api call parts of the code?
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  3. #3
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Re: Application Hangs When Calling DLL which contains API

    VB dlls are single threaded so the calling application will block while the dll call is executing.

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