FreeRTOS: Object not created properly from within task
'Strange memory errors' you seem to be describing values that have gone out of scope.

This is all based on your code, so I may have misunderstood.

The third parameter is causing a memory leak, unless you happen to be deleting it within MyClass (which is normally, not always, bad practice).

It sounds to me that you are trying to access values that have gone out of scope.  

Its also possible that this OS requires you to do something to allow the memory to be shared between the tasks.