openwebkitsharp read/write protected memory
Asked Answered
O

1

7

I am trying to integrate webkit.net into my project. I started off with OpenWebkitSharp 3.0 because it supports latest HTML5/CSS3 but I am always experiencing crash from clicking the page and even on load sometimes. The error I get is below:

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

I can't fathom the issue as it happens randomly just by navigating through the page. From various articles I read online that error is from Webkit.dll and I was advised to wait for the release of more stable version.

After multiple days of trials, I found another version webkitdotnet-develop which seems to be more stable but it doesn't support webfonts(.ttf/woff/svg) with Backbone.js framework. The webfonts worked fine with a simple html file but not with the backbone.js eventhough I was able to load same file using google/firefox browsers with no problem. I guess something in backbone.js is breaking the @font-face style from displaying in the WebkitBrowser.

Could someone help with any of the two issues? Thanks in advance!

Om answered 10/3, 2014 at 14:16 Comment(0)
S
1

I am always experiencing crash from clicking the page and even on load sometimes.

The underlying DOM interfaces for events are not fully implemented, which leads to a null reference

The webfonts worked fine with a simple html file but not with the backbone.js

The Backbone view creates IDs and class names dynamically, so find the bindings in the render and create matching selectors for fonts:

  <style>
  .fonty { 
         font: 14px/1.4em "Helvetica Neue",Helvetica,Arial,sans-serif;
         color: rgb(51, 51, 51);
  }
  </style>

  <script>
  render: function() {
  this.$el.toggleClass('fonty', this.model.get('done'));
  }
  </script>

References

Straightjacket answered 8/7, 2014 at 23:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.