Hi Guys,
Have an arx application (more than 600kb in release mode for R2008)
since than (and all releases after) i have the feeling that only partial of it is actually
load at load time. although the main dialog box comes instantly, there is a huge delay
(about 7-10 sec) on the application output, this happends only the first run time,
on the second (and after) it runs normally.
looking at the disk light (when the delay occur) it fully blinks, like the real
load is done at this moment (i do not read or write to an external files at this stage)
maybe it occurs only after restart but i don't compleatly sure about that.
Have any body experienced this?
thnaks in advance
Moshe
Hi Moshe-A,
It's quite possible that during the first run of your application, depending on which API functions it relies, AutoCAD and therefore the operating system both need to load a bunch of extra dlls that contain those functionalities. Those dlls will most likely remain loaded during the session (as long as AutoCAD is not restarted) or even untill the OS reboot, which would explain the time difference between the first run of your app and the subsequent runs.
Although 10 sec seems to be abnormally slow, so you may want to investigate which of your method use up so much time by implementing some chrono methods surrounding the main methods you call in your application...
I hope it helps.
Philippe Leefsma
Developer Consultant
Developer Technical Services
Global Subscription & Support
Autodesk EMEA