[Air ANE Java]How use FREObject in Thread? -


i want new thread load file.when complete call dispatchstatuseventasync , push frebytearray.but trigger frewrongthreadexception.

only single thread?

you can use fre* functions on main thread except dispatch status event function. normal process background operations following:

  • trigger working thread frefunction
  • store data in native types
  • dispatch status event when working thread complete
  • call frefunction retrieve native data freobjects

any conversions between native , freobjects have done on main thread try keep minimum.

michael


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -