Dapper-FluentMap icon indicating copy to clipboard operation
Dapper-FluentMap copied to clipboard

System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

Open drma-tech opened this issue 4 years ago • 3 comments

public class BadgeMapper : EntityMap<BadgeVM>
    {
        public BadgeMapper()
        {
            Map(p => p.Rank.Level)
                .ToColumn("Rank_Level");
        }
    }

As in my previous ticket, I tried with just one mapping to see if it worked, but it is generating another error.

drma-tech avatar Nov 08 '20 17:11 drma-tech

Do you have a full stack trace?

henkmollema avatar Nov 10 '20 08:11 henkmollema

There is no stacktrace, as it is an exception generated by the visual studio itself. But this is easy to reproduce, because I believe that the component is not recognizing attributes of another class

drma-tech avatar Nov 10 '20 13:11 drma-tech

I encountered this error when I have nested types in my mapping for CustomPropertyTypeMap. I tried to instantiate the nested type from the constructor, but to no avail.

jgador avatar Feb 23 '21 19:02 jgador