[so] [Tema 2] Problema mailslot
Iulian Moraru
iulian at gmail.com
Mon Feb 5 15:53:28 EET 2007
Ai MSDN-ul la indemana. E bine sa citesti atent documentatia api-ului,
mai ales atunci cand ceva nu merge:
http://msdn2.microsoft.com/en-us/library/aa365130.aspx
http://msdn2.microsoft.com/en-us/library/aa365584.aspx
http://msdn2.microsoft.com/en-us/library/aa365785.aspx
Citez (ma gandesc ca poate aici e problema ta): "A mailslot server is
a process that creates and owns a mailslot. When the server creates a
mailslot, it receives a mailslot handle. This handle must be used when
a process reads messages from the mailslot. Only the process that
creates a mailslot or has obtained the handle by some other mechanism
(such as inheritance) can read from the mailslot."
De asemenea, de retinut ca handle-ul returnat de CreateMailslot poate
fi folosit DOAR pentru citire ("mailslot server operations").
On 2/5/07, Razvan Gherghina <razvan.mihaig at gmail.com> wrote:
> Am o problema legata de mailsloturi.
> Cand vreau sa citesc din unul imi apare o eroare de genul "the
> parameter is incorrect". Citirea o fac cu readfile. Acelasi lucru mi
> se intampla si pe varianta de cod din laborator.
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
More information about the so
mailing list