Click here to Skip to main content
16,016,204 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: "Program Not Responding" Pin
nathan2240513-Feb-08 10:45
nathan2240513-Feb-08 10:45 
GeneralRe: "Program Not Responding" Pin
led mike13-Feb-08 11:07
led mike13-Feb-08 11:07 
GeneralRe: "Program Not Responding" Pin
nathan2240513-Feb-08 11:52
nathan2240513-Feb-08 11:52 
GeneralRe: "Program Not Responding" Pin
led mike13-Feb-08 11:59
led mike13-Feb-08 11:59 
GeneralRe: "Program Not Responding" Pin
nathan2240513-Feb-08 12:38
nathan2240513-Feb-08 12:38 
GeneralRe: "Program Not Responding" Pin
led mike13-Feb-08 13:15
led mike13-Feb-08 13:15 
GeneralRe: "Program Not Responding" Pin
Dave Kreskowiak15-Feb-08 6:18
mveDave Kreskowiak15-Feb-08 6:18 
GeneralRe: "Program Not Responding" Pin
nathan2240515-Feb-08 7:22
nathan2240515-Feb-08 7:22 
Let me clarify this a little bit. We are using SQL 2005 Express. No licenses needed here. Actually what I'm doing in our application is we have a wrapper class that encapsulates all the data access functionality throughout the program. (Execute, ExecuteScalar, ExecuteNonQuery, ...) Additionally we have functions that return datasets and update datasets) Our program can run on a local database or through web services to our hosted databases. I have a global variable (g_Data) that is an instance of our wrapper class. When this class is initialized a connection to the database is made and when the class is disposed the connection is closed. What I have found when using the SQL Express is that when opening connections, running a command, then closing right away a bottleneck occurs when several calls are made back to back to the database because SQL Express does not handle multiple connections at a time. It hangs and waits for a connection to close before continuing. I forgot to mention our program is multithreaded. It has a few background threads that run and perform various maintenance routines. These maintenance routines require data access so if one of the threads has a hold of a connection then the user will experience a wait and often times will get a "program not responding" message in the title bar. When I changed the wrapper class so that only one connection was made upon initialization and all sub sequential commands run through that connection. The problem went away.
GeneralRe: "Program Not Responding" Pin
Dave Kreskowiak15-Feb-08 9:26
mveDave Kreskowiak15-Feb-08 9:26 
GeneralRe: "Program Not Responding" Pin
nathan2240515-Feb-08 9:53
nathan2240515-Feb-08 9:53 
GeneralGraphics using C# Pin
RanaSohail12-Feb-08 14:00
RanaSohail12-Feb-08 14:00 
GeneralRe: Graphics using C# Pin
Christian Graus12-Feb-08 14:15
protectorChristian Graus12-Feb-08 14:15 
GeneralRe: Graphics using C# Pin
Patrick Etc.17-Feb-08 5:44
Patrick Etc.17-Feb-08 5:44 
Generalimport excel data from excel sheet to ms access database table Pin
Naresh12345678912-Feb-08 0:44
Naresh12345678912-Feb-08 0:44 
GeneralRe: import excel data from excel sheet to ms access database table Pin
Ashfield12-Feb-08 2:42
Ashfield12-Feb-08 2:42 
GeneralRe: import excel data from excel sheet to ms access database table Pin
Naresh12345678914-Feb-08 23:36
Naresh12345678914-Feb-08 23:36 
GeneralRe: import excel data from excel sheet to ms access database table Pin
Ashfield15-Feb-08 9:06
Ashfield15-Feb-08 9:06 
GeneralRe: import excel data from excel sheet to ms access database table Pin
Naresh1234567896-Mar-08 1:30
Naresh1234567896-Mar-08 1:30 
GeneralRe: import excel data from excel sheet to ms access database table Pin
Ashfield6-Mar-08 9:33
Ashfield6-Mar-08 9:33 
GeneralSuggestions on Command Invoking Controls Pin
Brady Kelly11-Feb-08 22:51
Brady Kelly11-Feb-08 22:51 
QuestionScheduler or Timer - Windows Forms Project Pin
Blumen11-Feb-08 20:16
Blumen11-Feb-08 20:16 
GeneralRe: Scheduler or Timer - Windows Forms Project Pin
Ashfield11-Feb-08 22:50
Ashfield11-Feb-08 22:50 
GeneralRe: Scheduler or Timer - Windows Forms Project Pin
Blumen11-Feb-08 23:43
Blumen11-Feb-08 23:43 
GeneralRe: Scheduler or Timer - Windows Forms Project Pin
Ashfield12-Feb-08 2:37
Ashfield12-Feb-08 2:37 
GeneralRe: Scheduler or Timer - Windows Forms Project Pin
Blumen12-Feb-08 17:13
Blumen12-Feb-08 17:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.