System.StackOverflowException On Set
by Viktor Rumanuk · in Torque X 2D · 12/21/2007 (10:31 am) · 2 replies
Phew, get past one problem and another hits you right in the face. Anyway, I have three public doubles set up for range, power, and speed. When I debug I get a System.StackOverflowException :
Thanks again, Viktor
public double Range
{
get { return Range; }
set (here)[b]{[/b] Range = value; }
} The exception helper tells me to check if I have an infinite loop or infinite recursion, which seems strange as I just want to set the value. What can I do about this?Thanks again, Viktor
Torque Owner Dan Maruschak