Advertisement

1 - 10 of 11 containing alltags:("entercriticalsection") (0 seconds)
My application creates two threads. One to acquire data and one to display it. I used a synchronization method from "Multithreaded Programming With Win32" sync objects are initialized like this.       ...
Zones: Windows MFCDate Answered: 03/22/2000 Grade: B Views: 0
Hello, what is the right way and why ? "   try     EnterCriticalSection(CriticalSec); ....   finally     LeaveCriticalSection(CriticalSec);   end; " OR "   EnterCriticalSection(...
Zones: Delphi ProgrammingDate Answered: 03/21/2002 Grade: A Views: 0
Hi,   Let us consider the following code below     // This is a global variable   CRITICAL_SECTION g_CriticalSection;   // There will be only one instance of the entire       // appl...
Zones: C++Date Answered: 04/02/2002 Grade: A Views: 38
I am working on an framework for a high performance enterprise scale application server.  Thanks to the last collaboration, the performance problems surrounding memory management have been resolved...
Zones: Delphi ProgrammingDate Answered: 09/12/2003 Grade: A Views: 13
I am looking for the best (i.e. most efficient) method to synchronize threads for the following situation: Suppose I have a function that accepts a pointer to a file.  With this pointer, the fun...
Zones: CDate Answered: 10/20/2004 Grade: A Views: 0
Hello, I am programming a VB 6.0 application and I am trying to understand the threading options that are available. Under the project properties I have a number of options: (1) Apartment ...
Zones: Programming, 3D Graphics Software, ...Date Answered: 04/24/2005 Grade: B Views: 0
I have a global CRITICAL_SECTION object, but when I try to use EnterCriticalSection() with it, I get an access violation. CRITICAL_SECTION g_criticalSection; ... //Then later on in a global ...
Zones: C++Date Answered: 11/02/2003 Grade: A Views: 16
I have an app that I am trying to add multithreading to.  The threads are initialized, then i want them to go and call a function which writes to a database, then they should terminate.  This is wh...
Zones: C++Date Answered: 02/05/2003 Grade: A Views: 0
This is when and when not do i use it question... Var   Global1: TStringList;   Global2: TList;   ECS2,ECS: TrtlCriticalSection;   //start my program Procedure OnCreate... Begin  Initi...
Zones: Delphi ProgrammingDate Answered: 02/16/2005 Grade: A Views: 0
I'm having problems getting the Win32 CriticalSection calls to work. In the following code, the call to EnterCriticalSection seems to be ignored, and each call to SearchFunc gets the value 'z', rat...
Zones: CDate Answered: 10/10/2006 Grade: A Views: 70