D
daz_oldham
Hi everyone
As my expedition into OOP takes another shaky step, I now am getting
the error:
An unhandled exception of type 'System.StackOverflowException' occurred
in xxx.dll.
In my Visit.cls I have got:
public class Visit
{
public FABInfo Info = new FABInfo(); // Line that the error
flags up on.
}
Then in my FABInfo.cls I have got:
public sealed class FABInfo : Visit
{
public string myFunc()
{
return "this.m_sFABSessionID.ToString();";
}
}
When I create an Instance of Visit, I get a loop of
oVisit.Info.Info.Info.Info..... so that is where the problem lies.
Any ideas anyone?
Many thanks
Darren
As my expedition into OOP takes another shaky step, I now am getting
the error:
An unhandled exception of type 'System.StackOverflowException' occurred
in xxx.dll.
In my Visit.cls I have got:
public class Visit
{
public FABInfo Info = new FABInfo(); // Line that the error
flags up on.
}
Then in my FABInfo.cls I have got:
public sealed class FABInfo : Visit
{
public string myFunc()
{
return "this.m_sFABSessionID.ToString();";
}
}
When I create an Instance of Visit, I get a loop of
oVisit.Info.Info.Info.Info..... so that is where the problem lies.
Any ideas anyone?
Many thanks
Darren