hust-marx / firebreath

Automatically exported from code.google.com/p/firebreath
0 stars 0 forks source link

Exception FB::bad_variant_cast when mouse is moved in plugin window #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce the problem?
1. Create, install and run a new plugin
2. Debug plugin with Visual Studio
3. Move browser mouse in plugin window

VS shows exception "FB::bad_variant_cast at memory location 0x0012d85c" in its 
output panel. 

Tested on FB version 1.2.1 with IE on Windows XP.

The exceptions "FB::bad_variant_cast at memory location 0x0012d85c" can be 
generated quite easy from a browser page that has the plugin embedded by simply 
moving the mouse pointer in the plugin window. 
You have this error also out of the box when you build, install and test a 
freshly generated plugin (using ../gen/FBcontrol.htm) without changing anything 
in the code.

It apparently doesn't do any harm but it is annoying during test.

Original issue reported on code.google.com by jos.huyb...@gmail.com on 26 Sep 2010 at 8:09

GoogleCodeExporter commented 9 years ago

Original comment by taxilian on 27 Sep 2010 at 2:51

GoogleCodeExporter commented 9 years ago
I believe that I have cleared this up; in fact, it could have been causing 
another issue.

However, I would like to point out that this was not actually an error 
condition by itself; it was simply a "first-chance exception".  If you have 
logging of "First-Chance Exception" messages enabled (which is default) you 
will see this any time an exception is thrown, even if, as in this case, it is 
handled correctly.

There are several exceptions in FireBreath that will pretty much always be 
thrown; that is because they are used to give a clean path when the browser 
requests something that isn't supported, as well as some other similar 
situations.

However, the situation should be greatly improved in the latest dev (will go 
into a nightly build tomorrow morning).

Original comment by taxilian on 27 Sep 2010 at 3:42