Skip to main content
Inspiring
July 30, 2013
Answered

Debug Version Works, Published Version Does Not

  • July 30, 2013
  • 5 replies
  • 1038 views

I have a strange problem. I have a desktop application written in Flex that runs on Mac and Windows. I use IntelliJ to develop the application, and when I debug the application on both Mac and Windows using IntelliJ, it works as expected. However, on Windows when I publish the application and run it, it locks up everytime after completing certain steps in the application. Since this does not happen while debugging it, I have no way of determining the cause. Could there be something internally worng with the AIR 3.7 & 3.8 Runtime that's not happenning when running the application using ADL?

This topic has been closed for replies.
Correct answer Adama-China

lee , do you know  some api  will work on debug mode ,but not worked on release version?

  For example :

  you can load a  resource swf  without   loaderContext parameter  before AIR3.7 . it's worked .but  .if you  use AIR3.7+ ...you  should load swf  like following

" var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);

loader.load(url, loaderContext);

"

it's Just a reminder for you.

5 replies

chris.campbell
Legend
July 31, 2013

Hi Keith,

Can you generate a crash dump (.dmp) when this hang occurs?  You might need to use something like ProcDump to get this done.

In addition, you might also want to roll back to earlier versions of the runtime to see if you can pinpoint when this started happening.

http://helpx.adobe.com/air/kb/archived-air-sdk-version.html

Thanks,

Chris

leejkAuthor
Inspiring
July 31, 2013

I have found the code causing the lockup, see attached screen grab. For some reason, adding the event listener causes the lockup. On some Windows machines this lockup does not happen but on most I've tried it does. The code belongs to a custom Flex component I've written, and works fine when debugging on Windows or Mac, and now I find that also on the Mac that the release version locks up too just like the Windows release version, so there is somehow a problem with the runtime.

Adama-ChinaCorrect answer
Participating Frequently
August 1, 2013

lee , do you know  some api  will work on debug mode ,but not worked on release version?

  For example :

  you can load a  resource swf  without   loaderContext parameter  before AIR3.7 . it's worked .but  .if you  use AIR3.7+ ...you  should load swf  like following

" var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);

loader.load(url, loaderContext);

"

it's Just a reminder for you.