Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

Vivek_India

@Vivek_India
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help ! "Object in use elsewhere,,,," exception
    V Vivek_India

    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

    Windows Forms

  • Help ! "Object in use elsewhere,,,," exception
    V Vivek_India

    k.. 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.... :)

    Windows Forms

  • Problem while drawing the image in picture box
    V Vivek_India

    you 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?

    Windows Forms help graphics data-structures

  • Help ! "Object in use elsewhere,,,," exception
    V Vivek_India

    hi 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 Sub

    where '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..

    Windows Forms
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups