Click here to Skip to main content
14,843,944 members
Home / Discussions / .NET (Core and Framework)

.NET (Core and Framework)

AnswerRe: Long operation Pin
Brady Kelly25-Apr-07 19:26
MemberBrady Kelly25-Apr-07 19:26 
GeneralRe: Long operation Pin
Luc Pattyn26-Apr-07 1:28
sitebuilderLuc Pattyn26-Apr-07 1:28 
GeneralRe: Long operation Pin
Brady Kelly26-Apr-07 1:38
MemberBrady Kelly26-Apr-07 1:38 
GeneralRe: Long operation Pin
sarah_malik26-Apr-07 3:09
Membersarah_malik26-Apr-07 3:09 
AnswerRe: Long operation Pin
pbraun27-Apr-07 5:13
Memberpbraun27-Apr-07 5:13 
GeneralRe: Long operation Pin
sarah_malik27-Apr-07 9:11
Membersarah_malik27-Apr-07 9:11 
GeneralRe: Long operation Pin
pbraun27-Apr-07 9:28
Memberpbraun27-Apr-07 9:28 
GeneralRe: Long operation Pin
sarah_malik27-Apr-07 10:28
Membersarah_malik27-Apr-07 10:28 
pbraun wrote:
it seems that it would be better to send one query to the DB that retrieves all of the necessary data from the DB, then do the processing (in your case, calculations).

I'm afraid that it is not possible in my case, my condition is already complex enough at each loop Cry | :(( , also it depends on some data outside the loop ...

pbraun wrote:
the constant queries to the DB is costing you the time

Yes, the queries are costing much of the time!

I would like to ask also does the .NET framework do anything behind the scene when a long operation is in run?
I have encountered a warning when "another" long operation was running:

The CLR has been unable to transition from COM context 0x1a2008 to COM context 0x1a2178 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.

Thanks for your help Phil, I really appreciate it Big Grin | :-D
QuestionAbout multi-threading Pin
Diego F.25-Apr-07 4:51
MemberDiego F.25-Apr-07 4:51 
AnswerRe: About multi-threading Pin
kubben25-Apr-07 5:55
Memberkubben25-Apr-07 5:55 
GeneralRe: About multi-threading Pin
Diego F.26-Apr-07 23:12
MemberDiego F.26-Apr-07 23:12 
GeneralRe: About multi-threading Pin
pbraun27-Apr-07 5:04
Memberpbraun27-Apr-07 5:04 
GeneralRe: About multi-threading Pin
Diego F.30-Apr-07 2:12
MemberDiego F.30-Apr-07 2:12 
QuestionInstall time JIT tutorial Pin
SE_GEEK25-Apr-07 4:39
MemberSE_GEEK25-Apr-07 4:39 
AnswerRe: Install time JIT tutorial Pin
Pete O'Hanlon25-Apr-07 5:14
mvePete O'Hanlon25-Apr-07 5:14 
GeneralRe: Install time JIT tutorial Pin
SE_GEEK27-Apr-07 4:46
MemberSE_GEEK27-Apr-07 4:46 
QuestionTransparency in Txxtbox Pin
sianatia25-Apr-07 2:48
Membersianatia25-Apr-07 2:48 
AnswerRe: Transparency in Txxtbox Pin
Dave Kreskowiak25-Apr-07 4:41
mveDave Kreskowiak25-Apr-07 4:41 
GeneralRe: Transparency in Txxtbox Pin
sianatia27-Apr-07 19:20
Membersianatia27-Apr-07 19:20 
GeneralRe: Transparency in Txxtbox Pin
Dave Kreskowiak28-Apr-07 7:37
mveDave Kreskowiak28-Apr-07 7:37 
AnswerRe: Transparency in Txxtbox Pin
PIEBALDconsult26-Apr-07 12:20
professionalPIEBALDconsult26-Apr-07 12:20 
GeneralRe: Transparency in Txxtbox Pin
sianatia27-Apr-07 19:13
Membersianatia27-Apr-07 19:13 
GeneralPath class in .NET Pin
Jaiprakash M Bankolli24-Apr-07 23:08
MemberJaiprakash M Bankolli24-Apr-07 23:08 
GeneralRe: Path class in .NET Pin
Dave Kreskowiak25-Apr-07 4:38
mveDave Kreskowiak25-Apr-07 4:38 
GeneralRe: Path class in .NET Pin
Jaiprakash M Bankolli25-Apr-07 17:49
MemberJaiprakash M Bankolli25-Apr-07 17:49 

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.