Hi,

   When a derived datatype is created (let say, using Vector), at what point does it buffer memory? I mean, after committing a variable, how does it store the buffer the memory reserved by that variable?

   As in Pack/Unpack, a buffer of required size should be allocated, and after unpacking data, buffer is deallocated. How does the same thing work in Vector? When is the memory freed? How does MPI_Type_free work? (MPI_Type_free marks the variable for deallocation).
  
   Thanks.

--
Manoj