February 17th, 2010, 01:40 PM
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...
February 17th, 2010, 11:49 AM
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...
February 17th, 2010, 07:09 AM
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...
February 17th, 2010, 05:37 AM
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...
February 16th, 2010, 05:19 PM
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.
...
February 16th, 2010, 04:49 PM
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...
February 16th, 2010, 02:12 PM
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,...