Hi,
I've attached a possible solution for checking the validity of the service handle before using it.
Can somebody please comment on this? Do I need to protect the list with a CriticalSection? Is this overkill?
Cheers,
Paul.
Paul Vriens wrote:
Hi,
I've attached a possible solution for checking the validity of the service handle before using it.
Can somebody please comment on this? Do I need to protect the list with a CriticalSection?
Yes.
Is this overkill?
Yes.
This should eventually be done via RPC, which has its own separate mechanism for making sure handles are valid.
Robert Shearman wrote:
Paul Vriens wrote:
Hi,
I've attached a possible solution for checking the validity of the service handle before using it.
Can somebody please comment on this? Do I need to protect the list with a CriticalSection?
Yes.
Is this overkill?
Yes.
This should eventually be done via RPC, which has its own separate mechanism for making sure handles are valid.
Ok, so until we have that mechanism the attached should work?
Btw, are there many places in the code where we should use the RPC approach?
Cheers,
Paul.