Skip to main content
Known Participant
September 18, 2014
Question

AIR app crashes when I call browse method of FileReference class.

  • September 18, 2014
  • 1 reply
  • 283 views

Hi

I am developing an AIR app that will upload the content from my local computer. When I call browse method of FileReference class, it does not displays any file-browsing dialog box and app crashes and prompt that it has stop working.

Following are the error logs I got from event viewer on my computer:

Faulting application name: UploadApp.exe, version: 0.0.0.0, time stamp: 0x4e7d5190

Faulting module name: Adobe AIR.dll, version: 15.0.0.249, time stamp: 0x53fe5c69

Exception code: 0xc0000005

Fault offset: 0x001e655a

Faulting process id: 0x1284


Please help to resolve this crash.

Thanks

This topic has been closed for replies.

1 reply

September 18, 2014

Can you provide a sample of your code for the section that is calling the FileReference.browse() method? If you are test the app within Flash CS6/CC/Builder (or whatever your dev app is), does it work as expected and only crashes in the actual published app? According to the documentation, this method can throw an error if it was "not called in response to a user action, such as a mouse event or keypress event".