So,

This looks the 1st case I posted.. you may have as Open <table> command being executed too early in the startup process. before the oConnection object handles the connection to the database.

have you added any user interface view or dialog, or anything before oMain obect ?

If you post your project.src other can try to help as well.