Hey thanks ...led-mike And sorry, I completely misunderstood you.. any way i will study the book you recommended( or may be similar text is that ok?)...any way i was wondering what could be wrong and suddenly the part where a bitmap object is assigned to the image property of the Picturebox Picbox.image=screen
was causing the trouble.. when i commented it out, it worked fine..i learned that picturebox was being rendered on a different thread,, than mine so it was accoring to VS 2005 illegal cross thread operation or something along that line... is there any thread safe way to do it... And finally my english is not so good, so i apologize for the inconvenience... Thnx and regards Vivek
Vivek_India
Posts
-
Help ! "Object in use elsewhere,,,," exception -
Help ! "Object in use elsewhere,,,," exceptionk.. i may not be an exact newbie ...but i am new to Multi-threading..i learned all the theory about it ..but the implementation went haywire.. so i thought of asking here..its wrong is it... and sorry if it offended you.... :)
-
Problem while drawing the image in picture boxyou could assign the contents of the picture box to a Bitmap Object... manipulate the Bitmap object via setpixel and getpixel and the assign it back to the Picturebox Does this help?
-
Help ! "Object in use elsewhere,,,," exceptionhi everyone, Hope everyone's doing better than me... I have a problem Here's the scenario i'm currently a Network App using the Socket Class which sends the image over the network.. Client Sends the image the image is basicaly wrapped in my Packet class in packet assembly (ofcource both the sides (client/server) will have reference to it).. so i serialize it and send it through the networkstream of the socket this happens on a separate thread.. like so
.................
'some where in the form
dim thre as new THread(addressof (startstream)
thre.start().............
'thread procedure
Sub startstream
dim img as bitmap
mypacket.screen=img
formatter.serialize(stream,mypacket)
End Subwhere 'mypacket' is a instance of Packet class Server recieves the image and deserialize it and uses it... this also happens on a separate thread.. my idea is to send and recieve the packet(containing the image) asynchronously using threads is that a bad idea..or is there something fundamentally wrong... The exception is Object in use elsewhere...on the client side serializing.. what am iam doing wrong here.. can anyone help me.. please forgive me, if my question sounds stupid and cause i'm a newbie thanks in advance..