CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: EmbeddedC

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    12
    Views
    17,528

    Re: Socket Blocking Read TimeOut!

    Hello guys,

    Calling the Socket.Close() will do the trick as Mutant Fruit already said.
    This makes thus possible to complete my concept for writing a GUI friendly socket class.
    There are several...
  2. Replies
    12
    Views
    17,528

    Re: Socket Blocking Read TimeOut!

    Mutant Fruit,

    Thnx for your respons.

    This is not happening, it doesn't return with 0 bytes. I know this concept, cause that is what I do using C++ with win32 API. So though I call...
  3. Replies
    12
    Views
    17,528

    Re: Socket Blocking Read TimeOut!

    MadHatter,

    I disconnected the socket while it was connected, but Socket.Read(...) didn't return with an exception or something it just kept waiting for some data to receive in blocking mode,...
  4. Replies
    12
    Views
    17,528

    Re: Socket Blocking Read TimeOut!

    Thanks for the reply,

    What I did is wrote a simple server (in C++) which creates a new thread when accepted a clientconnection (which is the one written in C#). In the created thread of the...
  5. Replies
    12
    Views
    17,528

    Re: Socket Blocking Read TimeOut!

    Dear friends,

    I use TimeOut because I run this piece of code in a seperate thread. To signal the thread that it has to close, I want to check, in the thread ofcourse, the signalstate...
  6. Replies
    12
    Views
    17,528

    Socket Blocking Read TimeOut!

    After calling Socket.Read(...), the socket times out after 5000 ms. Because I set Socket.ReceiveTimout to 5000. If it times out, an exception occurs and catch the exception. But I don't need to do...
  7. Replies
    12
    Views
    6,350

    Re: How to detect deadlocks?

    Hello guys,

    I was searching the problem of deadlock, I did a lot of trace-loggings to follow exactly what's going on. I printed the logs and marked every thread where they are and what they do,...
  8. Replies
    12
    Views
    6,350

    Re: How to detect deadlocks?

    It really is hard,

    I put everywhere trace's to follow what's going on in my app, but it's hard to understand what's going on.

    Is there a way to include thread-names when calling...
  9. Replies
    12
    Views
    6,350

    How to detect deadlocks?

    Hello friends,

    I'm an allround programmer (C++, embedded C and a bit C#).
    I want to show some logging on a simple form from multiple threads. But I get situations where I got stuck in a deadlock....
  10. Replies
    4
    Views
    1,960

    Re: Write JPEG file from jpeg data?

    Thanks for your post guys!

    Mr. Acces violation, you are totaly right about the useless jpeg data. The code is not wrong, but I understood the documentation wrong. I analized the data and found out...
  11. Replies
    4
    Views
    1,960

    Write JPEG file from jpeg data?

    Hello best programmers,

    I have a small camera module I communicate with via serial port.
    I can read data from the camera which is a JPEG compressed format picture of VGA size (640x480), but it...
  12. Replies
    1
    Views
    685

    Something like a delegate!

    Visual Studio 2005.
    C# beginner
    Experience: C/C++ (Visual C++)



    Hello best programmers,

    From my class I want to call a function which is in the Main(). The problem is, my class will be...
  13. Replies
    6
    Views
    1,135

    Re: Using delegate for receiving data.

    Matthias,

    Thank you very much for your value posts.
    I think I need to study some techniques in C# how to post a "message" from one thread to another thread.

    I also read that delegate and event...
  14. Replies
    6
    Views
    1,135

    Re: Using delegate for receiving data.

    Thank you for your reply my friend,

    Than what is the purpose of an event?
    In that case I can throw away the event and use only a delegate to call a function.

    Isn't that when an event has fired...
  15. Replies
    4
    Views
    1,058

    Re: How to use pointers in C#?

    I rather do the safe way, that's why C# is written for I think.
    Otherwise we should go back to C++.
    I must learn and understand the C# philosophy, I think that's the difficult part. To distinguish...
  16. Replies
    6
    Views
    1,135

    Re: Using delegate for receiving data.

    Hello MathiasD,

    First, thank you very much for your reply and your time to give me an example.
    I understand your example, and found out it's not so easy to implement an event. It takes some lines...
  17. Replies
    6
    Views
    1,135

    Using delegate for receiving data.

    Hello best programmers,

    I manged to get a socketconnection with another pc and I can receive data and read it. Now I want to call a function in the main when I receive data. I understand I need to...
  18. Replies
    4
    Views
    1,058

    Re: How to use pointers in C#?

    Thank you very much for your reply Boudi,

    Your post is very clear, I understand that I have to make everything, like variables, functions etc..., as members of a class. And when instantiated, the...
  19. Replies
    4
    Views
    1,058

    How to use pointers in C#?

    Hello best programmers,

    I'm actually from the C/C++ corner, so maybe I'll ask a stupid question about C#. Suppose I call a function/method and give a pointer as an argument, is this possible in...
  20. Thread: Closing Form

    by EmbeddedC
    Replies
    3
    Views
    1,015

    Re: Closing Form

    Ok, I got it:

    private void MainMap_FormClosed(object sender, FormClosedEventArgs e)
    {
    }

    Create eventhandler in MainForm.designer by dubbleclicking in the propperty item. and do some...
  21. Thread: Closing Form

    by EmbeddedC
    Replies
    3
    Views
    1,015

    Re: Closing Form

    How about closing the main application and before closing you want to do some processing. For example, before closing all created files must be deleted.
    In C++ you can do that in the constructor of...
  22. Re: MSVS++ editor syntax highlighting/etc options

    Maybe Ctrl+} would work?
  23. Replies
    3
    Views
    2,449

    Re: To hide a window

    I guess Sangeeta means painting in the background. I actually don't know how your program behaves. I think it should be possible, you need to do the painting in an apart thread...or something.
  24. Replies
    5
    Views
    1,076

    Re: Converting a string into a line of code.

    Hahaha,

    That's funny, only Hobson understood Fatboy's question.
    Fatboy would like to create an application something similar like Matlab (but I guess a very small one).
    Peace!
  25. Re: Convert strange characters into normal and back.

    Hi Cilu,

    To be honest, I have no experience with databases and XML at all. I just don't have the time to learn it with two kids and a wife. The youngest one is just one year, and that big guy...
Results 1 to 25 of 102
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured