Please look at this code:
class A
{
int a;
};
Then add one more member to class A:
class A
{
int a;
int b;
};
In my huge solution when I add one more member to a class (like member b in class A) I get stack overflow error. I assume that this is somehow related to writing to not reserved data adresses.
Is there any way to find such places in visual studio? Any better ideas why such kind of error happens?
Well, first question: Are you really adding an int
? If yes, then this answer is applicable.
This can happen when:
I would suggest you supply us with some more relevant information (platform, compiler, real code/class definition) first.