I'm testing Mono.Addins to make a complex application with this Framework. My Test App Is like this:
1) I've got AddIns.exe Application (The main application). In this application, i have only 1 Extension Point. 2) I've got AddInsLib.dll Library with a ICommand Interfase. (Like a Helper Library with the necesary commands to make an addin). 3) MyAddin1.dll Which implement one of the application AddIn. The first time i run my app It works, the second time, (i'm using AddinLoadError to show this error message) it does not work: (I enumerate the lines to explain) 1) Addin Loaded: AddIns 2) Error en __MyAddIn1,0.0.0.0: Node 'Command' not allowed in extension: /AddIns/StartupCommands 3) Error en : Object reference not set to an instance of an object 1- This tell me that the first (And main) AddIn is loaded 2- The Second is not. 3- The error. The strange is that if i modify (without changing anything, only save again) the Addins.addin file (The main AddIn file). It works ONLY 1 time, and i get: Addin Loaded: AddIns Addin Loaded: __MyAddIn1 AddIn Response: My AddIn 1 is Started The second time i run my app, it give me the same error show before this. The stack trace of the error is: ---> System.NullReferenceException: Object reference not set to an instance of an object at AddIns.MainClass.OnAddInLoadError (System.Object sender, Mono.Addins.AddinErrorEventArgs args) [0x00016] in /home/luciano/zebra/ trunk/kb/AddIns/AddIns/Main.cs:36 at Mono.Addins.AddinManager.ReportError (System.String message, System.String addinId, System.Exception exception, Boolean fatal) [0x00000] at Mono.Addins.ExtensionTree.LoadExtensionElement (Mono.Addins.TreeNode tnode, System.String addin, Mono.Addins.Description.ExtensionNodeDescriptionCollection extension, System.Int32& curPos, Mono.Addins.BaseCondition parentCondition, Boolean inComplextCondition, System.Collections.ArrayList addedNodes) [0x00000] at Mono.Addins.ExtensionTree.LoadExtension (System.String addin, Mono.Addins.Description.Extension extension, System.Collections.ArrayList addedNodes) [0x00000] at Mono.Addins.ExtensionContext.LoadModuleExtensionNodes (Mono.Addins.Description.Extension extension, System.String addinId, Mono.Addins.Description.ExtensionNodeSet nset, System.Collections.ArrayList loadedNodes) [0x00000] at Mono.Addins.ExtensionContext.LoadExtensions (System.String requestedExtensionPath) [0x00000] at Mono.Addins.TreeNode.get_Children () [0x00000] at Mono.Addins.ExtensionNode.get_ChildNodes () [0x00000] ----> Other strange behavior (i guess), is that, this only happen if i run this with MonoDevelop (my main MonoDevelop 1.0 and the parallel environment 1,9), but running my App by hand (with mono AddIns.exe) it works allways. If someone could help, i will appreciate, or maybe someone could point me, to where i can fix it. The example app is available to download and see the error: http://www.vadmin.com.ar/work/zebra/addins.tar.gz Thanks a lot in advanced. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Mono.Addins" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en -~----------~----~----~----~------~----~------~--~---
