Code Red > .NET

make a program running immediatly at the first execution

<< < (2/6) > >>

MexicanCustard:
Autocad doesn't load your DLL into memory until you execute something in it. So the first time you run your command it loads the DLL and executes the command. The second time and every time there after the DLL is already loaded and Autocad just executes your command.  That's the time difference in the first and second execution.

It's Alive!:
Not much you can do about time on the JITTER  :crazy2:
https://en.wikipedia.org/wiki/Just-in-time_compilation
see Startup delay and optimizations

samideqlqpart:
ok
MexicanCustard you're in right!
i think that there is no solution.
is it possible to make a subroutine  between the moment of execution  and the tracing
to keep or to occupe the user like...
"wait for a moment!" or "the program compute!" or a mouse pointer in use or other

Jeff H:
samideqlqpart,

There are so many different things it could be it is just wild guesses trying to figure out without having your add-in to test.
If you have no idea what order things are loaded and how when then get loaded then simplest thing would be commenting portion of code out until you find the bottleneck.

If you want to narrow it down for starters does your app use ExtensionApplication event?
Application Initialization

samideqlqpart:
my app does'nt use ExtensionApplication event
i'm looking now at the link

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version