<div>Hi All</div>
<div> </div>
<div> </div>
<div>             I have a <strong>supervisor</strong>, a <strong>genserver</strong>  which receives messages through udp and a <strong>gen fsm</strong> module which sends the messages using the same socket.</div>
<div>The application <strong>runs fine</strong> when i start it the supervisor <strong>without using threads</strong>..ie it is able to receive and send messages..</div>
<div> </div>
<div>But when i run the supervisor using threads i am unable to receive and send message through gen server and gen fsm module respectively.. </div>
<div> </div>
<div>Is that when i spawn <strong>otp</strong> modules i must pass a reference to all the otp modules or there is something i am missing..</div>
<div> </div>
<div>For Eg..</div>
<div>Application runs fine when i start things as ordinary: ie supervisor:start("","","").</div>
<div> </div>
<div>But when i start it using thread I am unable to run the application For eg: <strong>spawn(supervisor,start,["",""]).</strong> But some times i am able to send but unable to receive the messages using udp 
connection.But I am passing the socket reference to all the modules(genserver and gen fsm).</div>
<div> </div>
<div>Is there any other thing that should be done.. </div>
<div> </div>
<div>Thanks in advance</div>
<div>Regards</div>
<div>A.K</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>         </div>
<div> </div>