Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error handling strategies

Status
Not open for further replies.

JoeAtWork

Programmer
Jul 31, 2005
2,285
CA
I was wondering if any of you have advice on the best methods to handle errors when using the COMApi. Mostly I am wondering what needs to be closed, cleaned up, etc.

My application is being used to accept orders from a web page, thus it is running 24/7. Therefore, at application startup it opens an Accpac session, and doesn't close it until the application closes (which theoretically would be never).

My strategy so far is to do the following in the error handler:
1. Log the error(s)
2. Call the Close method on any Views.

That's it. Should I be doing anything else? I am wondering if I should close and reopen the Accpac session, in case that might clear things up? Are there any other methods I should call before leaving the procedure?

I want to avoid any situation where my application ends up locking records, etc., and therefore messing up the regular Accpac users.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top