Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Sorry the question is maybe stupid but I am newbie ... :)

In VB 6 I used to utilize 1 connection (i am working with Access) for each form, open at the loading and closed at the unloading of the form. Now in .net I see that "connection_name .close()" does not close immediately the object ... and this causes to me a lot of problems: If I came back on the same form after some seconds I find that the previous connection is still active (I think) and I see old data on the form. I have read the existence of a "dispose" method but I don't know how to implement it ...

Is there some better way to keep my forms "clear"???

Thank you

Elisa

  • *Gurus*
Posted
Calling the Close method of a connection object will close the connection, but it will not destroy the connection object, nor will it clear values that are stored in other objects that may be associated to data retrieval. Make sure you're not caching values elsewhere.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...