.NET

Reply
*Tony Tanzillo
Message 1 of 4 (86 Views)

OnAssemblyLoad

86 Views, 3 Replies
09-01-2005 03:10 PM
It would be helpful if there was an event fired when
a managed extension application is loaded. I see
module events, but none for managed assemblies that
are extension applications.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
*Albert Szilvasy
Message 2 of 4 (86 Views)

Re: OnAssemblyLoad

09-01-2005 05:27 PM in reply to: *Tony Tanzillo
You can listen to assemblies loaded AppDomain.AssemblyLoad event and do what
you need there. The definition of ExtensionApplication is a bit murky:
I can imaging useful apps that don't have an type that implements
IExtensionApplication or any commands. Stricly speaking they don't even have
to have a reference to any of our assemblies.

Albert

"Tony Tanzillo" wrote in message
news:4945939@discussion.autodesk.com...
It would be helpful if there was an event fired when
a managed extension application is loaded. I see
module events, but none for managed assemblies that
are extension applications.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
*Tony Tanzillo
Message 3 of 4 (86 Views)

Re: OnAssemblyLoad

09-02-2005 12:31 AM in reply to: *Tony Tanzillo
Thanks. I looked at that. What I was mainly interested in
are managed apps loaded via the ObjectARX registry loading
mechansim, or NETLOAD.

The complication with AssemblyLoad is that it fires for every
loaded assembly, including referenced ones, to any depth.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Albert Szilvasy" wrote in message news:4946066@discussion.autodesk.com...
You can listen to assemblies loaded AppDomain.AssemblyLoad event and do what
you need there. The definition of ExtensionApplication is a bit murky:
I can imaging useful apps that don't have an type that implements
IExtensionApplication or any commands. Stricly speaking they don't even have
to have a reference to any of our assemblies.

Albert

"Tony Tanzillo" wrote in message
news:4945939@discussion.autodesk.com...
It would be helpful if there was an event fired when
a managed extension application is loaded. I see
module events, but none for managed assemblies that
are extension applications.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
*Albert Szilvasy
Message 4 of 4 (86 Views)

Re: OnAssemblyLoad

09-02-2005 08:16 AM in reply to: *Tony Tanzillo
This doesn't strike me something that would be useful. An addin can be
referenced by another addin in which case it may get loaded implicitly. I'm
not sure what you would do with the event but it seems to me it would have
limited applicability.

Albert

"Tony Tanzillo" wrote in message
news:4946203@discussion.autodesk.com...
Thanks. I looked at that. What I was mainly interested in
are managed apps loaded via the ObjectARX registry loading
mechansim, or NETLOAD.

The complication with AssemblyLoad is that it fires for every
loaded assembly, including referenced ones, to any depth.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Albert Szilvasy" wrote in message
news:4946066@discussion.autodesk.com...
You can listen to assemblies loaded AppDomain.AssemblyLoad event and do what
you need there. The definition of ExtensionApplication is a bit murky:
I can imaging useful apps that don't have an type that implements
IExtensionApplication or any commands. Stricly speaking they don't even have
to have a reference to any of our assemblies.

Albert

"Tony Tanzillo" wrote in message
news:4945939@discussion.autodesk.com...
It would be helpful if there was an event fired when
a managed extension application is loaded. I see
module events, but none for managed assemblies that
are extension applications.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.