Hi Andy Thanks a lot for your quick reply. Definitly I want to test memory allocation and deallocation as a whole. As you have stated, the main problem of my simple test is that it is too simple. I think I should construct a more complex and resonalbe test case.