Here is the bug report: [Windows] setting StageWebView instance to null after StageWebView.stage=null cause crash
When you set stage property of StageWebView instance to null (stageWebView.stage = null;) and then set StageWebView instance to null (stageWebView = null;) it cause application crash with MSHTML.dll Application Error.
Sometimes if you test if with ADL if works fine. But if you try to debug it with Flash IDE or Flash Builder it crashes. Also it cause big problems for our high load applications with many StageWebView instances (only 1 displaying in one moment).
I think it could be Garbage Collection problem or something like that.
Steps to Reproduce:
Launch code example and wait 3 seconds (stage property will be set to null and StageWebView instance nulled).
ActionScript 3.0 code:
stageWebView = new StageWebView(true);
stageWebView.loadURL("http://adobe.com/");
stageWebView.viewPort = new Rectangle(100, 100, 640, 480)
stageWebView.stage = stage;
var timer:Timer = new Timer(3000, 1)
timer.addEventListener(TimerEvent.TIMER_COMPLETE, timeout, false, 0, true);
timer.start();
function timeout(e:TimerEvent):void {
stageWebView.stage = null;
stageWebView = null;
}
Result: Application crashes (MSHTML.dll Application Error).
I'd like to ask everyone affected by this issue to take a minute and vote for the following bug.
Thanks.