IF TYPE('mvMasterupd')<>"N" messagebox('Corrupted') endifIf the contents of the .MEM file when restored during the Init() are as you list them (ie the variable is present and PUBLIC) and the above messagebox gets displayed then the variable has somewhere been released (or had it's type changed ). Set a break on the variable in the debugger and see where it goes.