Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

not able to run idletask instantly

$
0
0

Hi,

 

i created an idletask in following way-

InterfacePtr<TestIdleTask> test_task((TestIdleTask*)::CreateObject(kTestIdleTask,IID_ITestIdleTask));

if(test_task)

                              {

 

 

                                        test_task->UninstallTask();

                                        test_task->InstallTask(0);                    

}

 

 

its running properly, but issue is that it doesn't start instantly. its starts only after current running thread finishing. i.e i started the idle-task on before opening the document, and it starts running when documnt is fully opened. (i am doing some processing on documnt opening) and task is not able to run during this document opening process. how can I free the cycle for idle task?

 

please let me know if anyone faced such issues in past or have any idea about this?

 

Regards,

Harsh


Viewing all articles
Browse latest Browse all 78596


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>