do your.exefrom the command window. Could it be your grid is looking for its recordsource and getting instantiated as soon as it sees it? You may put a breakpoint in your code on one of those lines where hdr1 is mentioned and try to run the exe with that. One more thing - if this is happening as I imagine it is, your header class .prg file is still not set procedure to - you may use newobject() instead of addobject() and see if that fixes it.