this.AddinModule returning null in ADXBeforeFormShow()

Add-in Express™ Support Service
That's what is more important than anything else

this.AddinModule returning null in ADXBeforeFormShow()
 
mani g




Posts: 66
Joined: 2009-06-09
Hello,

One of our testers is experiencing a crash with a null pointer exception from within ADXBeforeFormShow(). This happens when referencing this.AddinModule.

I am trying to track down why this is happening, and so far have not found the cause.

I did write a simple add-in that references this.AddinModule from the ADXBeforeFormShow event, and the tester installed it, and it worked fine. So the problem is potentially caused by something non-obvious that is happening elsewhere in my code.

My addin does seem to work fine in general. The user's system is Vista with Office 2003.

So, why would this.AddinModule be null for some people? Any help or ideas much appreciated!

Regards,
Mani
Posted 23 Nov, 2009 15:15:02 Top
Eugene Astafiev


Guest


Hello Mani,

1. What version and build number of Add-in Express do you use?
2. Is Office up to date? Did you install the latest service packs?
3. Could you send a sample add-in project which can reproduce the issue to the support e-mail address (see readme.txt)?

BTW What is the host application for the add-in?
Posted 23 Nov, 2009 15:41:30 Top
mani g




Posts: 66
Joined: 2009-06-09
Hello Eugene,

1. ADX.NET version is: 2.0.50727
2. He appears to have the latest updates installed.
3. As I mentioned, I unfortunately failed to reproduce the issue in a sample project. I assume I've done something wrong elsewhere in my code that could have caused this, and was wondering if you're aware of any common pitfalls.
4. The host application is Outlook.

Thanks very much!
Mani
Posted 23 Nov, 2009 15:49:53 Top
Eugene Astafiev


Guest


Mani,

1. ADX.NET version is: 2.0.50727


It looks like you listed the .Net framework version. I have never seen such exception before.
Posted 23 Nov, 2009 16:00:01 Top
mani g




Posts: 66
Joined: 2009-06-09
Sorry about that. I believe the correct version is: 5.1.2022.2005

Mani
Posted 23 Nov, 2009 16:02:09 Top
Eugene Astafiev


Guest


Mani,

Please try installing the latest build of Add-in Express - 5.2.2024. You can download it http://www.add-in-express.com/downloads/adxnet.php.
Posted 23 Nov, 2009 16:07:24 Top
Fedor Shihantsov


Guest


Hello Mani,

Could you please add the following code at the beginning of your ADXBeforeFormShow event:

if (this.AddinModule == null)
{
  MessageBox.Show("this.AddinModule == null in the ADXBeforeFormShow event.");
  return;
}


In this way, I want to make sure there is no other reason for the exception.
Please let me know about the result.
Posted 24 Nov, 2009 05:26:07 Top