Crash when opening windows in extension...


hello everybody.

 

i have encountered strange issue when trying open window within extension on osx: seems whenever try open "spark" window photoshop cs6, instantly crashes. same extension works flawlessly in indesign.

i have tested on osx v. 10.7.5 , 10.8.2 - haven't tested on windows, don't know if it's mac issue.

 

i have tried compile minimal test case illustrate problem - using extension builder (2.0.0.62-32314) created new project targeting photoshop , indesign cs6. have pasted contents of extension , simple window below.

now - when execute in indesign,  window opens , displays fine when click "open window"-button - executing in photoshop causes crash. if don't set window type, can debug , see different kind of error (error #3200: cannot perform operation on closed window) , still no window shown. , again: in photoshop...

 

so: have run bug introduced in latest versions of ps/extension builder? i'm pretty sure used work in earlier versions (with mx:window rather s:window)? or there other way open these kinds of native windows, photoshop might happier about?

 

thanks.

 

-- gerth isaksen

 

---

 

the main extension file:

 

<csxs:csextension xmlns:fx="http://ns.adobe.com/mxml/2009"

                  xmlns:s="library://ns.adobe.com/flex/spark"

                  xmlns:csxs="com.adobe.csxs.core.*">

    <fx:script>

        <![cdata[

            import com.adobe.csxs.types.csxswindowtype;

            protected function onclick(event:mouseevent):void{

                var w:testwindow = new testwindow();

                w.type = csxswindowtype.modal_dialog;

                w.open();

            }

        ]]>

    </fx:script>

    <s:vgroup height="100%" width="100%" verticalalign="middle" horizontalalign="center">

        <s:button label="open window" click="onclick(event)" />

    </s:vgroup>           

</csxs:csextension>

 

and rather simple window, testwindow.mxml, want open:

 

<s:window xmlns:fx="http://ns.adobe.com/mxml/2009"

          xmlns:s="library://ns.adobe.com/flex/spark">

    <fx:script>

        <![cdata[

            import mx.events.flexevent;

 

            protected function button1_clickhandler(event:mouseevent):void{

                close();

            }

        ]]>

    </fx:script>

    <s:vgroup width="100%" height="100%" horizontalalign="center">

        <s:label text="hello" width="100%" height="100%"/>

        <s:button label="close me!" click="button1_clickhandler(event)"/>

    </s:vgroup>

</s:window>

same problem me.

this happens on mac version 13.0.4 photoshop.

it doesn't works mx:windows , s:windows.

i tried extension builder version 1.5.0 , 2.0.0.4 problem persists.

 

thanks.



More discussions in Creative Suite Extension Builder


adobe

Comments

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

2.5.28 to 3.4.1---Download of update package failed - Joomla! Forum - community, help and support

Your host needs to use PHP 5.3.10 or higher to run this vers - Joomla! Forum - community, help and support