The first approach (switching to python from C++) will almost certainly not work because state would still be inside the C++ program. The second approach of explicit closes should work. =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: WEY-236998 Department: Support netCDF Priority: Normal Status: Closed