[so] [tema2] The handle is invalid.
Lungu Adrian
lungu_a_ro at yahoo.com
Thu Apr 7 00:23:56 EEST 2011
Alexandra Sava <alexandrasava18 at ...> writes:
> Incerc sa deschid o coada (deja existenta) in felul urmator:
> mailslot = CreateFile(
> slot_name,
> GENERIC_WRITE | GENERIC_READ,
> FILE_SHARE_WRITE|FILE_SHARE_READ,
> NULL,
> OPEN_EXISTING,
> FILE_ATTRIBUTE_NORMAL,
> NULL);
> Desi am setat flagurile FILE_SHARE_READ si FILE_SHARE_WRITE (cum se
> vede mai sus), primesc o exceptie de tipul: `The process cannot access
> the file because it is being used by another process`. S-a mai lovit
> cineva de treaba asta in conditiile prezentate?
>
> Alexandra
>
Buna. Incearca :
mailslot = CreateFile(
slot_name,
GENERIC_WRITE , //am sters GENERIC_READ
FILE_SHARE_WRITE|FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
Din ce-am inteles eu , dintr-un proces nu poti deschide un mailslot decat pentru
citire sau scriere.
O zi buna,
Adrian.
More information about the so
mailing list