EDIT:
I'd say this sounds like a C++ problem, and not a PD issue, but I've never seen anything like this before.
I've got a simple C++ object which contains a string. I've added this C++ object to the struct of my PD object (in C). The object seems to be working fine.
Somewhere between the call to the Pd function "classname"_new and "classname"_bang, my pointer is changing the location it points to by +1
Has anyone seen a behavior where the location a pointer points to will change, even though it's not being incremented anywhere, and even though it's been declared private in the class?
Btw, this is compiled on Windows using gcc
-------- in setString -----------
source: HELLOWORLD
length: 10
<<calling from something_new>>
copy: HELLOWORLD
length: 10
address: 32774028
address-2: 32578488
string: HELLOWORLD
length: 10
address: 32774028
address-2: 32578488
string: HELLOWORLD
length: 10
address: 32774028
address-2: 32578488
string: HELLOWORLD
length: 10
address: 32774028
address-2: 32578488
<<now calling from something_bang>>
string: ELLOWORLD
length: 9
address: 32774028
address-2: 32578489
calling postString
string: ELLOWORLD
length: 9
address: 32774028
address-2: 32578489