Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: Script UI blank

$
0
0

Chuck, have you tried checking $.summary(); and see if the window stays in memory after closing?

Also, you could try deleting it like this:

 

var    mW = new Window ( "dialog", "Test Dialog" ),    _txt = mW.add ( "statictext", undefined, "Test dialog..." ),    bOK = mW.add ( "button", undefined, "OK" ); 
bOK.onClick = function () {    mW.close ();        // DELETE WINDOW    mW = null;    delete mW;        // FORCE GARBAGE COLLECTION    $.gc ();}; 
mW.center ();
mW.show ();

 

Hope that helps.

 

--

Marijan (tomaxxi)

http://tomaxxi.com


Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>