Search code examples
c#.netdata-transfer

Best way to transfer bitmap object over lan


I need fastest way to transfer bitmap object over the lan in C#.

Abdul Khaliq


Solution

  • here's a bug in the .NET V2.0 SP1 and .NET 3.5 version of CopyFromScreen(). It leaks a handle, after a while you'll run out available handles and get weirdo error messages like this. You can't use it in its present condition, check this thread for another way to do it by P/Invoking Windows API functions.

    also there is a nice solution found on this link.