Please help me with this error message

I just started programming and was relieved when I made my first program.

A radioplayer based on MS WMP9.
But now when I try to run a test with VS.NET 2002 I get this error:
An unhandled exception of type 'InvalidActiveXStateException' occurred in axinterop.wmplib.dll

Can someone explain to me what this means, because I haven't changed the code since the last time I worked on it and last time it worked.

And if possible, does someone know how to solve this.


Answer this question

Please help me with this error message

  • Jens Egil Evensen

    You have to decide that yourself.  The try is usually used for the main execution parts.  Kinda like this:

    Declare variables and other stuff.
    .
    .
    .

    Try
    play song

    Catch
    exception

    Finally
    whatever

  • KMahon

    Basically, you have an unhandled error. Handle it with 'try - catch - end try'

    Try
    ...

    Catch ex as exception

       MessageBox.Show(e. message) '...

    End try

    For example:

    If you have something closed & you try to close it again then there would be an error shown because it is already closed... Its the same principal, but different error

  • Allan_Hansen

    Thanks for the quick answer, but what do I place between the Try - Catch statements, because there is a lot of code in that form.

    (Would it help if I placed that code into here)

  • Please help me with this error message