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. thread closing connection

thread closing connection

Scheduled Pinned Locked Moved C#
databaseoraclehelptutorialquestion
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.
  • M Offline
    M Offline
    michael cohen
    wrote on last edited by
    #1

    Hey im having a problem with threads and Connections. When the user loging to my program im trying to update the status bar. just a small loop that will run for 7 sec (avg), but when im sending the loging info to the database with a thread, the thread is closing my connection and fail. *.when im not using threads all working good. *.im using oracle 8 database. *.is there someting i need to do with the connection string ? btw i know how to work with threads it's just dont working with a connections

    L 1 Reply Last reply
    0
    • M michael cohen

      Hey im having a problem with threads and Connections. When the user loging to my program im trying to update the status bar. just a small loop that will run for 7 sec (avg), but when im sending the loging info to the database with a thread, the thread is closing my connection and fail. *.when im not using threads all working good. *.im using oracle 8 database. *.is there someting i need to do with the connection string ? btw i know how to work with threads it's just dont working with a connections

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      michael@cohen wrote:

      i know how to work with threads

      Are you sure? Try it without the status bar update, and if that runs fine, start using Control.InvokeRequired and Control.Invoke (plenty of examples around). :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


      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