Results 1 to 3 of 3

Thread: For a challenge try this! OCX on a web page.

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    4

    For a challenge try this! OCX on a web page.

    I'm having this rather major problem with my usercontrol's behavior.

    I've searched high and low for solutions to the following problem.

    I created a control, in design time populating the control on a standard VB form, everything works just fine. All the expected events fire correctly and everything cleans up as advertised.

    However, when the same control is populated on a Web page, the behavior is intirely different. Initially everything looks fine but when the user leaves the web page the control is still active. I know this because there is a timer which is supposed to be disabled when the terminate event gets fired. The timer never gets disabled. Except of course when the user closes the browser.

    Any help with this problem would be greatly appreciated.'

    Can the control be forced to be destroyed, or is there another way to release it?

    Bill

  2. #2

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    4

    Question Additional information!

    Internet explorer will then through an error when you try to close the browser. If the browser is on the page with the control the exit works fine, but if you exit the page and then close the browser IE throughs an error. I'm assuming this error is related to the attempt to destroy the control. I do know that the control is still in use by IE because if I try to remove the control physically from disk I get a sharing violation error. Once that instance of IE is closed I can remove the control without error.

    Hope this helps to shed some light on the problem.

    Basically, I just need to know how to close the control so that IE no longer has a refrence to it.

  3. #3
    Lively Member
    Join Date
    Jul 2001
    Location
    everywhere
    Posts
    111
    Let me know if you find a solution to this... I am experiencing a problem which may be similar to this. Here's a link to my post:

    http://www.vbforums.com/showthread.p...hreadid=152137

    Thanks,

    Jacob438

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