<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi<BR> <BR>Is class DcerpcHandle thread safe? <BR> <BR>There is a field:<BR><pre style='color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12pt; background-color: rgb(255, 255, 255);'><span style="color: rgb(0, 0, 128); font-weight: bold;">private static int </span><span style="color: rgb(102, 14, 122); font-style: italic;">call_id </span>= <span style="color: rgb(0, 0, 255);">1</span>;</pre><pre style='color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12pt; background-color: rgb(255, 255, 255);'> </pre><pre style='color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12pt; background-color: rgb(255, 255, 255);'>and a method:</pre><pre style='color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12pt; background-color: rgb(255, 255, 255);'> </pre><pre style='color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12pt; background-color: rgb(255, 255, 255);'><pre style='color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12pt; background-color: rgb(255, 255, 255);'><span style="color: rgb(0, 0, 128); font-weight: bold;">public void </span>sendrecv(DcerpcMessage msg){</pre><pre style='color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12pt; background-color: rgb(255, 255, 255);'><span style="background-color: rgb(228, 228, 255);"></span> </pre><pre style='color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12pt; background-color: rgb(255, 255, 255);'><span style="background-color: rgb(228, 228, 255);">... </span></pre><pre style='color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12pt; background-color: rgb(255, 255, 255);'><span style="background-color: rgb(228, 228, 255);"><span style="background-color: rgb(228, 228, 255);">msg</span>.<span style="color: rgb(102, 14, 122); font-weight: bold;">call_id </span>= <span style="color: rgb(102, 14, 122); font-style: italic;">call_id</span>++;</span></pre><pre style='color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12pt; background-color: rgb(255, 255, 255);'><span style="background-color: rgb(228, 228, 255);">...</span></pre><pre style='color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12pt; background-color: rgb(255, 255, 255);'><span style="background-color: rgb(228, 228, 255);">}</span></pre></pre><span style="background-color: rgb(228, 228, 255);"></span> <BR>I guess it is not thread safe. Is this a bug or it will work anyway?<BR> <BR>Thanks<BR>                                       </div></body>
</html>