i want new thread load file.when complete i will call dispatchStatusEventAsync and push the FREByteArray.but will trigger FREWrongThreadException.
only a single thread?
i want new thread load file.when complete i will call dispatchStatusEventAsync and push the FREByteArray.but will trigger FREWrongThreadException.
only a single thread?
You can only use the FRE* functions on the main thread except for the dispatch status event function. The normal process to do background operations is something like the following:
Any conversions between native and FREObjects will have to be done on the main thread so try to keep that to a minimum.
Michael