<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Mersi mult,<br><br>Asta era problema. Si la fel si la semafor + "_sem" pentru semafor.<br><br>Tudose Vlad.<br><br>--- On <b>Tue, 5/4/11, Valentin Dobrota <i><valydo@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Valentin Dobrota <valydo@gmail.com><br>Subject: Re: [so] [tema2] [Win] MapViewOfFile - The handle is invalid.<br>To: "Sisteme de Operare" <so@cursuri.cs.pub.ro><br>Date: Tuesday, 5 April, 2011, 2:14 AM<br><br><div id="yiv81500177"><div>check this stuff:</div><div><br></div>lui OpenFileMapping trebuie sa-i dai ca parametru fix numele din command + _shm<div>DIE-ul de la OpenFileMaping trebuie cu NULL</div><div><br></div><div><br><div class="yiv81500177gmail_quote">
2011/4/5 VLAD TUDOSE <span dir="ltr"><<a rel="nofollow" ymailto="mailto:vlad_tudose@yahoo.com" target="_blank" href="/mc/compose?to=vlad_tudose@yahoo.com">vlad_tudose@yahoo.com</a>></span><br><blockquote class="yiv81500177gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Salut,<br>
<br>
Am si eu urmatoarea problema, gateway-ul primeste primul mesaj si il trimite catre server-ul corespunzator, server-ul primeste mesajul correct iar cand face MapViewOfFile imi da eroare "The handle is invalid".<br>
Chestia asta mi se intampla la fiecare test la primul mesaj primit de server.<br>
<br>
Mentionez ca am avut si eu problema cu 49 bytes primiti in loc de 48 la ReadFile si am rezolvat-o asteptand 49 bytes in ReadFile.<br>
<br>
Programul il rulez in masina virtuala.<br>
Astept o sugestie de tratare/identificare a problemei.<br>
<br>
Tudose Vlad.<br>
<br>
_______________________________________________<br>
<a rel="nofollow" target="_blank" href="http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii">http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii</a><br>
</blockquote></div><br></div>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br><a href="http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii" target="_blank">http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii</a></div></blockquote></td></tr></table>