OracleConnect Scope


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: OracleConnect Scope

  1. #1
    Join Date
    Jan 2007
    Posts
    92

    OracleConnect Scope

    I have a class that creates an oracle connection to a database that is compiled code and works fine. i pass an oracleconnection object back to the calling program and it uses it perfectly, until the code fully runs and it is time fo ruser imput and a form shows.

    the user does what ever he does then a query is launched that uses the conneciton object again and all of a sudden it is closed. I am not sure i under stand how that happens. when i put a watch on it you can see that the string stays in place until the user clicks on the combobox. right when the program enters the code the connectionstring is gone?

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    Where is it declared in your code? It sounds like it's going out of scope.
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

Similar Threads

  1. QUERY: 'On Error Resume Next' scope rules
    By dhruba.bandopad in forum ASP.NET
    Replies: 1
    Last Post: 06-12-2006, 09:19 AM
  2. SQL Insert Trigger; variable scope issue
    By rkbnair in forum Database
    Replies: 1
    Last Post: 05-31-2006, 04:52 AM
  3. Scope of an Object
    By sivsu in forum C++
    Replies: 9
    Last Post: 03-27-2005, 02:14 PM
  4. Set Scope of Class Members Dynamically
    By Ian Diaz in forum .NET
    Replies: 1
    Last Post: 08-31-2002, 12:50 PM
  5. Scope issue in a UDF/SP
    By Stephen Russell in forum Database
    Replies: 0
    Last Post: 04-24-2002, 08:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center