Results 1 to 7 of 7

Thread: How can I find out what's wrong?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Location
    everywhere
    Posts
    111

    How can I find out what's wrong?

    I need help figuring out my problem. I already posted my problem on here somewhere, but haven't received any replies. So now I need to know if anybody can help me debug my code.

    The problem I have only occurs when the browser containing my activeX control is destroyed (closed) using Scheduled Tasks. Is there any way I can simulate this while running within VB, so I can have access to the debugger?

    When scheduled tasks tries to close the browser containing my control IE crashes and wants to send an error report to microsoft (although I have sent several of these error reports, it's highly unlikely they will be able to do anything for me). Since it seems nobody knows what my problem is, I just need some help as to how to figure out what my problem is. Thank you,

    Jacob438

    Oh yeah, sometimes when the browser containing my control is closed, I get a VB MessageBox that pops up and says something like:
    Run Time Error 7
    Out of Memory

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    make sure you have option explicit in the form(s) and mod(s) file.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Location
    everywhere
    Posts
    111
    yeah, I just double checked everything, and I do indeed have Option Explicit at the top of the UserControl and at the top of each Module I use. Thanks for the suggestion! Do you have any other ideas?

    Jacob438

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    Originally posted by Jacob438
    yeah, I just double checked everything, and I do indeed have Option Explicit at the top of the UserControl and at the top of each Module I use. Thanks for the suggestion! Do you have any other ideas?

    Jacob438
    I have never used active x controls before so I won't be able to help you.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258
    What is the control about. those it use apis. on which line does the message come up.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Location
    everywhere
    Posts
    111
    The control is a simple one that will send requests to an ASP page and when it gets the correct response, it will open IE on the client's machine and point that browser to a separate ASP page. I'm using it for automated load testing.

    Anyways, the API's it uses are:
    OpenProcess
    TerminateProcess
    CloseHandle
    Sleep
    SendMessage
    GetVersionExA
    CopyMemory
    StringFromGUID2

    The last two in the list are only used to mark my control as safe for scripting and initialization and the code was taken from:
    http://support.microsoft.com/default...;EN-US;q182598

    Anyways, my program doesn't seem to "hang" on any line. If it did I'd know where to start. See, if I close the IE browser that contains my control by clicking on the X at the top right... it closes fine. If I close the browser by terminating it's process (through Task Manager) it closes fine. If I close the browser by ending it's task (also through Task Manager) then it closes fine. The only time I have a problem with my control is when it is closed by the Scheduled Tasks thinger in win2k. All the machines I'll be implenting this on will be on win2k, so I need this fixed.

    I need to schedule the IE browser to open and close my control so I don't have to go to 100 machines every night to start up IE.

    Any ideas?

    Jacob438

  7. #7
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    Originally posted by Jacob438


    The last two in the list are only used to mark my control as safe for scripting and initialization and the code was taken from:
    http://support.microsoft.com/default...;EN-US;q182598

    Did you get this sorted out? More importantly did you get safe for scripting sorted out as I can't seem to get http://support.microsoft.com/default...;EN-US;q182598 working at all
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

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