Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!hela!kam From: kam@iti.org (Keith A. McNabb) Newsgroups: comp.windows.ms Subject: Does free() Work On Locked Pointers? Keywords: memory management free Message-ID: <1991Jun3.195715.24598@iti.org> Date: 3 Jun 91 19:57:15 GMT Distribution: na Organization: Industrial Technology Institute Lines: 17 Does anyone know if the the regular C free() function works in Windows 3.0 *IF* you've previously allocated memory with LocalAlloc() and then obtained the pointer with LocalLock()? I'm modifying some existing C code, and I don't want to have to keep up with handles; it's just a linked list, so the memory blocks are tiny. I'm hoping that I can free memory for freed list elements with the regular free function, passing it the pointer . LocalFree() requires a handle. uSoft SDK documentation says only: "You can use ... malloc, calloc, realloc, and free, but [...] you may get unexpected results." ?????????? Keith McNabb kam@iti.org