I've set up a char pointer called t_pitch as part of my object struct. In the object initialisation routine I want to write a value to it.
x->t_pitch = sysmem_newptr(3000);
So I'm assigning it memory and posting the new pointer size to the max window. When running, 3000 appears in the max window as expected.
x->t_pitch = "abc";
I then assign it the value of "abc", and post the pointer size again, and then the string contents of the pointer. However when running, now having written a string to this pointer, the size is posted as a very large number (something like 1142968911). The value however, is posted correctly as abc.
Any tips on what I am doing wrong here?