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?

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; }
    }
}

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

链接地址: http://www.djcxy.com/p/56080.html

上一篇: 对Google等输入进行排序和添加

下一篇: 查看变量时,Visual Studio调试器崩溃