Jordy21 / csharptest-net

Automatically exported from code.google.com/p/csharptest-net
0 stars 0 forks source link

Use Explicit binding #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am not sure, but do you code uses what handles?

http://msdn.microsoft.com/en-us/library/windows/desktop/aa373578.aspx
Do not use implicit handles or auto handles.

http://www.codeproject.com/Articles/4878/Introduction-to-RPC-Part-2#Multithreadi
ng11
Multithreading

The example showed in this article is not thread-safe. If two threads does 
things in the server at the same time, things could start behaving strange or 
even crash. In this simple example it does not matter, but it could easily be 
fixed by using some sort of mutual exclusive synchronization objects (critical 
sections). This will be addressed in a future article.

Original issue reported on code.google.com by asd.and....@gmail.com on 6 Mar 2013 at 9:34

GoogleCodeExporter commented 8 years ago
The RPC handles are already explicit to avoid this issue.

Original comment by Grig...@gmail.com on 26 Jan 2014 at 6:17