User Profile

Collapse

Profile Sidebar

Collapse
coltrane
coltrane
Last Activity: May 26 '10, 08:51 PM
Joined: May 22 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • waitHandle.WaitOne() not waiting for command.BeginExcecuteReader()

    I am just learning to use asynchronous ADO commands and I would like to wait on the BeginExecuteRea der() IAsyncResult wait handle.
    When I use
    Code:
    WaitHandle waitHandle = asyncresult.AsyncWaitHandle;
    waitHandle.WaitOne();
    the main thread does not wait it just continues executing and eventually terminates killing the reader thread.

    I my code is as follows
    Code:
        static void Main( string[] args ) {
    ...
    See more | Go to post

  • coltrane
    started a topic ConfigurationManager.OpenExeConfiguration

    ConfigurationManager.OpenExeConfiguration

    I am trying to store and retrieve connection string info from an app's config file and I am having trouble retrieving the connection string info.

    I stored the info with the following:

    Configuration config = null;
    config = configurationMa nager.OpenExeCo nfiguration(Con figurationUserL evel.None );
    config.Connecti onStrings.Conne ctionStrings.Ad d(
    new ConnectionStrin gSettings(
    "MyConfiguratio nString",...
    See more | Go to post
No activity results to display
Show More
Working...