Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio debugger crashes when viewing a variable

Below is what I get shortly before VS Debugger crashes. When i don't have the debugger view it, it throws a segfault in the set function. The debugger has been working all day, on this same stuff too. Any ideas?

Visual Studio Debug Session

Object i am viewing:

[DataContract]
public class SvnUrl
{

    public string _type;
    public string _acronym;
    public string _location;
    public string _url;
    public int _foundstatus;

    [DataMember]
    public string type
    {
        get { return _type; }
        set { _type = value; }
    }
    [DataMember]
    public string acronym
    {
        get { return _acronym; }
        set { _acronym = value; }
    }
    [DataMember]
    public string location
    {
        get { return _location; }
        set { _location = value; }
    }
    [DataMember]
    public string url
    {
        get { return _url; }
        set { _url = value; }
    }
    [DataMember]
    public int foundstatus
    {
        get { return _foundstatus; }
        set { _foundstatus = value; }
    }
}
like image 728
Chris Avatar asked Nov 10 '11 00:11

Chris


1 Answers

Are you sure you typed the example identical to your code and you don't really have get { return location; } in that location property (note the missing _ thus recursing infinitely)?

like image 75
Hans Kesting Avatar answered Oct 22 '22 20:10

Hans Kesting