hi,anybody can help?

I developing COM DLL, & before I make the .dll files, the program runs just fine.But after I compile & make .dll files,
there is an error when I tried to click on "Save button" for one of the add record function.
error pops up!"Invalid procedure call or argument", followed by "Automation error". After I click OK,the whole form is no more respond to mouse click except the x button on right top side(to close the form)

under the "cmdSave_Click", I call functions from the class.

thanx