Memory Ownership SendCardMessage Malloc() Sprintf()
Posted: Mon Sep 28, 2009 8:41 am
I am writing an exteral which is using SendCardMessage(). I know the ownership of the memory is only passed to rev if you use malloc() etc...
What I want to know is.. If I malloc 100 bytes to a buffer for my message to return and only sprintf about 50 chars into said buffer then SendCardMessage(buffer,result) is the whole 100 bytes owned by revolution or only the 50 bytes that were actually used?
I ask this because in windows task manager, The memory usage of the rev ide keeps climbing when I use my external.
What I want to know is.. If I malloc 100 bytes to a buffer for my message to return and only sprintf about 50 chars into said buffer then SendCardMessage(buffer,result) is the whole 100 bytes owned by revolution or only the 50 bytes that were actually used?
I ask this because in windows task manager, The memory usage of the rev ide keeps climbing when I use my external.