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

Search:

Type: Posts; User: Kakoon

Search: Search took 0.02 seconds.

  1. Replies
    13
    Views
    11,138

    Re: Form disappearing after thread closes.

    Hah, makes at much sense to you as it does to me, but it works and accidentally found it out by experimenting, and I want to find an explaination why it works... and how to make it work by using a...
  2. Replies
    13
    Views
    11,138

    Re: Form disappearing after thread closes.

    Well my previous post was a response to boudino's suggestion about the message loop ending when the thread ends. Hope this clears it up:

    My assumption
    Using the line
    form2 = new Form1(); does...
  3. Replies
    13
    Views
    11,138

    Re: Form disappearing after thread closes.

    Okay I found something...



    form2 = new Form1();


    Does not actually create that form... I have to make it visible and then hide it to let everything be created in the UI thread. Modifying...
  4. Replies
    13
    Views
    11,138

    Re: Form disappearing after thread closes.

    BigEd781, yes, and what I found confirmed what I described in the first post. After the thread ends, the form disappears. I don't understand... It seems like some local instance is created or cloned...
  5. Replies
    14
    Views
    6,888

    Re: how corectly unzip GZipStream

    Using zlib, I wrote the following code to decompress a gzip compressed byte[] array msgData. Used it for my soulseek client, worked great. Maybe it's of use for you. You can google zlib i assume.

    ...
  6. Replies
    13
    Views
    11,138

    Re: Form disappearing after thread closes.

    Okay to get things clear, I've created a small example. One project with two files: Program.cs and Form1.cs
    The form has a button to create a thread which makes the other form visible... Or at least...
  7. Replies
    13
    Views
    11,138

    Form disappearing after thread closes.

    Okay, this is probably a stupid question about threads, but I'm completely lost here...

    So I made this network library that runs each client on a separate thread, and whenever a message arrives,...
Results 1 to 7 of 7





Click Here to Expand Forum to Full Width

Featured