locked
webview crash problem

    Question

  • I followed the sample code to build a webview control. I found it is very easy to crash with exceptions "A unhandled exception('object doesn't support property or method 'substr' occurred in xxx.exe". If I choose to debug it with VS, then it will tell me the exception is

    Unhandled exception at line 100, column 149 in eval code

    0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'substr'

    How do I fix it?


    Great Wall

    Tuesday, July 8, 2014 7:42 AM

Answers

  • Hi GXLPower,

    "substr" seems to be a JavaScript syntax, seems something wrong with the page you hosted in WebView.

    The error is thrown by JavaScript but not your WebView, if you would ignore it, you can disable JIT Script option. uncheck it.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, July 9, 2014 3:17 AM
    Moderator