removed char pointer from SendDto object. just a char array now. mallocing and freeing was too complicated. No more crashing because of memory leaks