Click here to Skip to main content
15,891,529 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Wide table visualization Pin
Luc Pattyn20-Feb-12 12:18
sitebuilderLuc Pattyn20-Feb-12 12:18 
AnswerWORKAROUND/SOLUTION !!! Pin
TPIRick7-Mar-12 10:09
TPIRick7-Mar-12 10:09 
Question.Net 4.0 Win Forms Caching? Pin
julian@giant16-Feb-12 3:34
julian@giant16-Feb-12 3:34 
AnswerRe: .Net 4.0 Win Forms Caching? Pin
Pete O'Hanlon16-Feb-12 3:41
mvePete O'Hanlon16-Feb-12 3:41 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
julian@giant16-Feb-12 4:59
julian@giant16-Feb-12 4:59 
AnswerRe: .Net 4.0 Win Forms Caching? Pin
Luc Pattyn16-Feb-12 4:06
sitebuilderLuc Pattyn16-Feb-12 4:06 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
julian@giant16-Feb-12 4:54
julian@giant16-Feb-12 4:54 
AnswerRe: .Net 4.0 Win Forms Caching? Pin
Luc Pattyn16-Feb-12 5:11
sitebuilderLuc Pattyn16-Feb-12 5:11 
julian@giant wrote:
he form doesn't actually appear on the screen until 30 seconds later.

That is unacceptable, and I've never seen such thing.


julian@giant wrote:
The database connection (as stated, an Alpha database running on a VMS server) is never dropped

That sounds wrong. You should not keep connections open, .NET has connection pooling, meaning you open-query-close (actually use the using construct for getting a connection), and .NET will silently cache and reuse connections for you. With only one connection, you are preventing efficient multi-threading to the DB.


julian@giant wrote:
I'm also using threads to help populate the form

I know of many ways to get that wrong. Too many thread switches would be one; deadlocks another. Are you using Control.InvokeRequired/Control.Invoke? Are you overusing them for each little piece of displayable information? And please don't tell me you have touched Control.CheckForIllegalCrossThreadCalls!


Suggestion: use Task Manager and watch your client's CPU load; if it is near zero for several seconds, something is very wrong (deadlock suspected); if it is near 1/N (with N cores), a busy loop may be the culprit. Also have a look at your server's CPU load (assuming you can get your client to be the only client). Can you correlate both load curves? Any dead periods overall?

PS: no, .NET isn't caching anything in general, when it does, it is documented. DB connections is an example. Windows does cache files. And .NET is not throwing away things as long as it doesn't need the memory for something else. However a new Form would be independent of a previous instance of the same Form (except for its code to be loaded and JIT-ted just once).

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: .Net 4.0 Win Forms Caching? Pin
julian@giant16-Feb-12 5:19
julian@giant16-Feb-12 5:19 
AnswerRe: .Net 4.0 Win Forms Caching? Pin
Luc Pattyn16-Feb-12 5:33
sitebuilderLuc Pattyn16-Feb-12 5:33 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
julian@giant16-Feb-12 6:13
julian@giant16-Feb-12 6:13 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
julian@giant22-Feb-12 5:04
julian@giant22-Feb-12 5:04 
AnswerRe: .Net 4.0 Win Forms Caching? Pin
Luc Pattyn22-Feb-12 5:10
sitebuilderLuc Pattyn22-Feb-12 5:10 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
julian@giant22-Feb-12 5:32
julian@giant22-Feb-12 5:32 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
Dave Kreskowiak16-Feb-12 6:04
mveDave Kreskowiak16-Feb-12 6:04 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
julian@giant16-Feb-12 6:15
julian@giant16-Feb-12 6:15 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
Luc Pattyn16-Feb-12 6:36
sitebuilderLuc Pattyn16-Feb-12 6:36 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
julian@giant16-Feb-12 22:17
julian@giant16-Feb-12 22:17 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
AspDotNetDev18-Feb-12 22:11
protectorAspDotNetDev18-Feb-12 22:11 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
Eddy Vluggen19-Feb-12 5:38
professionalEddy Vluggen19-Feb-12 5:38 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
julian@giant20-Feb-12 6:19
julian@giant20-Feb-12 6:19 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
Eddy Vluggen20-Feb-12 6:28
professionalEddy Vluggen20-Feb-12 6:28 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
Pete O'Hanlon16-Feb-12 5:14
mvePete O'Hanlon16-Feb-12 5:14 
GeneralRe: .Net 4.0 Win Forms Caching? Pin
julian@giant16-Feb-12 5:20
julian@giant16-Feb-12 5:20 
AnswerRe: .Net 4.0 Win Forms Caching? Pin
killabyte16-Feb-12 16:22
killabyte16-Feb-12 16:22 

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.