Hi,
Is there any way to determine at run-time if block of memory allocated on stack or on heap? For example:
UPDATE: As I understand there is no generic solution for this one, so I need solution for Windows platform. I know that there is _CrtIsValidHeap Pointer (debug version only). Is there other ways how to do it?
Thank you!
Is there any way to determine at run-time if block of memory allocated on stack or on heap? For example:
Code:
BYTE* pData = new BYTE[100]; BYTE data[100]; BYTE* pData1 = &data[0]; //Hot to determine that pData is on heap, and pData1 is //on stack?
Thank you!
Comment