0

I'm reading that the application should be build "thread"-safe with Awesomium.net (C#) I'm calling the webView.executeJavascript("") method.. which sometimes crashes with the accessviolation exception.. Probably because it's not thread safe. But I don't know how to make this work. An example would be great.

Sven Cornelis
  • 331
  • 3
  • 9

2 Answers2

1

I've created a thread-safe wrapper for Awesomium. Check out the source code of the class called Browser of that project.

It will give you an idea on how to use Awesomium cross-threaded.

Cheers!

Dĵ ΝιΓΞΗΛψΚ
  • 5,068
  • 3
  • 13
  • 26
0

What do you mean "thread safe"?

All calls to Awesomium must be performed from the same thread — UI thread or separate thread (using SynchronizationContext) http://wiki.awesomium.net/general-use/synchronization-model.html in non UI environment. Here is an example https://stackoverflow.com/a/23253942/964478

Community
  • 1
  • 1
Alex P.
  • 3,697
  • 9
  • 45
  • 110