ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

arx modula is actuall load at run time

1 REPLY 1
Reply
Message 1 of 2
Moshe-A
245 Views, 1 Reply

arx modula is actuall load at run time

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

 

1 REPLY 1
Message 2 of 2
philippe.leefsma
in reply to: Moshe-A

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

 

www.autodesk.com/joinadn



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost