If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

euhm, no, there isn't supposed to be a ')' there, look at the end, it closes with '});' , notice the ')'. It compiles fine, it's just that damn exception that is thrown. I thought it would be a VM issue again so I changed the class to implement ActionListener and changed some stuff:

capture.addActionListener(this);

I also obviously created a public void actionPerformed() that is not inside the ActionListener declaration like above. Didn't solve anything.

The above sentences are produced by the propaganda and indoctrination of people manipulating my mind since 1987, hence, I cannot be held responsible for this post\'s content - me

No, that's not the problem, dataconn is an instance of the DataConnect class (which I wrote), the DataConnect class is only used to establish a connection to transfer binary data.
It doesn't read past the end of anything, the server closes the connection when it has sent the data being received in the snippet you just quoted.

The problem is, like I said, and exception is thrown that an event at an unknown source has occured. It's not an exception that the compiler forces you to try/catch or declare that it can be thrown.

Full source code of the program can be found here: elhalf.com/Crat.java (client part) and elhalf.com/CratServer.java (server). You won't find that code in it, the code on my site works. I am adding a feature to take a screenshot on the remote computer and transfer it over a socket. But at least you can get an idea of what this program does.

The above sentences are produced by the propaganda and indoctrination of people manipulating my mind since 1987, hence, I cannot be held responsible for this post\'s content - me

Well you are probably correct, there may be other logic mistakes too in the entire program but that's not the point for now. The program doesn't get to that point so for now I first have to find the problem of the exception that is thrown. I'll download the latest sdk (I am using 1.4.2_01-b6 and the latest is 1.4.2_05 so it is most likely a vm or compiler issue.

The above sentences are produced by the propaganda and indoctrination of people manipulating my mind since 1987, hence, I cannot be held responsible for this post\'s content - me

Have you been running this through a good debugger? Or tried debugging print statements to check your program state and commenting out the code you think may be troublesome?

"When I get a little money I buy books; and if any is left I buy food and clothes." - Erasmus
"There is no programming language, no matter how structured, that will prevent programmers from writing bad programs." - L. Flon
"Mischief my ass, you are an unethical moron." - chshBlog of X

Please stop using your current VM build. The last problem you had was also (most likely) a VM issue. Remember that the 'b' in the name signifies a beta release. Please get a 1.4 release VM and try again.