Hi. I'm writing a program that calls a procedure that is in a DLL. When the procedure fails, I have error handling to exit the program. The problem is that when the program exits, the entire VB design environment exits also. This only happens to me when I get an error using a DLL. Does anyone know how to prevent the VB design environment from exiting also? Thanks!