Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Big activex problem


Big activex problem

Author
Message
DigiRev
DigiRev
Forum God
Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)Forum God (23K reputation)

Group: Forum Members
Posts: 511, Visits: 265

If you're using the Windows Media Player ActiveX control, you will need to unload the object.

First, you will need to stop the Media Player from playing, by using the "Stop" method, or whatever it uses:

objMediaPlayer.Stop

Then you can try unloading it like this:

Unload objMediaPlayer


TrickyRic
TrickyRic
Forum God
Forum God (93K reputation)Forum God (93K reputation)Forum God (93K reputation)Forum God (93K reputation)Forum God (93K reputation)Forum God (93K reputation)Forum God (93K reputation)Forum God (93K reputation)Forum God (93K reputation)

Group: Forum Members
Posts: 711, Visits: 6
hmm, this should only be a problem if the controls still in use while you exit, thus terminating the parent control while the child control still has an external handle to the media player (assuming that how it works). do you have any set commands? eg...

set a as new media.whatever 'sorry i've never used media player controls

...if so then you need to unset before attempting to close. this should be done from the queryunload event...

set a = nothing




API Guide - VB/MySQL - W3Schools - WinsockVB

cupu
cupu
Forum God
Forum God (301 reputation)Forum God (301 reputation)Forum God (301 reputation)Forum God (301 reputation)Forum God (301 reputation)Forum God (301 reputation)Forum God (301 reputation)Forum God (301 reputation)Forum God (301 reputation)

Group: Forum Members
Posts: 1, Visits: 1
Hello there this is my first time on this forum.
I have tried and tried to find an answer but been unseccesfull.
I have created an activex (that is integrated in a webpage)that contains a chat program and a media player control. The problem is as I have seen that when you put a media player control on an activex, the activex's Terminate event disspaears ... only the hide event is working.
When used in internet explorer if you close the page it gives a memory error.
My guess is that before terminating the activex should somehow dispose of the media player control and probably then the terminate event should appear and the error dissapear.
I really need that media player control there but I have no Idee how to get rid of it in the end.. Any help would be appreciated as I have found no answer on msdn, the media player sdk or other forums
Thank you
Stefan



I am very troubled


GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search