Not creating BGL from XML

After 5 weeks I am almost there. But I seem to be having a system problem. I have managed to sucessfully generates an XML file in my scene directory that accurately places my object at the correct coordinates. But when I have the object showing up in the editor, there is no longer a cursor so I cannot move it. Also if I try to build I get a CTD (crash to desktop) so no BGL is ever created. Any ideas would be welcome.