Using GlobalAlloc to create space for large vectors whose size needs to be defined and often changed during runtime. I thought I was being careful by using GlobalFree to free the space when no longer needed and before new vector sizes are allocated. When I do this, however, I get random (but guaranteed to happen eventually after a few changes in allocation) crashes often w/o error messages in Visual C++. The strange thing is that if I never free the space no crashes occur and I don't seam to be losing memory either. Any ideas on what's going on?