Why can not run the Cjc.ChromiumBrowserDemo correctly?

Aug 29, 2010 at 8:57 PM

I tried to build the four projects downloaded from here, others run quite well. But for the Cjc.ChromeiumBrowserDemo project, whenenver I run it, my Visual Studio 2010 shows a window, saying the following:

An unhandled exception of type "System.AccessViolationException" occured in Cjc.AwesomiumWrapper.dll

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

What is wrong? I am using the Cjc.ChromiumBrowserDemo (.NET 4.0) and AwesomiumWrapper.dll 1.6 beta.  Does anyone have the same problem?

 

Aug 29, 2010 at 9:09 PM

By the way, I use the source code downloaded from the Downloads tab! And I get this error no matter I run in Debug or Release mode...

Aug 29, 2010 at 9:13 PM

And, I use Visual Studio 2010, not Express version.

Aug 30, 2010 at 12:00 AM

Plus, I am using 32-bit Win 7. For the wrapper, I changed the platform toolset to v100.  How did you make it work with .NET 4.0? Did you use Visual Studio 2008? Any special settings?

Aug 31, 2010 at 8:47 AM

I figured it out. Use v90 toolset to build the Wrapper project, and everything should be fine. Don't use v100 toolset

Coordinator
Aug 31, 2010 at 2:21 PM

superfishkid - Sorry for my slow reply.  You're correct about the v90 toolset.  The reason is Awesomium 1.6 is built with VS2008, and depends on the C/C++ libraries in the v90 toolset.  The next Awesomium release is imminent; I'll see if they can release a VS2010/v100 version of the binaries to help out :)