Reputation: 11
Everything's in the title, if I try to dotnet run it exits with no message, however using dotnet exec on the DLL outputs "segmentation fault" and exits.
Upvotes: 0
Views: 1556
Reputation: 11
Okay, so another developer working on the project found the problem. I caused a stack overflow (how convenient) on one of the custom attributes I made. Here's the code:
private string Message
{
get
{
return this.Message;
}
set
{
this.Message = value;
}
}
So basically, it was calling itself indefinitely. What I was supposed to do instead was create a second string to access it from:
private string Message
{
get
{
return this.message;
}
set
{
this.message = value;
}
}
private string message;
Hope it helps some of you!
Upvotes: 1