internal static void XlAutoFree(IntPtr pXloper) { // CONSIDER: This might be improved.... // Another option would be to have the Com memory allocator run in unmanaged code. // Right now I think this is OK, and easiest from where I'm coming. // This function can only be called after a return from a user function. // I just free all the possibly big memory allocations. XlObjectArrayMarshaler.FreeMemory(); }