Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
118619 Points
18779 Posts
Feb 14, 2012 12:35 AM|LINK
Hello javacookies:)
Try to use "using……" block instead and immediately release the memory taken by the OleDbConnection:
using(OleDbConnection con = new OleDbConnection("……")) { …………………… con.Close(); }
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Error when two clients access database
Feb 14, 2012 12:35 AM|LINK
Hello javacookies:)
Try to use "using……" block instead and immediately release the memory taken by the OleDbConnection:
using(OleDbConnection con = new OleDbConnection("……")) { …………………… con.Close(); }