Search results for query: *

  1. B

    Question Error: Bitmap Region Is Already Locked

    Fabulous!! That did it! Thanks! :D FABULOUS!!!!! :D Yep, that sure did the trick of cloning the resource. I was tempting to do that earlier, but I was only cloning attempting to clone it to display it, and gave up on that when my results didn't change. You gave me the insight to create a...
  2. B

    Question Error: Bitmap Region Is Already Locked

    So I have tested this over and over again trying to add a mutex and synclocks to see if maybe I had a multithreading issue going on, and I am still stuck. After exhausting all my other options I am posting here to see if anyone is familiar with this problem or anyone has an idea on how I could...
  3. B

    Question Connecting 2 Clients Through a Server - Fastest Transfer Method?

    JohnH, Thanks once again for your must valuable insight. You presented me with some code which showed me how to implement a asynchronous server just passing along the data which I have used to altered the way I am handling my reading to be the solution. This is what I end up with in my server...
  4. B

    Question Connecting 2 Clients Through a Server - Fastest Transfer Method?

    Hmm, but how would I send it in pieces to allow the Server to read and write at the same time. All I see that is happening here is that the Server completely receives it then sends it. Is there a way for the server to send it as it receives it? The code below works with no problems. Just I...
  5. B

    Question Connecting 2 Clients Through a Server - Fastest Transfer Method?

    I guess I am having trouble now figuring how to break it up and only read some and transfer some so as to know when I have finally transferred the whole thing. I was doing it asynchronously when I was directly connecting the two clients, but now I may have to do it just synchronously since I am...
  6. B

    Question Connecting 2 Clients Through a Server - Fastest Transfer Method?

    The idea is in my head and so is the implementation, but not the syntax :( This is what I am trying to do: There are 3 Parts: Client A, Client B, and the Server Client A and Client B are both connected to the Server. Client A is trying to send a picture to Client B through the Server. Client...
  7. B

    Best Way To Send Multiple Images Sequentually Over a Network Stream

    :rolleyes: Or one dumb dumb like me forgot to make the oldscreen the same size as the new screen. I was still setting the oldscreen to the screen parameters of the machine it was running on and not the size of the screen for which it was receiving its info from. Wow what a difference. DOH! :o...
  8. B

    Best Way To Send Multiple Images Sequentually Over a Network Stream

    JohnH, Thanks once again for your most valuable insight. This is definitely a nice alternative to getdibits and setdibits that will work. If i ever get getdibits and setdibits to work, i will compare the speed of the processing against the lockbits. The only thing I need to figure out now is...
  9. B

    Question GetDIBits & SetDIBits

    Here is the entire class if this will help anyone spot my error with why SetDIBits continues to return a value of 0 meaning it fails. Please excuse the lack of comments. This is the first time I am playing with GetDIBits and SetDIBits, so I opened an application to just play around with the...
  10. B

    Question GetDIBits & SetDIBits

    So I am trying to capture a screen and use GetDIBits to get the bytes of the screen capture for a network transfer. On the other side the bytes will be received and processed by SetDIBits for further processing. Well maybe you can tell me what I am doing wrong here. The GetDIBits returns a...
  11. B

    Getting blank image when trying to XOR two images

    So I started asking on here about SetDIBits and GetDIBits, but thought it was best to create a whole new thread to gain more attention since it does not have anything to do with bitblt any more! Here is the link to the new thread! http://www.vbdotnetforums.com/showthread.php?p=82565#post82565
  12. B

    Getting blank image when trying to XOR two images

    Tarunlalwani, Thanks for the input!!! I will check this out when I wake up in 7 hours. I was able to accomplish just about everything but was failing on SetDIBits. I am going to look at SetDIBits again in the morning, but may I have spent enough time with the seperate API's. I may just go...
  13. B

    Best Way To Send Multiple Images Sequentually Over a Network Stream

    Yeah, pretty much the same as Log Me In. I have already designed the complete managing software for my company this past year. Now I am just on the move to design a remote application to help out customers that will tie directly in to what I have already started. Thanks for the idea though :p
  14. B

    Getting blank image when trying to XOR two images

    So I have been flipping through websites all day trying to figure out how to do this, and no luck yet. Now I am wondering if I want to getDIBits or CreateDIBSection. I'll check back in the morning to see if anyone has any input! Goodnight :confused:
  15. B

    Best Way To Send Multiple Images Sequentually Over a Network Stream

    After moving on to other things and getting them to work, I am now back on this project to complete it. However I don't believe the way I was looking at it before was the correct way to go about sending the images across a network stream. I believe I am now on the right track with using the...
  16. B

    Getting blank image when trying to XOR two images

    Ok, So I have found this code enabling me to to see how SRCCOPY and SRCINVERT works. I am trying to send a screen capture and updates across the network. Technically there are 3 images. Image1 - The Original Image Image2 - The Updated Image Image3 - The Inverted Image of Image1 & Image2 I...
  17. B

    Getting blank image when trying to XOR two images

    OK, so now I have changed the code to what I have found on the msdn forums so as to get the bitblt to work for a srccopy. Now I am trying to figure out how to compare the image with a previous image so as to figure out what has changed. I believe this can be done, from what I understand, the...
  18. B

    Getting blank image when trying to XOR two images

    Where Did We End Up With This BitBlt? Ok, I guess I am just lost, or the solution never really presented itself. I am new to this whole BitBlt subject area, and I ran into a few other examples that I got the same result on. However, I will continue with this example. I do not get an error...
  19. B

    Problems With Network Speed and Images and System.OutOfMemoryException

    I fixed my problem. The incorrect line of code was: HFHTechSendNextScreen.Read(TechSendScreenBytes, 0, CInt(HFHTechSendNextScreenTCP.ReceiveBufferSize)) The correct line of code is: HFHTechSendNextScreen.Read(TechSendScreenBytes, 0, TechSendScreenBytes.Length) Works like a charm now :)...
  20. B

    Problems With Network Speed and Images and System.OutOfMemoryException

    So it all works fine when I do it with the receiver telling the sender to send the next image. However, I would like to clear up another problem I run into. I have found away around it, but I am not sure if I can clear it up without using my workaround. The work around that I use is a try...
Back
Top