GUI freeze problem

Hi everyone, im having a new problem with my sockets, i want to implement a button to stop server but because its client/server architecture it is freezed, how can i separate interface, please help :S

Like you say hiwa maybe the problems is the client, i posted in other post, but is not problem to post it again, thanks!!!
import java.net.*;
import java.io.*;
public class RecivirArchivoEncriptado2{
  String fileCharSet;
  String separator;
  Socket clientsocket;
  BufferedReader socketInput;
  String s;
  public RecivirArchivoEncriptado2(){
    fileCharSet = "UTF-8";
    separator = "##$##$##";
    try {
      clientsocket = new Socket("127.0.0.1", 12349);
      socketInput = new BufferedReader
       (new InputStreamReader(clientsocket.getInputStream(), fileCharSet));
    catch (Exception e){
      e.printStackTrace();
   public void doFileGet(){
    try{
      PrintWriter fileOutput
       = new PrintWriter(new FileOutputStream("archivoEncriptado.txt"), true);
      while ((s = socketInput.readLine()) != null){
        if (s.equals(separator)){
          break;
        fileOutput.println(s);
      fileOutput.close();
      fileOutput.flush();
      System.out.println("archivo encriptado recivido");
      fileOutput
       = new PrintWriter(new FileOutputStream("archivoPlano.txt"), true);
      while ((s = socketInput.readLine()) != null){
        fileOutput.println(s);
      fileOutput.flush();
      fileOutput.close();
      System.out.println("archivo plano recivido");
      socketInput.close();
      clientsocket.close();
    catch(IOException e) {
      System.out.println("conection refused port 12345");
  }}

Similar Messages

  • Gui freezes after pressing execute

    hi,
    my program which is done in Swing sort of freezes as soon as press execute until the calling method is finished.
    here is the situation.
    the jFrame contains 2 buttons ( ok & cancel )
    when the ok button is pressed it creates an object & invokes a method in it
    private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {
    var = new Var(patameter list..);
    var.go();this method take some time ( say roughly about 1 min... ) so as soon as I press ok my GUI freezes until that go() method completes.
    this is very annoying, coz I have this new jFrame I need to pop up as soon as OK is pressed so it can show the progress of that go() method. This new window wont even show up sometimes until go() is finished.
    How do I overcome this...
    p.s - I read this thread http://forum.java.sun.com/thread.jspa?threadID=5189368&tstart=0
    But it was a bit confusing to me..
    if you experts can help me out, that would be great. :)
    Cheers

    p.s - I read this thread http://forum.java.sun.com/thread.jspa?threadID=5189368&tstart=0
    Not related to your problem.
    if you experts can help me out, that would be great. :)The Swing experts are found in the Swing forum, where this question is asked and answered all the time.
    You need to use a separate Thread for you long running task so it doesn't block the GUI thread from responding to events.

  • GUI Freezes once socket server is started

    Here's my problem and I am stumped. I have an application which starts a
    socket server and waits for clients to connect. Once connected, the
    server queries XML to the client for display.
    My problem is when I start the server my GUI freezes. I have a simple
    GUI with a start and stop button made in JBuilder. Although the server is running fine and the application works (I can connect and query with my client) the GUI freezes and I have to CTRALTDEL to close the app.
    The method below (see after message) is in the main Application.java class and my GUI is being created in the Frame1.java class. The Frame class has a listener for the button press which calls startServer in
    Application. This was developed in JBuilder Personal edition.
    I keep reading about InvokeLater but not sure if this is what I need. I feel like what is happening is the server starts and the app listens for clients and ignores the GUI.
    Any suggestions would be helpful as madness is setting in.
    Thnaks.
    public static void startServer() {
    try{
    int intPort=9999;
    ServerSocket server = new ServerSocket(intPort);
    System.out.println("Server started...waiting for clients.");
    while(true){
    Socket objSocket = server.accept();
    SocketClient client = new SocketClient(objSocket);
    client.start();
    catch(IOException ioe){
    //dump error
    Here is how the server is being started:
    void button1_actionPerformed(ActionEvent e) {
    try{
    startserver.main(); //make call to start the server
    label2.setText("Running");
    catch (Exception ie) {
    System.err.println("Could not listen on port: 9999.");
    System.exit(-1);
    }

    Swing executes all GUI related code (event handling, painting, etc.) in the so-called event dispatching thread. If you call a blocking method like ServerSocket.accept in this thread, it is blocked and unable to perform further gui tasks.
    public class MyServerThread extends Thread
        private ServerSocket serversocket;
        public void run()
            try
                this.sserversocket = new ServerSocket(9999);
                while(!Thread.interrupted())
                    Socket socket = serversocket.accept();
                    new SocketClient(socket).start();
            catch(IOException ex)
                ex.printStacktract();
        public void shutdown()
            if(this.serversocket != null)
                //closing the socket will cause accept() to throw an exception and therefor quit its loop
                try { this.serversocket.close(); } catch(IOException ignored) {}
                this.interrupt();
                this.serversocket = null;
    //in your GUI class
    private MyServerThread serverthread;
    void startserver()
        serverthread = new MyServerThread();
        serverthread.start();
    void stopserver()
        serverthread.shutdown();
        serverthread = null;
    }

  • My GUI freezes

    Hey, I'm writing a small client/server application and I'm getting a problem, when I start the server the GUI freezes and I haven't been able to solve the problem. Any help will be much appreciated.
    I use 2 classes, Server which handles the serversocket and its connections, and serverInterface which handles the server's GUI.
    Here is the code for the server class:
    public class Server extends JFrame {
         private serverInterface interfaz=null;
         public int fileCant = 0;
         static boolean listening = true;
         private String[][] listFiles = null;
         private int ifiles=0;
         public Server(){
              this.interfaz = new serverInterface(this);          
         public void buttonPressed (int button){
              switch(button){
                case 0: {  try{startServer();}
                           catch(IOException e){System.err.println("Could not listen on port: 7777.");}
                           break;
                         } //se presiono el boton de start
                case 1: {stopServer(); break;} // se presiono el boton de stop
         private void startServer() throws IOException{
              ServerSocket serverSocket = null;
              listFiles = new String[1000][4];
            try {
                 updateVal(1,"0","0",0);
                serverSocket = new ServerSocket(7777);           
            } catch (IOException e) {
                System.err.println("Could not listen on port: 7777.");
                //System.exit(1);
            while(listening){
                 new multiServer(serverSocket.accept(),this).start();
         private void stopServer(){          
              System.exit(-1);
         private void updateVal(int variableUpdate,String ip, String port, int numFiles){
              this.interfaz.updateVal(variableUpdate,ip,port,numFiles);          
         public static void main(String[] args){
                   new Server();
         public void addFiles(Object object, String IP, String Port){
              Vector test = (Vector) object;
              for (int i=0;i<test.size();i++){
                   listFiles[ifiles][0]=(String)test.elementAt(i);
                   listFiles[ifiles][1]= IP;
                   listFiles[ifiles][2]=Port;
                   listFiles[ifiles][3]="online";
                   ifiles++;               
         public void removeFiles(String IP, String Port){
              for (int i =0;i<ifiles;i++){
                   if((IP.equals(listFiles[1]))&&(Port.equals(listFiles[i][2]))){
                        listFiles[i][3] = "offline";
         public DefaultTableModel searchFile(String file){
              DefaultTableModel model = new DefaultTableModel();
              model.addColumn("File");
              model.addColumn("IP Address");
              model.addColumn("Port");
              model.addColumn(" ruta");
              for (int i=0;i<ifiles;i++){               
                   if((listFiles[i][0].contains(file))&&(listFiles[i][3].equals("online"))){
                        String a[]={file,listFiles[i][1],listFiles[i][2],listFiles[i][0]};
                        model.addRow(a);
              return model;          

    And here is the code for the server's Interface:
    public class serverInterface extends JFrame {
         private static final long serialVersionUID = 1L;
         private JPanel jContentPane = null;
         private JPanel panelSouth = null;
         private JButton buttonStart = null;
         private JButton buttonStop = null;
         private Server servidor = null;
         private JPanel panelNorth = null;
         private JLabel labelConnect = null;
         private JPanel panelCentro = null;
         private JScrollPane scrollPanelClients = null;
         private JPanel panelOnlineClients = null;
         private JLabel labelOnlineClients = null;
         private JScrollPane scrollPanelClients1 = null;
         private JTable tablaClients = null;
         private DefaultTableModel model = new DefaultTableModel();
         public serverInterface(Server servidor) {
              super();
              this.servidor= servidor;          
              initialize();
         public void initialize() {
              servidor.setSize(545, 309);
              servidor.setContentPane(getJContentPane());
              servidor.setTitle("Server");
              servidor.setResizable(false);
              /*this.setSize(545, 309);
              this.setContentPane(getJContentPane());
              this.setTitle("Server");*/
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(new BorderLayout());
                   jContentPane.add(getPanelSouth(), BorderLayout.SOUTH);
                   jContentPane.add(getPanelNorth(), BorderLayout.NORTH);
                   jContentPane.add(getPanelCentro(), BorderLayout.CENTER);
              return jContentPane;
         private JPanel getPanelSouth() {
              if (panelSouth == null) {
                   panelSouth = new JPanel();
                   panelSouth.setLayout(new FlowLayout());
                   panelSouth.add(getButtonStart(), null);
                   panelSouth.add(getButtonStop(), null);
              return panelSouth;
         private JButton getButtonStart() {
              if (buttonStart == null) {
                   buttonStart = new JButton();
                   buttonStart.setText("Start");
                   buttonStart.addActionListener(new java.awt.event.ActionListener() {
                     public void actionPerformed(java.awt.event.ActionEvent evt0) {
                         servidor.buttonPressed(0);
              return buttonStart;
         private JButton getButtonStop() {
              if (buttonStop == null) {
                   buttonStop = new JButton();
                   buttonStop.setText("Stop");
                   buttonStop.addActionListener(new java.awt.event.ActionListener() {
                     public void actionPerformed(java.awt.event.ActionEvent evt1) {
                         servidor.buttonPressed(1);
              return buttonStop;
         public void updateVal(int updatedValue,String ip, String port, int numFiles){
              switch(updatedValue){
                 case 1:{  JOptionPane.showMessageDialog(this, "The Server Is Now Online");  //se conecta el server
                            labelConnect.setText("Server Online. Listening on port 7777");
                            buttonStart.setEnabled(false);
                         break;
                 case 2:{ String a[] = {ip,port,numFiles+""};
                           model.addRow(a);                      
                            break;
         private JPanel getPanelNorth() {
              if (panelNorth == null) {
                   GridBagConstraints gridBagConstraints = new GridBagConstraints();
                   gridBagConstraints.gridx = 0;
                   gridBagConstraints.gridy = 0;
                   labelConnect = new JLabel();
                   labelConnect.setText("Server Offline");
                   panelNorth = new JPanel();
                   panelNorth.setLayout(new GridBagLayout());
                   panelNorth.add(labelConnect, gridBagConstraints);
              return panelNorth;
         private JPanel getPanelCentro() {
              if (panelCentro == null) {
                   panelCentro = new JPanel();
                   panelCentro.setLayout(new BorderLayout());
                   panelCentro.add(getPanelOnlineClients(), BorderLayout.NORTH);
                   panelCentro.add(getScrollPanelClients1(), BorderLayout.CENTER);
              return panelCentro;
         private JPanel getPanelOnlineClients() {
              if (panelOnlineClients == null) {
                   GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
                   gridBagConstraints1.gridx = 0;
                   gridBagConstraints1.gridy = 0;
                   labelOnlineClients = new JLabel();
                   labelOnlineClients.setText("Connected Clients:");
                   panelOnlineClients = new JPanel();
                   panelOnlineClients.setLayout(new GridBagLayout());
                   panelOnlineClients.add(labelOnlineClients, gridBagConstraints1);
              return panelOnlineClients;
         private JScrollPane getScrollPanelClients1() {
              if (scrollPanelClients1 == null) {
                   scrollPanelClients1 = new JScrollPane();
                   scrollPanelClients1.setViewportView(getTablaClients());
              return scrollPanelClients1;
         private JTable getTablaClients() {
              if (tablaClients == null) {
                   tablaClients = new JTable(model);
                   model.addColumn("IP Address");
                   model.addColumn("Port");
                   model.addColumn("Files Shared");
                   tablaClients.setEnabled(false);
              return tablaClients;
    }

  • X Server (10.3.9) GUI freezes with spinning wheel

    I have a problem with the GUI interface on an eMac running OS X Server v10.3.9 (Build 7W98, Security Update 2006-006).
    When I login locally (with any kind of user) it ever happens that the GUI freezes during common operations.
    I noticed (or better, it seems) that the problem could be related to the spinning wheel used to graphically inform the user to wait while the operation is progressing. In fact, the GUI freezes (as well as the wheel movement) when I call windows or applications that start the wheel spinning. After less than a couple of seconds everything is frozen except the mouse pointer that, sometimes but not too often, becomes a spinning beach ball. Then it seems it doesn't happen anything more. Only one to ten times, the system restarts after 5 to 10 minutes.
    NOTE WELL that even if the local user is frozen, the server services are working well, without any slowing down.
    I can get out of the problem only if I login as root via ssh with another terminal and launch the classic "shutdown -r now" (of course, also switching off the eMac).
    I've already tried either a permission repair with DiskUtility (booting the system via the original X Server DVD) and running DiskWarrior, but without any results.
    I also tried to unplug the Ethernet RJ45 connector to isolate the unit from the network, but again, no way.
    Any suggestion?
    Thank you very much in advance.
    Regards,
    MrMars96
    eMac   Mac OS X (10.3.9)  

    Hi Jeff,
    thank you for your post.
    What do you consider common operations?
    Browsing folders with Finder, running Software Update, DiskUtility, Server Admin and so on.
    Can you keep the Activity monitor open and see if there
    are any spikes?
    Yes, I can keep the Activity Monitor open (it doesn't have the spinning wheel, and that's another reason I suspect on it or something related to it).
    Sorry for my inexperience, unfortunately I don't know what "spikes" are. I'll surely look for some explanation.
    Have you checked the logs?
    Yes. As far as I saw, there isn't any important error. Have you perhaps any clue to which log should I inspect with big attention?
    Most important, how much RAM do you have. I'd never try an
    OS X Server with less than 2GB.
    Only 512MB. It's a server for 3 people. Mainly for IMAP service and a light Joomla site (so apache+mysql) still work in progress.
    The system worked well for more than a year and half (but Joomla has been installed for 3 months).
    Thank you very much for any kind of support,
    Michael

  • I know how to fix the iTunes 7 / firmware ver. 1.2 freeze problem

    Many of you (like me) are having major headaches because of the new updates that Apple has been releasing (i.e. iTunes 7). So far I only know that this affects the Video iPod, but this could very well fix other models too.
    Here are some symptoms of what the following will fix, and what you most likely have already done to try and fix it.
    - iPod keeps freezing after a few seconds ever since you updated to iTunes 7 and/or iPod software ver. 1.2.
    - iPod will remain in Do Not Disconnect mode even after ejecting or disconnecting
    - A forced reset does not fix it, as it repeats the above.
    - Restoring the iPod through iTunes does not help
    So, here's what to do.
    The old iPod updater software is how you will fix all of this. Unfortunately, because iTunes 7 thinks that it's better and more up to date, it will prevent you from opening the old version of the software if you still have it on your machine.
    So first of all, uninstall iTunes 7.0. (You do not have to remove your library information, just the software.) Restart the computer.
    If you still have the old iPod updater, try it and see if it runs. If it does, read on. If not, skip to the next paragraph. So, if it does run, simply hit Restore and you can go back to a previous version of the firmware. I believe that Apple discontinued the firmware page since releasing iTunes 7. Look around some search engines like Google if you really want the latest firmware.
    Take out the installation CD that came with your iPod. Run it and it should install the old iPod updater along with iTunes 6.x. iTunes 6.x cannot run since iTunes 7 changed your libary's formatting, but that will not be a problem. Run the Restore process in the old updater and it should be alright for you to start loading your stuff on again without problems.
    Since iTunes 7 reformatted your libary listing, iTunes 6 will no longer work. However, you can still use it by reinstalling iTunes 7. Just make sure you do the following.
    TO KEEP THE SAME THING FROM HAPPENING AGAIN
    iTunes 7 is actually alright. It's the updater part of it that will screw up your iPod.
    - iTunes 7 will tell you that a new iPod software version is available when you open it.
    - Check the "Never Ask Again" box and click Don't Install.
    - When you sync your iPod to your computer, NEVER touch the Version section when you're changing your iPod's settings. Everything else is alright to work with.
    - Everything will work fine as long as you never update the iPod's software via iTunes, at least until the programmers can fix this issue in a later release or patch.
    I hope this helps out a lot of you. Pretty lame of Apple to miss something this big during debugging.
    Custom Windows XP

    Listen to this person, he knows exactly what he's talking about. My unit had the freezing problem, the visual artifact problem, and eventually would only show a blank white screen after I had tinkered too long. Luckily I have another computer that I hadn't yet upgraded to itunes 7 and it had the last firmware upgrade before the itunes 7 one. From disk mode I was able to restore it to the previous firmware version, and now the ipod works perfectly.
    I too am almost disqusted with Apple for 1) missing this problem and 2) not letting people know!
    I wonder how many more people are going to have lots of problems so apple can protect their PR.
    Anyways, what would be really helpful would be if someone could upgrade the latest firmware installer before itunes 7 (it's an individual ipod updating program, not itunes 6.xx)somewhere on the internet so users could download it and do away with this evil 1.2 firmware.

  • Nokia C7 freeze problem

    Hello. I use Nokia C7. All works fine but often when I surf the web browser, use skype, search updates and doing many other things my Nokia C7 freeze and dont (cant) resart. Only option to restart the phone is remove and insert battery. How to FIX this problem?

    This problem has nothing to do with applications added or needing software updates. It is purely a hardware problem, there seems to be a fundamental flaw with the design of Nokia phones, and it is very disappointing that they are not more honest about the problem.
    My Nokia C7 seems to freeze frequently when processing CPU intensive processes especially, such as trying to watch videos on the BBC iplayer or Youtube, but can happen anytime. The pattern seems to be with these phones (and the N8) that these freezes happen quicker and quicker as time goes on. It is just not good enough to say take the battery out, which is the ONLY way to reboot the phone, do other phone users of different manufacturers have to do this? Not in my experience.
    I find it incredible that Nokia, with its dwindling share market, can release these phones without having fully tested them properly. You may have gathered that I feel rather disgruntled with Nokia, I have always had Nokia phones but I am now regretting my decision to start a new contract with this phone. I like it and the features, but what point is there in giving you applications such as the Navigation and the iplayer for example if you can't use them because of freezing.
    I will be sending my C7 off for repair next week, in the hope that they have sorted out their hardware issue, but I say beware to anyone else with this phone. If you have had occasional freezing problems, then they will in all likelihood increase as the internal hardware degrades.

  • Fix for Bluetooth Keyboard/Mouse Freeze problem.

    After deleting the following file: /Library/Preferences/com.apple.Bluetooth.plist
    And re-pairing my Apple Bluetooth keyboard and mouse all of my freezing problems have been resolved.

    For what it's worth...
    I have read a bunch of different threads on this. So far I have:
    - downgraded my TimeCapsule (still had problems)
    - Upgraded to 10.5.7 (still had problems)
    - made both the bluetooth keyboard and might mouse "favorites" per http://discussions.apple.com/thread.jspa?threadID=1907901&tstart=30
    - disabled bluetooth in the network panel
    ...and left an old PC mouse connected to a USB port.
    The add as favorites / disable in network panel I have done fairly recently and - so far - no problems.
    YMMV...
    John

  • GUI related problem in solaris 8 02/04

    Hello all,
    I am facing GUI related problem in the software running on solaris when I upgraded from solaris 8 02/02 to 8 02/04.
    The GUI which was working fine on 02/02 was giving some menu selection problem in 02/04. In GUI applications i was unable to select items after double clicking it in solaris 8 02/04 while it was working fine in solaris 8 02/02.
    Are there any O.S. related problem?
    Thanks and regards,
    Ankit

    Wolfgang073 wrote:
    Hi guys and ladys!
    I added the LD_LIBRARY_PATH, Why are you doing that. It's probably a bad idea.
    but the Openwindows not run OK (e.g. start cmdtool window without csh % prompt etc.).That's very possible. Don't make global changes to LD_LIBRARY_PATH (by putting in your login files for example). Instead if you need it to run a particular program, make a wrapper that sets the variable and then calls the program. That will limit the scope of those changes.
    vi .login
    # Erasing LD_LIBRARY_PATH
    setenv LD_LIBRARY_PATH
    # Important Paths set
    setenv LD_LIBRARY_PATH     /usr/ucblib:$LD_LIBRARY_PATHDon't do that.
    Darren

  • I have a question my iphone4s has a problem when updated iOS8 there will be freeze problem i think iOS8 is not supported in 4s!!!!!!!!!

    i have a question my iphone4s has a problem when updated iOS8 there will be freeze problem i think iOS8 is not supported in 4s!!!!!!!!!.
    one more question when i phone5 update with iOS 8.1.2 this iOS supported iphone5???

    Hi Ios 8.1.2 Should work on iPhone 4s / 5 You may have a bug Backup to  cloud over WiFi Then Restore back to Factory  Settings This will make iPhone as new. Use same Apple ID & you will get your Apps & Data back Do Restore over your WiFi. Cheers Brian

  • Refreshed laptop with Win 8.1 DVD - Freezing Problems

    I had freezing problems on my Toshiba and decided to refresh it with full windows 8.1 DVD I purchased separately,
    Toshiba initially had Vista. I bought upgraded to Win 8 pro 64 and then to 8.1 pro 64
    Toshiba didn't provide any restoration discs or anything. Windows 8 refresh wouldn't work, said was missing files and wouldn't accept my Win 8 upgrade downloaded file as a refresh media source. So I went out and bought Win 8.1.
    Refreshed fine without freezing , it deleted every single program on my computer , only left files.
    Now I have 0 programs on my toshiba that still freezes. any help appreciated. 
    my computer specs.
    Toshiba (P500-ST5801) - 64 bit 
    Intel® Core™2 Duo Processor P7350
    ATI® Mobility Radeon™ HD 4650
    2302MB total: 1GB DDR discrete memory + up to 1278MB shared memory w/ATI HyperMemory™ technology

    There are no drivers for your lappy with windows 8 at all,  yes you would get crashes. You can try a bios update, but its to old to even try.
    https://www.microsoft.com/en-us/windows/compatibility/CompatCenter/Home
    http://support.toshiba.com/support/modelHome?freeText=2373403
    I came across some that had your issue in  support toshiba
    http://forums.toshiba.com/t5/Windows-8-8-1/Satellite-Laptop-Randomly-freezes-on-Windows-8/td-p/590812

  • MDD freezing problem can anyone help?

    Hey
    Ive been having quite majer problems with my mac. It crashes regularly and im not sure why. It will freeze any time even when running safari and has been known to do it 5 times in one day!!! These are the possable problems i can think of.
    1. Hardware problem though i have tested all my ram with memtest and the apple hardware test Cd and it says its fine.
    2. i was thinking my mac could be overheating, can this cause it to crash? At the moment its is running at 58.3 *C and all im running is safari, im not even running any widgets. The CPU fan is almost always on (though not at full speed) even when running just safari and i think the barings in the fan could be on their way out because it doesnt sound like the fan is running smoothly at all.
    Would it be worth buying a new fan and getting a copper heatsink to bring the temperature down? Im not sure if i should do this in case it doesnt work as it well set me back over £100, if there is no way of finding and fixing the problem i was thinking of getting a macpro though as im a student it will take me about a year to get my hands on that kind of cash
    If it helps these are the specs of my mac:
    Powermac G4 MDD 1.25DP
    1.5GB RAM
    OSX 10.4.8 (im running this beacuse 10.4.9 is incompatable with final cut HD 3.0)
    GForce 4MX
    1X 80GB PATA
    1X 200GB PATA
    ASUS DVD R (put in a week ago though there were problems with crashing before this)
    Can anyone give me some advice on what to do?
    Thanks
    Tom

    Assuming you are reading that CPU temperature with Temperature Monitor software, the specified upper limit for your CPU is 62 degrees C. Therefore, 58.3 degrees shouldn't be causing your freeze problems. Look for other possibilities.
    Not that this is your problem, but a friend's upgraded Sawtooth G4 started having freeze problems in Tiger after running several months without any problems. Turns out he had his old DVD-ROM in a Firewire box connected via Firewire to his G4 and the unit started crapping out. Still not sure if the core problem is the DVD-ROM drive or the Firewire case or the Firewire connection, but disconnecting the unit ended his suddenly arising freeze problems.
    Try using your MDD G4 with all Firewire and USB (except the keyboard and mouse of course) stuff disconnected from the tower case. If that ends your freezes, it will be a simple process of elimination to find the offending USB or Firewire item.
    Good luck,
    Carl B.

  • MBP running Leopard 10.5.3 and W XP  with freezing problems

    Hello everyone
    Im running Leopard 10.5.3 and bootcamp 2.1 on my MBP. I am able to run xp pro only once in a blue moon. Ever since I started using bootcamp with windows xp sp2 the computer freezes up. I always have to reboot the computer in order to use the windows side of my mac. I dont know what the problem is. I decided to upgrade to version 10.5.3 and bootcamp 2.1 to see if the freezing problem goes away and it did not help.
    95% of the times the computer freezes when Im using it, or when I start boot camp. I only use windows to play games and use some military software since Im a soldier in the army. Im currently deploy to Iraq and not very knowledge in computers. I have reinstalled the apple drivers with the leopard cd because the keyboard was not working properly and it worked fine for a few minutes and then it decided to crash again. It happens very regularly, sometimes Im playing a game for hours and hours and it work great, without problems. Im really lost here. I have read the post about this problem but they really gives me no solution to my problem.
    Any suggestions will be appreciated.
    Leo

    I have 10.5.3 on an external, and a 410 that I use as a backup device. After reading this post I thought I'd check it for myself. Installed the 1.8.3-6BETA, and fired it up. Everything worked, I had inputs and outputs, even recorded a little something just to test. Started playing some itunes, and about 10 minutes in, the 410 dropped out. I've tried restarting the computer and device several times, and even though the 410 shows up in my sys prefs and Logic prefs, I can't get any ins or outs out of it, and the 410 interface shows now activity on any of the channels.
    Bee Jay -
    I'm going to try this tomorrow, but here's a thought.....the 1.8.3-8 says in the release notes that it has new firmware for the device. I know you're using the previous beta driver, but is it possible that if you installed the -8 driver and then downgraded to the -6BETA, that the device has retained the firmware from the -8 release, which is working with the previous BETA release and 10.5.3?
    Dunno....just a thought. I was SO excited to finally get Leopard onto my internal, but now it looks like I'll have to wait a bit more. Bummer!

  • GUI Freezes

    I want the hex code of a file to be generated on button press from GUI. Right now, the code works fine for small files but for large files, the GUI freezes.
    class SW extends SwingWorker<String,Void>{
         File finsw;
         public String doInBackground() throws Exception
         String hex="";
         String hex2="";
         finsw=new File(jt.getText());
         BufferedInputStream in = new BufferedInputStream(new FileInputStream(finsw));
         int b,i=0,c=0;
         int count=0;
         while ((b = in.read()) != -1)
         { c++;
         try { hex=Integer.toHexString(b);
         hex2=hex2+hex;
         } catch(Exception e){System.out.println("Example5.java"+e);}
         if (hex.length() == 1)
         hex = '0' + hex;} //end of func
         in.close();
         return hex2;
                             //String kfrmsw=Example5.displayBinaryFile2(finsw);
                             //return kfrmsw;
    }// end of doInBackground
    protected void done()
    { try { String m=get();
    System.out.println(m);}catch(Exception e) {System.out.println(e);}}
    }//end of class SW
    This is the main function
    public static void main(String args[])
         //new gui();
         SwingUtilities.invokeLater(new Runnable() {public void run() {new gui();}});
         JFrame frame = new JFrame("VRDS");
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.add(new gui());
         frame.pack();
    frame.setVisible(true);
    }//end of main
    This is the EDT
    public void actionPerformed(ActionEvent e) {
    SW worker=new SW();
    if (e.getSource() == jb)//the scan button
    // read file to be scanned
         String k="";
         final File f=new File(jt.getText());                  
         try {
              worker.execute();
              System.out.println("Worker.get="+worker.get());
    } catch(Exception re) { System.out.println("Exception from read file to be scanned"+re); }            

    class SW extends SwingWorker<String,Void>{
         File finsw;
         public String doInBackground() throws Exception
         String hex="";
         String hex2="";
         finsw=new File(jt.getText());
         BufferedInputStream in = new BufferedInputStream(new FileInputStream(finsw));
         int b,i=0,c=0;
         int count=0;
         while ((b = in.read()) != -1)
         { c++;
         try { hex=Integer.toHexString(b);
         hex2=hex2+hex;
         } catch(Exception e){System.out.println("Example5.java"+e);}
         if (hex.length() == 1)
         hex = '0' + hex;} //end of func
         in.close();
         return hex2;
                             //String kfrmsw=Example5.displayBinaryFile2(finsw);
                             //return kfrmsw;
    }// end of doInBackground
    protected void done()
    { try {
    String m=worker.get();
    System.out.println("M:"+m);
    }catch(Exception e) {System.out.println(e);}
    }//end of class SWThis is the main method
    public static void main(String args[])
         //new gui();
         SwingUtilities.invokeLater(new Runnable() {public void run() {
    //new gui();
         JFrame frame = new JFrame("VRDS");
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.add(new gui());
         frame.pack();
            frame.setVisible(true);
    }//end of mainThis is the actionperformed method
    public void actionPerformed(ActionEvent e) {
    //Coding for Scan Button goes here
         if (e.getSource() == jb)
    // read file to be scanned
         String k="";
         final File f=new File(jt.getText());                  
         try {
              worker.execute();
              } catch(Exception re) { System.out.println("Exception from read file to be scanned"+re); }            I want the hex code of file selected from the GUI. For large files, still no output is produced. Also, after generating hex code for 1st file, no hex code is being generated for the second file.

Maybe you are looking for

  • Safari encrypted webpage doesn't open

    recently certain pages in Safari do not load and the URL show a gray lock that when clicked says Safari is using an encrypted connection to [name of site].  how do I get the pages to load?

  • How do I delete pages in Sections?????

    I just got done designing a page in Pages and now I want to duplicate the page (page 1) but every time I highlight Page 1 in the thumbnail section and go up and click on duplicate it makes a blank Page 2 under it (in a section) and then makes a dupli

  • Oracle 9i with WebLogic 6.0. Is it possible?

    According to the "Platform Support" page on BEA website (http://www.weblogic.com/platforms/index.html#jdbc) it seems like WL 6.0 doesnot support Oracle 9i connectivity. Am I correct in assuming that? Is there an updated version of Oracle Type 2 drive

  • What is best performing approach to report building in my case?

    Hi all, I want to know what is the best performing approach in the case of an overload of the system, understood as large number of concurrent operations. Each operation is a query that, in most cases, returns a large amount of data. I am interested

  • Firefox saved an incorrect password. I don't know how to undo.

    There is a site called "Book Movement" which I had to be reminded that the user name is refuge and the password is cedar key. When I input the password, Firefox ignores the space, and I am shut out. Additionally, when I went to set up an account with