If your application is compiled completely to managed code you could use a "__gc new char[size]".
This should give you a garbage collected piece of memory. Certainly this works only from within managed code. HTH Axel You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.