Skip to main content
Participant
September 24, 2013
Question

Debugging Windows Native Application

  • September 24, 2013
  • 1 reply
  • 378 views

Our team has developed a Native Air Application with a Native Extension for both Windows and Mac OS. Exclusively in Windows 7 machines, we're seeing a "(application name).exe has stopped responding..." on and around selecting a microphone. I was hoping someone might have some thoughts about how to debug this. I've removed the native extension and all calls to it for the purposes of debugging, so I can rule out faulty c++ code.

I noticed in a number of other threads that creating a crash dump (http://forums.adobe.com/message/4159755#4159755) seems to be a popular approach. Not sure how to open the resultant file in a way that's useful.

Also, I am wondering if there's a way to debug a native windows application remotely, as our windows development machines don't exhibit this bug. Googling yielded a bunch of how-tos for android, ios, or tv remote debugging.

Currently, we are writing to a log file, but that doesn't give very much detail as to what's going wrong, only where.

Any thoughts or advice would be much appreciated -- thanks.

This topic has been closed for replies.

1 reply

Participant
September 25, 2013

I've tracked the crash source down to the assignment of a SampleDataEvent.SAMPLE_DATA listener to each registered microphone.

for ( var i:Number = 0; i < Microphone.names.length; i++) {

    Microphone.getMicrophone(i).addEventListener(SampleDataEvent.SAMPLE_DATA, function(e:SampleDataEvent):void {});

}

This never crashes when I'm debugging or running in ADL through Flash Builder, but crashes ≥ 50% of the time when running on certain Windows 7 machines. No other versions of windows or mac os seem to exhibit this behavior.

I'm trying to graphically display the activity level for each microphone connected to the user's system. When I remove that listener, the application (a) doesn't crash, and (b) doesn't display activity levels.

Has anyone had a similar experience?