Where are you calling openfiledialog from? could be a threading issue maybe. LoadModel.FileName is this a string? or a class that returns a string? Maybe check that string is not empty before passing to ent_create().
A8.3x Commercial, AcknexWrapper and VS 2010 Express ○pararealist now.