[S.O.L.V.E.D] MultiThreaded Server Freezes GUI upon bind()

Hello JGO, I know there are countless posts relating to my error but the majority of them are pertaining to / are involving the firing of a event and than the freezing occurs.

Now I know my problem is along the same lines. :stuck_out_tongue:

EDIT: Sorry if this question has already been answered here :<

Here is my pseudo-code:
(Custom networking kit)


public static void main(String[] args) {
     new Loader().run();
}

public Loader() {
     // create UI's
     // show splash screen with progress bar etc..
}

public void run() {
     // fire a SwingWorker to load resources / update UI's
}

/* Called upon when the SwingWorker finishes loading resources */
protected void done() {
		loading = false;
		try {
			server.bind();
		} catch (BindException e) {
			e.printStackTrace();
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		game_window.show();
}

I have tried firing both calls separately / together on SwingUtilities/invoke/wait methods and the no responding still occurs.

I’ve ran into this problem a couple times in the past and I’ve managed to solve it but now I cannot (At the moment) and that’s why I’m coming here and asking for help :>

Hopefully somebody can post back with some pseudo-code on how I should do this so I don’t have to spend hours trying to solve it haha :slight_smile:

I managed to solve it! :>


	public static void main(String[] args) {
		Thread th = new Thread() {
			public void run() {
				super.run();
				/* Initialize and bind the server */
			}
		};
		th.start();
		new Loader().run();
	}

I saw the mess that was the title and immediately thought of GabrielBailey74, I was not disappointed.

I have no reply for you haha
The way I word things + how I feel about ā€œRandom Shit Talkersā€ / ā€œwanna be big boys onlineā€ i’d be banned again within a few seconds :confused:

Anyways, regardless of if it was my issue or another persons issue it’s been solved so there’s NO reason for you to post here especially if it’s nothing but some smart ass comment :L

Funny how even when I make a post with no sarcasm / rudeness some noob has to come along and talk shit xD

Dang I love it when people talk shit about me <3

JGO needs a ignore list lol.

ā€œSorry you cannot make a reply to this topic, you are on his ignore listā€

Calm down man. He’s joking. Believe it or not, not everyone out there is there to kill you.
Talk about easily offended ::slight_smile:

Erm, when a random says something negative towards you what is it?
ā€œBuddy Seasonā€?
<_<…

lul

I don’t think everyone’s out to get me o_o

When someone’s posting negative comments on my post I’ll speak my mind o_0

I don’t have a problem with you speaking your mind, but, as I said, he was joking. I don’t think you’re foreign, so I doubt you didn’t see that.

(inb4ban)

He left a smart ass / negative comment (On my help thread), I spoke my mind.

Threads closed lol

Whether I picked his comment up as a joke or not has no relevance mate, point is I don’t know him therefor a negative comment placed where it’s not needed will be ā€œcorrectedā€?

I don’t know how to word what I feel like saying without having riven breathing down my neck (private message center) about how I need to ā€œrespect the members hereā€.

Once again the thread’s closed, if you want to argue for someone who’s offline: make a rant topic and I’ll join you jimmt :wink:

I think GabrielBailey deserves a polite nod in his general direction, for keeping his composure.

http://cdn.overclock.net/6/6f/6f7d7db4_350x700px-LL-4ad90b08_Not-sure-if-serious2.jpeg

Bring the whole JGO gang please :>

Well, Sickan made a comment that was uncalled for. Knowing you a bit, I think you handled it pretty well. Then Jimmt started fueling the fire and it still didn’t escalate. So a well timed nod is in order.

Sorry :-\

http://weknowmemes.com/wp-content/uploads/2012/09/apply-cold-water-to-the-burned-area.jpeg

I’m in need of heart / lung surgery at the moment so half the shit that comes my way I’m just brushing off TBH lol.

Don’t need to get into a caps lock match :c