Click here to Skip to main content
15,912,457 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSporder.exe on Win98 Pin
Kuniva10-Apr-04 1:09
Kuniva10-Apr-04 1:09 
GeneralFonts, texts ... Pin
Ni@m10-Apr-04 1:06
Ni@m10-Apr-04 1:06 
GeneralRe: Fonts, texts ... Pin
toxcct10-Apr-04 1:48
toxcct10-Apr-04 1:48 
GeneralRe: Fonts, texts ... Pin
niam10-Apr-04 2:16
niam10-Apr-04 2:16 
GeneralRe: Fonts, texts ... Pin
toxcct10-Apr-04 2:43
toxcct10-Apr-04 2:43 
GeneralRe: Fonts, texts ... Pin
avenger_sb2510-Apr-04 17:21
avenger_sb2510-Apr-04 17:21 
Generalmaking a class thread safe Pin
packetlos10-Apr-04 0:51
packetlos10-Apr-04 0:51 
GeneralRe: making a class thread safe Pin
Gary R. Wheeler10-Apr-04 2:11
Gary R. Wheeler10-Apr-04 2:11 
The CSingleLock class unlocks the object in its destructor. Your Lock() function locks the critical section, and then when the CSingleLock object is destroyed when the Lock() function returns, the critical section is unlocked.

Try changing your code to this:
void CPacket::Lock(){
  m_CList.Lock();
  ASSERT(m_CList.IsLocked());
}
void CPacket::Unlock(){
  m_CList.Unlock();
  ASSERT(!m_CList.IsLocked());
}



Software Zen: delete this;
GeneralSystemtray + compiling Pin
Geert van Horrik10-Apr-04 0:35
Geert van Horrik10-Apr-04 0:35 
Generalservice problem!!! Pin
tank10259-Apr-04 23:43
tank10259-Apr-04 23:43 
GeneralRe: service problem!!! Pin
Mikko Puonti9-Apr-04 23:58
Mikko Puonti9-Apr-04 23:58 
GeneralRe: service problem!!! Pin
tank102510-Apr-04 0:05
tank102510-Apr-04 0:05 
GeneralMaximize dialog based app on startup Pin
pma9-Apr-04 23:15
pma9-Apr-04 23:15 
GeneralRe: Maximize dialog based app on startup Pin
Prakash Nadar9-Apr-04 23:35
Prakash Nadar9-Apr-04 23:35 
GeneralRe: Maximize dialog based app on startup Pin
ThatsAlok9-Apr-04 23:36
ThatsAlok9-Apr-04 23:36 
GeneralFind The type of Internet Connection.... Pin
swarnamanoo9-Apr-04 23:10
swarnamanoo9-Apr-04 23:10 
GeneralProblem accessing one class from another and vice versa Pin
Iceberg769-Apr-04 20:34
Iceberg769-Apr-04 20:34 
GeneralRe: Problem accessing one class from another and vice versa Pin
toxcct9-Apr-04 21:39
toxcct9-Apr-04 21:39 
GeneralRe: Problem accessing one class from another and vice versa Pin
toxcct9-Apr-04 21:51
toxcct9-Apr-04 21:51 
GeneralClipboard copy Pin
Member 60749-Apr-04 20:32
Member 60749-Apr-04 20:32 
GeneralRe: Clipboard copy Pin
ThatsAlok9-Apr-04 23:43
ThatsAlok9-Apr-04 23:43 
GeneralFormating output file Pin
picasso29-Apr-04 19:28
picasso29-Apr-04 19:28 
GeneralRe: Formating output file Pin
Prakash Nadar9-Apr-04 19:51
Prakash Nadar9-Apr-04 19:51 
QuestionActive Window? Pin
David Horner9-Apr-04 18:54
David Horner9-Apr-04 18:54 
AnswerRe: Active Window? Pin
wuxianzhong9-Apr-04 21:26
wuxianzhong9-Apr-04 21:26 

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.