I am writing a c++ application to call Nokia Multimedia Converter to convert avi movies into 3pg format. Since my application calls multiple converters at the sametime (in different threads), Nokia Multimedia Converter throws "can not allocate memory...error" quite often. It even crashed sometime. I put the code about calling the converter in the critical section but it doesn't help.

Any people have any idea? Really appreciate! BTW, i am writing a destop app not the app on the phone.