What causes "Too many posts were made to a semaphore"?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Peter Steele (psteele_at_ciena.com)
Date: 02/28/04


Date: Sat, 28 Feb 2004 07:23:24 -0800

We have an application that is failing with the error

Error no. 298, Too many posts were made to a semaphore.

on a call to WaitForSingleObject(). This is happening on a Windows 2000
system. What might be causing this failure?

Peter Steele
Ciena Corp.



Relevant Pages

  • Re: Thread synchronization problem
    ... Then we don't need the semaphore. ... WaitForSingleObject(ab1); ... ReleaseMutex(ab1); ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Is the following code MT-Safe?
    ... >to handle exactly one item per WaitForSingleObject call return. ... There is a global system-wide counter which can be implemented by a semaphore, ... >multiple work items ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: Mr. Juicy Juice
    ... | meticulously, failing to ride the stages pre-tour, failing to ... I do frequently remove excess quoting. ... RBR will show dozens and dozens of posts with pages of quoting with a ... extensive sig file before asking for trimming of posts, ...
    (rec.bicycles.racing)
  • Re: Typedef-ing structs
    ... that being a failing. ... person on the face of the planet that doesn't get all the posts. ... read the references header line. ... your news reader and telling it to delete headers to articles you have read ...
    (comp.lang.c)
  • Re: converting games.pl(cgi.pm) => games.pl (html::template)
    ... At that time yes i would like a little spoonfeeding but the template its done, the only help i need is with the snippet of games.pl ... I understand if you dont want to help, so please ignore my posts if you like, but i hope you dont. ... you tweak one small bit of your code, failing to answer any of the requests for clarification raised by the previous poster, failing to address any of the improvements in your approach that have been suggested, and by the ...
    (comp.lang.perl.misc)