1
Vote

Crashes on many 'combo boxes'

description

When trying to use certain combo boxes on some sites, the application will crash (your demo, as well as your browser implemented in my own application). A test website for this would be something like
http://courses.golf.com/golf-courses/us.html
(try to use the states combo box and the application crashes)
 
This could be an awesomium issue, i'm unsure.

comments

Koichi wrote Oct 13, 2010 at 10:33 AM

Sadly, I confirm, any drop down <SELECT> tag causes the application to crash.
Khrona Navi demo doesn't crash when clicking on those tags, though.
http://www.khrona.com/products/awesomium/demos/

Koichi wrote Oct 13, 2010 at 1:47 PM

I have figured it out!

CjcAwesomiumWrapper::RenderBuffer declares a private constant:
const Awesomium::RenderBuffer* renderBuffer;

But within the public method ReplaceBuffer it attempts to free the pointed memory:
delete this->renderBuffer;

But a constant can't be deleted, so the runtime throws an error at assert:
_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)

So I comment out that line.
But then no options are displayed.
And it's unclear which code should free the RenderBuffer occupied memory.

Koichi wrote Oct 13, 2010 at 4:27 PM

I have fixed affected files and uploaded them.
http://chriscavanagh.wordpress.com/2010/10/04/a-real-net-4-0-webbrowser/#comment-7792

Note, that it doesn't display expanded combo boxes properly yet.
But, at least that doesn't crash the application anymore.

wrote Feb 14, 2013 at 8:14 PM