Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Why doesn't the ldb go away when the connection is closed?

Why doesn't the ldb go away when the connection is closed?

Scheduled Pinned Locked Moved Database
helpquestionannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    John Whitmire
    wrote on last edited by
    #1

    I know this is dealing in ancient technology, but MS Access hasn't yet breathed its last. I copy an mdb template to a temp mdb file, write stuff to the copy using an OleDbConnection, and then close the connection. Next, I want to rename the file, but I can't. The ldb file is still there and I get the error that the file is being accessed by another process. I can copy the file to the new name, but I can't rename or delete the file. Really aggravating is that this doesn't happen when the finished mdb file is under some size threshold. :confused: Then, the ldb goes away immediately when the connection is closed. I've tried connection.Dispose(); connection=null; OleDbConnection.ReleaseObjectPool(); GC.Collect(); None of those release the process lock on the file. It won't release until my application terminates, which is a bit too late. ;) Is there any help for this?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups