Results 1 to 6 of 6

Thread: Sometimes VB 6.0 developed exe Hangs on Exit Sub

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2007
    Posts
    9

    Sometimes VB 6.0 developed exe Hangs on Exit Sub

    Hi All,
    I have an application written in VB 6.0. the application does not contain any forms. The application fetches a request (XML) from a table , process it and generates an output xml and stores it back in table and exits. But sometimes after storing it in table it hangs. We analyzed by putting debug messages into log files and we found that it hangs in the last exit sub statement. We tried to replace it with End , but still hangs while executing it.

    It does not always hang , some times ... may be after 4-5 requests.

    Please give me some inputs to solve it
    Last edited by jkcool; Aug 14th, 2007 at 06:25 AM. Reason: correcting typos

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Sometimes VB 6.0 developed exe Hangs on Exit Sub

    Welcome to the forums.

    Have you discovered any consistencies? If you try, can you replicate the problem?

  3. #3
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Sometimes VB 6.0 developed exe Hangs on Exit Sub

    Try adding DoEvents before the Exit Sub line.

  4. #4

    Thread Starter
    New Member
    Join Date
    Aug 2007
    Posts
    9

    Re: Sometimes VB 6.0 developed exe Hangs on Exit Sub

    Hey Hack ,
    Thanks for your reply. In some servers we are not able to replicate. But in some servers the application hangs and we have to kill it manually. We tried doing all sorts of termination etc etc... but it hangs during the execution of last line. I'll try that and let you know.

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2007
    Posts
    9

    Re: Sometimes VB 6.0 developed exe Hangs on Exit Sub

    Hell Loard ,
    I'll try that ... Have u ever faced this situation before ..

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Sometimes VB 6.0 developed exe Hangs on Exit Sub

    Yes, and it is a bugger to track down. There is no one specific thing. It generally comes down to trial and error.

    The thing is that I wouldn't be looking at the application itself. If there were something wrong with the code it would happen ALL the time.

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