This is what is happening I think.
The form instantiates
In the form load it calls New Company()
In Company it creates CompanyRules()
In CompanyRules() I want to access a getDataSet method in Company, so I thought I would create a New Company() Object
I think this is the problem with the recursion you are mentioning.
Stack Overflow is Happening in Main. I load the form and it all crashes with stack overflow.
Working on that now.
Thanks for the pointers and where to look.
New Languages...this is why i have no hair left!!! :-)
-->Shawn
>>Thanks Bonnie, I did add the new Company to it and now i get a stack overflow error.
>>the whole prgram crashes out.
>>
>>Is it a problem that company is created on the main form. and then i try to create it again?
>
>Shawn,
>
>Where are you getting the stack overflow error? Normally creating multiple instances of something will not cause this sort of problem, but then again I have no idea what your class might be doing. There might be some repetitive recursion or something going on. Have you traced it?
>
>~~Bonnie