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. General Programming
  3. C#
  4. Debug code won't die gracefully.

Debug code won't die gracefully.

Scheduled Pinned Locked Moved C#
debuggingdatabasesysadminjsonquestion
2 Posts 2 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.
  • E Offline
    E Offline
    Edwin Smith
    wrote on last edited by
    #1

    I have a database app which runs OK so far except for when I close the form by clicking the X the myprogram.exe process is left still running. Subsequent debug runs fail to start because the myprogram.exe file is still open and can't be updated by the debugger. Even if I quit VS2005 completely the myprogram.exe process is still running and has to be killed manually in Task Manager. This program utilizes a Pervasive v.9 ODBC driver to an existing database on a server. I used the Querry builder and drag/drop to build the form which uses a DataGridView control and several label controls to display the rest of the row that is selected in the DataGridView control. Is there something I should be doing to properly close everything down in re: the ODBC driver? Thanks Edwin

    S 1 Reply Last reply
    0
    • E Edwin Smith

      I have a database app which runs OK so far except for when I close the form by clicking the X the myprogram.exe process is left still running. Subsequent debug runs fail to start because the myprogram.exe file is still open and can't be updated by the debugger. Even if I quit VS2005 completely the myprogram.exe process is still running and has to be killed manually in Task Manager. This program utilizes a Pervasive v.9 ODBC driver to an existing database on a server. I used the Querry builder and drag/drop to build the form which uses a DataGridView control and several label controls to display the rest of the row that is selected in the DataGridView control. Is there something I should be doing to properly close everything down in re: the ODBC driver? Thanks Edwin

      S Offline
      S Offline
      ShermansLagoon
      wrote on last edited by
      #2

      It sounds to me that you have a threading-problem, with a thread running when you close the form. This will result in the form disappearing, but another thread keeping the process alive. Try the Closing event for the Form, and make sure you shut down all threads (might be some database-shutdown command or similar to shutdown/disconnect teh database correctly).

      Internet - the worlds biggest dictionary

      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