java - code after socket statement does not execute -



i'm working on project need socket programming, unfortuanatly when use call socket statement , read input stream of socket or write application crash , nothing work, in fact problem code handles action of buttons , other things not work, execution stop @ line calls method create reads input stream of socket. solved problem times ago thread , putting statement works socket inside run method. ui works correctly still not have functionality. here 2 line of calling method

conection_manager cm = new conection_manager(jtextfield1.gettext()); jtextarea1.settext(cm.getmessage()); 

in first line use call method in connection manager class there data on socket read correctly , can see printing data, when in next line want set text area string every thing crash. if makes sense use 2 lines of statement inside jdialog in advance

probably blocking waiting written socket. that's why appears crashed, when in fact waiting data. have checked data being written socket?

also, server sockets block until connection received if doing in 1 thread (without executor, e.g)


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -