[so] [tema2] [Win] MapViewOfFile - The handle is invalid.

VLAD TUDOSE vlad_tudose at yahoo.com
Tue Apr 5 02:30:12 EEST 2011


Mersi mult,

Asta era problema. Si la fel si la semafor + "_sem" pentru semafor.

Tudose Vlad.

--- On Tue, 5/4/11, Valentin Dobrota <valydo at gmail.com> wrote:

From: Valentin Dobrota <valydo at gmail.com>
Subject: Re: [so] [tema2] [Win] MapViewOfFile - The handle is invalid.
To: "Sisteme de Operare" <so at cursuri.cs.pub.ro>
Date: Tuesday, 5 April, 2011, 2:14 AM

check this stuff:
lui OpenFileMapping trebuie sa-i dai ca parametru fix numele din command + _shmDIE-ul de la OpenFileMaping trebuie cu NULL


2011/4/5 VLAD TUDOSE <vlad_tudose at yahoo.com>

Salut,



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".


Chestia asta mi se intampla la fiecare test la primul mesaj primit de server.



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.



Programul il rulez in masina virtuala.

Astept o sugestie de tratare/identificare a problemei.



Tudose Vlad.



_______________________________________________

http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii




-----Inline Attachment Follows-----

_______________________________________________
http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20110404/99eac694/attachment.htm>


More information about the so mailing list