Skip to content

AccessViolationException when calling tag.Annotation.Message  #174

@achikhv

Description

@achikhv

Hello!

I get AccessViolationException when trying to access tag's annotation properties. It seems, that #129 allows to load targets, but the issue occures when trying to access target's lazy-initialized properties.

Here is sample that will cause AVE when executed

#addin Cake.Git&version=3.0.0

var tags = GitTags("..", true);

foreach (var t in tags)
{
    if (t.IsAnnotated)
    {
        Information(t.Annotation.Message);
    }
}

Is there any way I can read annotation's properties?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions