Thanks Blake, It works really fine. And my programm isn't look big if your looking in the Task-Manager for the memory-usage. triathlet394
bschorre
Posts
-
Very slow function free() -
Very slow function free()Hi, I've read that the GlobalAlloc-Function-Group come from the Win 3.x-Framework. What's the difference between GlobalAlloc and VirtualAlloc? triathlet394
-
Very slow function free()How can I resolve this problem a little bit more comfortable? triathlet394
-
Very slow function free()Hi all, I'm trying a little bit with the malloc() and free() functions. Unfourtunatly, if alloc 256MB the malloc-function needs 10 Seconds to get the memory. That's not nice but what I'm really suprised at is that free-function needs 278 Seconds to drop the memory. ---------------------------------------------------- bufferSize = 256*1024*1024; if((buffer = (char *) malloc(bufferSize)) == NULL) { cout << "Could not allocate enough memory." << endl; exit -1; } p_BufferRoot = buffer; // ... put stuff in memory ... free(buffer); ---------------------------------------------------- Can anyone explain what happens to me free-function?! THX triathlet394