The most likely cause of that error is calling a function in a DLL with the incorrect number of parameters. Too many or too few parameters can mess things up quite well (trust me on this one - been there, done that). Usually, no damage is done. Check the function in your DLL and reproduce the parameter structure EXACTLY.
Rob
