Can't build with IntPtr declaration

george_yefchak's Avatar

george_yefchak

21 Mar, 2018 10:09 PM

Hi,

I have an app using PostSharp which builds until I add the following line in my class declaration:

IntPtr _myIntPtrInstance;

Once this is present, the build fails with the following message:

An unexpected exception occurred when executing user code: System.NullReferenceException: Object reference not set to an instance of an object. at PostSharp.Patterns.Model.NotifyPropertyChanged.DependencyAnalysis.PropertiesDependenciesAnalyzer.AnalyzeType(Type type) at PostSharp.Patterns.Model.NotifyPropertyChangedAttribute.CompileTimeInitialize(Type type, AspectInfo aspectInfo) at PostSharp.Sdk.Utilities.ExceptionHelper.ExecuteUserCode(MessageLocation messageLocation, Action userCode, Type[] acceptableExceptions). SimConsole

Please help?

Thanks,
--George

  1. Support Staff 1 Posted by PostSharp Techn... on 22 Mar, 2018 10:33 AM

    PostSharp Technologies's Avatar

    Hello,

    I wasn't able to reproduce your issue, unfortunately. Would it be possible to send us a (sample) project reproducing this issue, please? Which PostSharp version do you use and which platform does your project target?

    Best regards,
    -tony

  2. Support Staff 2 Posted by PostSharp Techn... on 11 Apr, 2018 03:23 PM

    PostSharp Technologies's Avatar

    Hello,

    We are going to close this request as there have not been any further updates. Please feel free to reopen the discussion if you need more help.

    Thanks,
    PostSharp Team

  3. PostSharp Technologies closed this discussion on 11 Apr, 2018 03:23 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac