Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK 4.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:comp="components.*" width="200" height="200">
<fx:Script>
<![CDATA[
import spark.components.Window;
protected function button2_clickHandler(event:MouseEvent):void
{ var dialogWindow:Window = new Window(); dialogWindow.width = 400; dialogWindow.height = 400; dialogWindow.resizable = false; dialogWindow.type = NativeWindowType.NORMAL; dialogWindow.systemChrome = NativeWindowSystemChrome.STANDARD; dialogWindow.title = "Native Dialog"; this.enabled = false; this.mouseEnabled = false; this.mouseChildren = false; dialogWindow.open(); dialogWindow.nativeWindow.x = this.nativeWindow.x + 100; dialogWindow.nativeWindow.y = this.nativeWindow.y + 100; dialogWindow.activate(); dialogWindow.close(); } ]]
>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:SkinnableContainer width="100%" height="100%">
<s:HGroup>
<s:SkinnableContainer width="100%" height="100%">
<s:VGroup gap="10">
<s:Button x="10" y="10" label="Show Dialog" click="button2_clickHandler(event)"/>
</s:VGroup>
</s:SkinnableContainer>
</s:HGroup>
</s:SkinnableContainer>
</s:WindowedApplication>
Run this app, click on the button.
Actual Results:
Crash in spark::Window::enterFrameHandler()
Expected Results:
no crash.
Workaround (if any):