Click here to Skip to main content
15,908,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error during CryptAquireContext() - using wincrypt.h Pin
Le centriste22-Aug-02 9:07
Le centriste22-Aug-02 9:07 
GeneralCDialogBar Pin
Gary Kirkham21-Aug-02 9:29
Gary Kirkham21-Aug-02 9:29 
GeneralRe: CDialogBar Pin
Ernest Laurentin21-Aug-02 9:36
Ernest Laurentin21-Aug-02 9:36 
Generalmenu newbie, please help ... Pin
includeh1021-Aug-02 8:46
includeh1021-Aug-02 8:46 
Generallooks dangerous, used no problem, need suggestion... Pin
includeh1021-Aug-02 8:42
includeh1021-Aug-02 8:42 
GeneralRe: looks dangerous, used no problem, need suggestion... Pin
Mustafa Demirhan21-Aug-02 9:22
Mustafa Demirhan21-Aug-02 9:22 
GeneralRe: looks dangerous, used no problem, need suggestion... Pin
Ernest Laurentin21-Aug-02 9:32
Ernest Laurentin21-Aug-02 9:32 
GeneralRe: looks dangerous, used no problem, need suggestion... Pin
Daniel Lohmann23-Aug-02 11:28
Daniel Lohmann23-Aug-02 11:28 
Yes, this looks rather dangerous.

Have you ever tested it on a 2 CPU machine? The probability it breaks there is much higher!

I would strongly recommend to use CriticalSections. CriticalSections cause a penality only if really two threads try to access it at the same time, which is not that probably because your threads access the buffer only every 50 ms.

Because your threds would lock the buffer only for a very small period, I would also recommend to use InitializeCriticalSectionAndSpinCount to set a small spin count for increased performance on SMP machines

--

Daniel Lohmann

http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there Big Grin | :-D )
GeneralWin CE && ADO Pin
Like2Byte21-Aug-02 8:14
Like2Byte21-Aug-02 8:14 
GeneralSetModifiedFlag(); Pin
Garry White21-Aug-02 7:42
sussGarry White21-Aug-02 7:42 
GeneralRe: SetModifiedFlag(); Pin
Chris Richardson21-Aug-02 7:46
Chris Richardson21-Aug-02 7:46 
GeneralRe: SetModifiedFlag(); Pin
G. White21-Aug-02 8:25
G. White21-Aug-02 8:25 
GeneralMain window pops out Pin
Shay Harel21-Aug-02 7:18
Shay Harel21-Aug-02 7:18 
GeneralAuto Fill in IE or Netscape Pin
Ranjan Banerji21-Aug-02 6:49
Ranjan Banerji21-Aug-02 6:49 
GeneralRe: Auto Fill in IE or Netscape Pin
Domenic Denicola21-Aug-02 7:04
Domenic Denicola21-Aug-02 7:04 
GeneralRe: Auto Fill in IE or Netscape Pin
Stephane Rodriguez.21-Aug-02 7:24
Stephane Rodriguez.21-Aug-02 7:24 
GeneralRe: Auto Fill in IE or Netscape Pin
Ranjan Banerji21-Aug-02 10:22
Ranjan Banerji21-Aug-02 10:22 
GeneralRe: Auto Fill in IE or Netscape Pin
Stephane Rodriguez.21-Aug-02 22:22
Stephane Rodriguez.21-Aug-02 22:22 
GeneralRe: Auto Fill in IE or Netscape Pin
Anonymous22-Aug-02 12:22
Anonymous22-Aug-02 12:22 
GeneralRe: Auto Fill in IE or Netscape Pin
Anonymous22-Aug-02 12:33
Anonymous22-Aug-02 12:33 
GeneralCString Problerm Pin
Zayax21-Aug-02 6:07
Zayax21-Aug-02 6:07 
GeneralRe: CString Problerm Pin
lucy21-Aug-02 6:09
lucy21-Aug-02 6:09 
GeneralRe: CString Problerm Pin
Zayax21-Aug-02 6:16
Zayax21-Aug-02 6:16 
GeneralRe: CString Problerm Pin
-Dy21-Aug-02 6:23
-Dy21-Aug-02 6:23 
GeneralRe: CString Problerm Pin
Zayax21-Aug-02 6:46
Zayax21-Aug-02 6:46 

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.