Click here to Skip to main content
15,889,266 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get painted image from picturebox Pin
Dave Kreskowiak12-Nov-09 4:23
mveDave Kreskowiak12-Nov-09 4:23 
GeneralRe: How to get painted image from picturebox Pin
Vishwanath Patil12-Nov-09 18:04
Vishwanath Patil12-Nov-09 18:04 
GeneralRe: How to get painted image from picturebox Pin
Dave Kreskowiak13-Nov-09 15:15
mveDave Kreskowiak13-Nov-09 15:15 
QuestionThreaded Proxy? Pin
joana.simoes12-Nov-09 0:40
joana.simoes12-Nov-09 0:40 
AnswerRe: Threaded Proxy? Pin
Covean12-Nov-09 2:08
Covean12-Nov-09 2:08 
GeneralRe: Threaded Proxy? Pin
Luc Pattyn12-Nov-09 2:23
sitebuilderLuc Pattyn12-Nov-09 2:23 
GeneralRe: Threaded Proxy? Pin
Covean12-Nov-09 2:47
Covean12-Nov-09 2:47 
AnswerRe: Threaded Proxy? Pin
Luc Pattyn12-Nov-09 2:22
sitebuilderLuc Pattyn12-Nov-09 2:22 
Hi,

I think your problem is in using the ThreadPool.

The TP holds a large number of threads, and has a queue into which you can insert jobs. Now those jobs get executed by some number of TP threads; however that number does not equal the number of available jobs: it starts of at a few only, and will grow and shrink using a complex algorithm. In one of my experiments I noted it only grows at a rate of 2 per second. Therefore your jobs will queue up and wait on others to finish first, which is not what a normal server does (it either accepts the job or refuses it, but never postpones it).

So IMO you should use either real Threads or (more unlikely to succeed) use asynchronous operations. BackgroundWorkers would not help as they run on the TP as well.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: Threaded Proxy? Pin
joana.simoes13-Nov-09 5:22
joana.simoes13-Nov-09 5:22 
QuestionPDF conversion Pin
Santhosh Sebastian Mattathil11-Nov-09 23:34
Santhosh Sebastian Mattathil11-Nov-09 23:34 
QuestionShowing non 96dpi jpegs in PictureBox Pin
Chesnokov Yuriy11-Nov-09 23:00
professionalChesnokov Yuriy11-Nov-09 23:00 
AnswerRe: Showing non 96dpi jpegs in PictureBox Pin
Eduard Keilholz11-Nov-09 23:03
Eduard Keilholz11-Nov-09 23:03 
QuestionLoading app.config from a remote location fails to load section handler. Pin
Larantz11-Nov-09 22:57
Larantz11-Nov-09 22:57 
AnswerRe: Loading app.config from a remote location fails to load section handler. Pin
Shameel11-Nov-09 23:38
professionalShameel11-Nov-09 23:38 
GeneralRe: Loading app.config from a remote location fails to load section handler. Pin
Larantz11-Nov-09 23:40
Larantz11-Nov-09 23:40 
GeneralRe: Loading app.config from a remote location fails to load section handler. Pin
Larantz11-Nov-09 23:50
Larantz11-Nov-09 23:50 
GeneralRe: Loading app.config from a remote location fails to load section handler. Pin
Shameel12-Nov-09 0:00
professionalShameel12-Nov-09 0:00 
GeneralRe: Loading app.config from a remote location fails to load section handler. Pin
Larantz12-Nov-09 0:11
Larantz12-Nov-09 0:11 
Questionadd row to data grid view problem Pin
Rinad11-Nov-09 22:51
Rinad11-Nov-09 22:51 
AnswerMessage Closed Pin
11-Nov-09 22:55
stancrm11-Nov-09 22:55 
GeneralRe: add row to data grid view problem Pin
Rinad11-Nov-09 23:31
Rinad11-Nov-09 23:31 
GeneralRe: add row to data grid view problem Pin
Gerry Schmitz12-Nov-09 1:39
mveGerry Schmitz12-Nov-09 1:39 
GeneralRe: add row to data grid view problem Pin
Luc Pattyn12-Nov-09 2:34
sitebuilderLuc Pattyn12-Nov-09 2:34 
QuestionInheritence Pin
sris 42611-Nov-09 22:27
sris 42611-Nov-09 22:27 
AnswerRe: Inheritence Pin
The Man from U.N.C.L.E.11-Nov-09 22:38
The Man from U.N.C.L.E.11-Nov-09 22:38 

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.