Click here to Skip to main content
15,893,663 members
Home / Discussions / C#
   

C#

 
Question3D rendering control on C# form Pin
robot_builder30-Oct-09 6:20
robot_builder30-Oct-09 6:20 
AnswerRe: 3D rendering control on C# form Pin
ARon_30-Oct-09 6:43
ARon_30-Oct-09 6:43 
QuestionHow to deploy a c# application connected to sql server express database ? Pin
Dr.DigiTaL30-Oct-09 5:58
Dr.DigiTaL30-Oct-09 5:58 
AnswerRe: How to deploy a c# application connected to sql server express database ? Pin
Not Active30-Oct-09 6:02
mentorNot Active30-Oct-09 6:02 
QuestionVirtual methods and reduntant XmlDoc Pin
dojohansen30-Oct-09 4:14
dojohansen30-Oct-09 4:14 
AnswerRe: Virtual methods and reduntant XmlDoc Pin
Gideon Engelberth30-Oct-09 5:27
Gideon Engelberth30-Oct-09 5:27 
GeneralRe: Virtual methods and reduntant XmlDoc Pin
dojohansen31-Oct-09 2:31
dojohansen31-Oct-09 2:31 
QuestionC# application slow to response after period of inactivity Pin
RobScripta30-Oct-09 3:48
professionalRobScripta30-Oct-09 3:48 
I have a windows forms application made with C# Express edition 2008, connected with a MySQL database on internet.

The application in this combination is usualy lightning fast, but after a certain period of inactivity (say 30 minutes) the application takes forever (say 60 seconds) for it's first response. After the first response the application is snappy again.
As most of the times the application is used in response to a customer request (either by phone or in person) it's very annoying looking at each other for 60 before continuation.


The probable causes are:
- usualy the connections to the database are reused, which means they don't have to be created every time a database connection is needed. The theory is that after a certain amount of time the connection is destroyed anyway.

Question:
Is this a plausible explanation, and if so how can I keep the connection with the database (I open the connection for every request, and close it immediately after completion so I don't intend to keep the connection open, but just keep the connection).

Somebody else told me it could be Windows swapping the application to virtual memory (== harddisk) after inactivity.

Question:
Is this a probable explanation, and if so how can I test this theorie, and again what can I do to prevent this behaviour ?


Thanks for any hints and tips

Rob
AnswerRe: C# application slow to response after period of inactivity Pin
Saksida Bojan30-Oct-09 4:45
Saksida Bojan30-Oct-09 4:45 
GeneralRe: C# application slow to response after period of inactivity Pin
RobScripta30-Oct-09 5:20
professionalRobScripta30-Oct-09 5:20 
GeneralRe: C# application slow to response after period of inactivity Pin
Saksida Bojan30-Oct-09 5:40
Saksida Bojan30-Oct-09 5:40 
AnswerRe: C# application slow to response after period of inactivity Pin
Paulo Zemek30-Oct-09 7:21
mvaPaulo Zemek30-Oct-09 7:21 
GeneralRe: C# application slow to response after period of inactivity Pin
RobScripta30-Oct-09 21:40
professionalRobScripta30-Oct-09 21:40 
GeneralRe: C# application slow to response after period of inactivity Pin
dojohansen31-Oct-09 22:40
dojohansen31-Oct-09 22:40 
GeneralRe: C# application slow to response after period of inactivity Pin
Paulo Zemek1-Nov-09 2:57
mvaPaulo Zemek1-Nov-09 2:57 
QuestionHow to show "Press any key to Continue" Pin
yakupc30-Oct-09 3:41
yakupc30-Oct-09 3:41 
AnswerRe: How to show "Press any key to Continue" Pin
Richard MacCutchan30-Oct-09 3:55
mveRichard MacCutchan30-Oct-09 3:55 
GeneralRe: How to show "Press any key to Continue" Pin
vtchris-peterson30-Oct-09 4:14
vtchris-peterson30-Oct-09 4:14 
GeneralRe: How to show "Press any key to Continue" Pin
yakupc30-Oct-09 4:18
yakupc30-Oct-09 4:18 
AnswerRe: How to show "Press any key to Continue" PinPopular
Luc Pattyn30-Oct-09 3:56
sitebuilderLuc Pattyn30-Oct-09 3:56 
GeneralRe: How to show "Press any key to Continue" Pin
dojohansen31-Oct-09 22:42
dojohansen31-Oct-09 22:42 
AnswerRe: How to show "Press any key to Continue" Pin
vtchris-peterson30-Oct-09 4:31
vtchris-peterson30-Oct-09 4:31 
AnswerRe: How to show "Press any key to Continue" Pin
PIEBALDconsult30-Oct-09 4:40
mvePIEBALDconsult30-Oct-09 4:40 
GeneralRe: How to show "Press any key to Continue" Pin
Luc Pattyn30-Oct-09 6:28
sitebuilderLuc Pattyn30-Oct-09 6:28 
GeneralRe: How to show "Press any key to Continue" Pin
PIEBALDconsult30-Oct-09 7:18
mvePIEBALDconsult30-Oct-09 7:18 

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.