Original Post
I have a dll creating some data using malloc(). I pass a pointer to the data to another program. Then later the other program calls free() on it.
The problem is, it crashes. Why? It''s really simple code, and I don''t know why it could be crashing.
Also, the pointer is a char*. When I tell my other program to print the data, it prints it fine, but then there''s some garbage at the end.
Any ideas?? Thoughts?