Problems with WRT-320N

I recently left town for about a week and when I came back and attempted to stream media to my PS3, the performance was abysmal.  I restarted my media server but this did not fix things.  A reboot to the WRT-320N was necessary to restore performance.
Not exactly sure what the issue is, but would be happy to help someone debug this, as this is clearly a deficiency in the firmware that linksys provides.  I am running Firmware
Version: 1.0.03 build 010 Jul 24, 2009
thanks,
asher

That sounds exaclty the same as my problem. Maybe you can try the tips in my topic about this? Until now those did not work for me, but I would very much want to know if they work for you.
See: http://forums.linksysbycisco.com/linksys/board/message?board.id=Wireless_Routers&thread.id=153780

Similar Messages

  • Internet Connection Problem with WRT-54GL

    Hi there Folks, I recently bought a Linksys AG-241 gateway and a WRT-54GL Wireless Router. The Gateway works seamlessly by itself through my laptop, but now that I have got all of the glitches worked out in the Intel Wireless card in my Dell Inspiron laptop and finally got the thing to work and receive a signal from the W/Router, I find I can't access the internet (or at least can't load any pages, once I'm past the set-up page). The Gateway has an IP addy of 192.168.1.1 and the Router has an IP address of 192.168.2.1. What on earth have I mucked up this time?. If you need any more info, please by all means ask. I was really stoked that the wireless card finally works, and now this has bought me back down to earth. Any help you guys can give me would be most gratefully recieved. Cheers, Mike.

    hi try changing routers IP to 10.10.10.1, also try reducing MTU to 1452...check whether it makes any differnce or not.

  • Problems with wrt 120n

    hi,
    My pc is windows 7ultimate and my laptop is vista ultimate. the router is connecting fine to the pc. as i try to connect to the laptop it keeps saying unidentified network and local access only. i tired different things but nothing seems to work. it will work only when there is no password on the wireless.
    pls help. 

    As per the scenario you explained that while connecting the laptop wirelessly it keeps saying unidentified network and local access only.... You have to upgrade the latest firmware on the Router which can be downloaded from the CISCO website (homesupport.linksys.com).......So for better connectivity reset the Router and configure it again as per the ISP ( Internet Service Provider ) setup...
    Then do the Wireless Settings as per your requirement.....As far as wireless channel is concern Radio Band as Standard 20 MHz only and Standard Channel to 6,9,11...Under Advanced Wireless Settings change Beacon Interval to 75, Fragmentation Threshold to 2306, RTS Threshold to 2307...
    After doing all these settings power cycle the whole network again.....If there is any anti-virus or firewall disable them all as well...Certainly these settings will help you....

  • I have been having problems with my iPod touch and my WRT...

    I have been having problems with my iPod touch and my WRT54G router. I am so frustrated right now because after following the various steps mentioned in one of these threads, following Earthlink's prompts, and speaking with Apple, my iPod touch will still not work. It is connected to the internet but will not download the pages. It is quite frustrating. I have changed from WPA to WEP, I switched the 4th Generated key to the 1st. I've disabled this, enabled that. I've done just about everything. I updated the firmware. I made the switch from a partial bridge to a full bridge. Still nothing seems to work. Does anyone have any other suggestions? The one thing I have not done is enter the Apple code into the iPod which searches for website...-- I cannot access the internet with my iPod so this web address does not work. If anyone has been successful, will you please give me step by step instructions? Yesterday I was on the phone with Linksys for about an hour. Before that with Apple for about an hour and before that with Earthlink. How it is that I can walk into a Bread Co. or Apple Store and immediately connect to the internet with my iPod but I can't in my own house?? Everyone seems to think it is someone else's problem so I've gone around and around. Not one of the Linksys support personnel suggested I look here on this community forum. I had to pay the $9 fee to have advanced Linksys help but still my iPod does not work and when I called back, the man I spoke with seemed to think the case was closed because my PC, Laptop, and iPod are connected to the internet -- the iPod just won't download the webpages or get mail. My iPod's IP address begins with 192. I would appreciate any help on this matter
    Message Edited by AlliW on 10-02-2008 02:06 PM

    I had the same issues with my iPod touch & iPhone. It's a known issue with the touch & Linksys G routers. Go into settings on the touch & do the following.
    1. Settings - wifi - linksys
    2. Erase your DNS settings & input same numbers as in router
    Settings.
    3. Http proxy should be
    in off position.
    4. Close out & open safari you should now have a wireless
    connection.

  • Problems with ASIO on multiple Audigy 2 ZS cards

    G'day,
    I've been using an Audigy 2ZS PCI for a couple of years now with great success. I convert old audio recordings to various digital formats using a couple of applications (mainly Adobe Audition 1.5 & 2.0).
    Recently, my workload has increased to the point where I needed one card to just record at high res, and another card to handle just playback and general Windows bells & whistles without impacting the performance of the recording.
    I installed a second 2ZS, it was detected by Windows, etc, and I set it up so Windows uses one card (identified as A800) for all its stuff, and the second card (B000) is used only for ASIO recording.
    That's where the nightmare started. I've uploaded and installed the May 2006 Creative driver update, but I still suffer from a number of problems, some related to Audition, some not.
    The least annoying problem is that all the Creative drivers seem to identify only a truncated version of the ID string. So for example, in various applications, I see "SB Audigy 2ZS [B0 -1" or "SB Audigy 2ZS [A8 -5". This is annoying but not showstopping.
    The biggest problem is getting applications to correctly interact with the Creative Labs ASIO driver and enumerator. Most applications (Nero, Audition, Premiere Pro) can "see" the ASIO driver, but when it's selected, it may not work at all, or may work from one or the other sound card, without any clear indication of which card is selected.
    I'm sorry if this sounds generic, but I've spent a week with the Adobe folks, who simply ended up telling me "it's a problem with the CL drivers", and most forums I frequent say the same thing, and the specifics vary from application to application, but at the core, CL drivers are just not working properly with the system when two cards are installed.
    By way of example, using ASIO4ALL has fixed many of the card selection problems, but even there, sometimes the inputs of one card are disabled, sometimes the other card, and in the middle of a recording session (line in jack, 44.1k/16 bit), the input waveform slowly biases down to -2V and then all I get are inverted samples - quiet appears as max. value samples, while valid audio appears as -2V samples! If I put the audio line into the other card, it plays just fine (I know what I'm doing WRT grounding and line levels, etc).
    This system has run essentially non-stop since September 2005, and I guess it collected a lot of software crud, so I bit the bullet and performed a clean reinstall of Windows XP and updated every driver I could. Some problems have since changed for the better (i.e. clicking on the configure button of the CL ASIO driver no longer bluescreens or displays an empty window), but the problems described above still happen all the time.
    I was wondering if other users have seen the same or similar problems, and if so, what has worked for you?
    The system is a Gigabyte 81PE1000Pro2, PCI bus, 3.2GHz P4 with HT enabled, 2G physical RAM, and a 1.5Tb RAID disk system.
    Recording when a single sound card (either of the cards works beautifully on its own) is perfect; just when both cards are installed, everything gets confused! Even the WDM drivers don't correctly identify or manage the routing of inputs and outputs reliably.
    Sorry to go on about this. If anyone can offer constructive suggestions (I define "constructive" as not telling me to "buy another type of card" or (as one poor soul suggested) telling me that multiple PCI sound cards are not supported under Windows), I would be most grateful.
    Thanks and regards,
    Peter

    G'day Jutapa, thanks for looking at this!
    Yeah, I got all the possible ASIO drivers listed, one CL ASIO driver is listed for each card, and I have spent much time trying different configurations of card order, I/O port order, direct sound enabling/disabling, timesync enable/disable, etc.
    The problem for me with the CL ASIO drivers is that it limits me to 48/96k sampling only. That is not acceptable, because I need to sample at 44.1k for "straight" conversions to CD, or 192k/24-bit for archival purposes (used for extremely old or fragile recordings), so I end up with large files that nearly always need to be resampled to 44.1k, or saved permanently at 192k/24-bit. Typical filesize is 650Mb, largest so far is 5.66Gb - so that's an awful lot of time spent downsampling or pointless upsampling. I'm starting to think that the problems I'm experiencing may be due to sampling at "non-native" ASIO or WDM rates. I haven't tried sampling at 48/96k to see if that "fixes" the problem...
    Using the WDM wrapper drivers (I don't know if these are provided - or supported! - by Creative or Adobe) results in randomly disabling one or the other Audigy. At that point, the only way to recover functionality for the disabled card is to reboot. Sometimes only the inputs are disabled, sometimes only the outputs, sometimes both. There is no pattern that I can see or duplicate.
    Both cards appear to work fine under Windows. I can define either card as the default recording or playback device, and I can define one card as the default recording and the other as the default playback, any combination works fine. However, any application that uses WDM drivers to access the cards also get confused when a card's inputs suddenly become disabled! This does not appear to happen when Windows is the only application using the cards.
    Specifying "use preferred devices" in Windows does disable the non-selected card (or card input or output if I specify different cards for input and output) in other applications.
    The problems are much worse when I try to use any ASIO drivers to access the cards. This problem with ASIO appears regardless of the application I use.
    I have installed ASIO4ALL, and it finds and configures the cards without any problems in ALL applications - but if I'm recording (with no other applications or drivers or tray applications loaded or active), when I stop recording and restart, the input I was just recording from appears disabled! If I open the ASIO4ALL configuration window, one or both Audigy cards will have their inputs disabled, or both inputs AND outputs disabled. This doesn't happen all the time, and my workaround is not to stop recording once I've started. Not a good workaround! I do realise that ASIO4ALL does fiddle around with the sample rates in the background, but at least when it works, I get a single clean sample without having to do all the resource-intensive resampling later. Maybe it's 6 of one, 1/2 dozen of the other...
    I understand and appreciate that perhaps CL never intended to provide software functionality for more than one Audigy on any given PCI bus/bridge. I just don't get why the drivers appear to work natively under Windows (I'm assuming that Windows just uses WDM access) but not with any other applications.
    I will try and do some testing with "native" ASIO sample rates (i.e. 48/96k) and see if that fixes some or all of the problems. My concern here is really that my expectation is that the drivers, once identified and enabled, should not suddenly disable themselves in all applications (by whatever mechanism), regardless of what sample rates are specified. But maybe that's too much to expect.
    BTW, this happens with any combination of 2 of my 3 Audigy 2ZS cards, each of which works perfectly on its own with ASIO and WDM drivers. So it's definitely a multiple card issue.
    The workaround that has been suggested is to purchase a different vendor's card : but there are so few cards that I can use to sample at the resolutions I require, and they are all so bloody expensive, that's why I've committed so much to CL Audigy 2ZS.
    I'll get back to you once I've tried a few days working at the "standard" ASIO sample rates. Thanks again for taking the time with this stupid and unusual problem!
    Kind regards,
    Peter

  • Problem with connetction to wrt54g2 via wireless connection with WPA/WPA2 & wireless MAC filter

    Hello,
    I'm Alexey from Novosibirsk, Russia.
    I have a problem with connection to wrt54g2 from my DELL D630 notebook via wireless connection. When I setup WPA/WPA2 in wireless security and wireless MAC filter I can't connect from notebook to WRT - in Windows I see that dynamic IP address from WRT is not assigned. When I switch off security mode to disable always OK, but I need a wireless security between DELL and WRT.
    Connection via cable Ethernet port is OK.
    Can You help me?

    Have you tried the different laptop...?
    Download 1.71 MB the firmware for WRT54G2 v1 and reflash the router's firmware.After reflashing/upgrading the router's firmware,reset the router for 30 seconds and reconfigure the router from scratch. 

  • I'am experiencing inimaginable problems with my thunderbird under Windows 8.1 platform, can you fix it???

    I was wondering about all the crashing problems of my thunderbird performnance and when I finally when straight to Task Manager I found out it is a 32 bit version.
    The thing is... when downloading it right from the site, it wouldn't give you the chance to choose between 32 or 64 bit .... It just starts to download !!!! I imagine there is not a 64 bit version !!! Right??????
    Mine is Windows 8.1 and experiencing many many problems with it, please fix it .... It's really annoying

    ''I found out it is a 32 bit version.''
    Wrt 32 vs. 64 bit see http://kb.mozillazine.org/64_bit_builds
    ''when downloading it right from the site''
    What site?
    Always download Thunderbird from https://www.mozilla.org/en-US/thunderbird/
    ''experiencing many many problems''
    You'd certainly need to explain what those problems are.
    ''all the crashing problems''
    Please provide a crash ID.
    https://support.mozilla.org/en-US/kb/Mozilla-Crash-Reporter#w_viewing-crash-reports

  • Many problems with a fresh installation on a DELL LAtitude E5510

    Hi all,
    i'm writing to let you know about so many problems and issues I'm experiencing with my new laptop. I love arch, but i think this is the pc which gave me the hugest number of problems. Most of them I think are arch-related, but some not...or maybe i don't know...probably all of them are because of my stupidity
    1
    the first was the problem with the keyboard. I was not able to use properly some chars like @#e in many applications (firefox, writer, kate (in kde)). TTY shell was properly working. Keyboard has been properly set in rc.conf and with setxkb. I partially solved installing gnome (and since here same problem) then i installed gnome extra and it seems to work now. I tested fedora and ubuntu live version and there wasn't any problem. I opened a thread for this
    2
    the problem related to shutdown is discussed here and is still unresolved. I don't know why, but i can't shut it down, it only restarts, also after the message "POWER OFF". No problems with ubuntu and fedora from the live cd. If i select shut down, i can correctly shut down
    3
    the third is a microphone problem. I tried with cited distros, but i'm not able to record anything and therefore no skype conversation is possible. I can hear but cannot be heard. I have 2 mics, a built' in and an exetrnal jack. I tried many combination with line in, front mic...but nothing to do.
    4
    i created a dual boot with win 7. from disk utility in gnome i saw that the windows partition is sda3. then i set the menu.lst with rootnoverify hd(0,2) but it gives me an error message saying: no MBR boot loader is installed. I'm very confused. so many problem on only a machine ( a dell brand new machine - people say dell is very compatible with linux...but...i'm not pretty sure)
    I wanted just to signal this situation. I don't knwo if you can help me. I don't know anymore what to do.
    Thanks a lot for your patience and your help!

    lang2 wrote:Have you resolved any of these issues? I probably will try to install Arch on the same laptop. This is a warning for me.
    Hi,
    well, i think that if you want to use all functionalities with this laptop, no linux distribution will give you the full support! I experienced all those problems, but i solved in some way some of them. Read the following!
    1
    the first was the problem with the keyboard. I was not able to use properly some chars like @#e in many applications (firefox, writer, kate (in kde)). TTY shell was properly working. Keyboard has been properly set in rc.conf and with setxkb. I partially solved installing gnome (and since here same problem) then i installed gnome extra and it seems to work now. I tested fedora and ubuntu live version and there wasn't any problem. I opened a thread for this
    This issue has been solved when i re-installed AGAIN arch! i don't what was before...but now, i'm writing from here, with GNOME. I don't know, but the only difference wrt the previous gnome installation was the partition scheme: i used a partition for boot, one for /var, one for home, etc...as explained in beginner's guide. I don't think it's related, but it's the only difference i can remember.
    2
    the problem related to shutdown is discussed here and is still unresolved. I don't know why, but i can't shut it down, it only restarts, also after the message "POWER OFF". No problems with ubuntu and fedora from the live cd. If i select shut down, i can correctly shut down
    this issue has been solved after one of the last system update. Actually i'm able to shut down and reboot correctly.
    3
    the third is a microphone problem. I tried with cited distros, but i'm not able to record anything and therefore no skype conversation is possible. I can hear but cannot be heard. I have 2 mics, a built' in and an exetrnal jack. I tried many combination with line in, front mic...but nothing to do.
    This is still unresolved!! I also asked in alsa irc-channel, the guy gave me instructions to perform some tests, and at the end, he said that he never heard about that chipset!
    Actually, sound is fine, mic doens't work. I tried ubuntu, fedora (both in live cd mode) and with all of them i'm not able to record any sound from mic. The strange thing is that in volume control there are controls for mic, but even if you enable them, you're not able to record. If you close and re-open volum control, they are again disabled. Nothing to do actually!
    4
    i created a dual boot with win 7. from disk utility in gnome i saw that the windows partition is sda3. then i set the menu.lst with rootnoverify hd(0,2) but it gives me an error message saying: no MBR boot loader is installed. I'm very confused. so many problem on only a machine ( a dell brand new machine - people say dell is very compatible with linux...but...i'm not pretty sure)
    I don't know why, but if I set hd(0,1) it works!
    MORE1:
    the SD-card reader, simply doesn't work! checked on internet i seems to be incompatible with linux!
    MORE2:
    i'm not able to make the touchpad working with side scroll! I didn't work a lot on it, as i'm using the external mouse...but this is an other issue. Just configuring xorg file, it doens't work.
    Let us know if you are able to solve any of these.
    Good luck

  • Problems with WRT350N Router

    I have had a WRT350N router since they first came out and have had the same problems with it the entire time. I have 2 systems with static IP's, 1 wireless B (dhcp) 2 wireless G (DHCP), and 4 wired devices. (1 Gigabit, 1 10 Base, and 2 100 Base)
    1. After the unit has been powered on for a while (a day or so) The DHCP server quits giving IP addresses. (DHCP server unreachable messages)
    2. Unable to use the restore config feature. (file uploads and seems to apply yet no changes are actually made.)
    3. QOS locks up router. If I try to set up QOS the router has to be reset to factory defaults.
    I have kind-of just dealt with it, but the DHCP thing is really bothersome. I have to go in the room with all of my network equipment and power cycle the thing to get an internet connection, that raises the possibility that I will have to reset the other devices.

    I am seriously reconsidering returning my WRT350N for another N-based router.   The current firmware is not stable.   I have had a WRT54G V1 and WRT54G V5 for years and never had a signel issue.    Just to make sure I didn't get a bad unit I returned for another so I know it isn't hardware related.
    1) DDNS not updating.  This has always worked on my WRT54G's without issue
    2) XBOX 360 wouldn't stay connect to Live.   Changing MTU size seems to 1365 make more stable
    3) Storage support works for a while and then stops or randomly freezes unit.  
    4) FTP changes require unit to be manually rebooted for changes to take effect.
    Really hope a new firmware release is soon.  I love the features of the 350N but
    it is not a very stable router at this point.   If DD-WRT releases a firmware that has the storage gui enabled might take a look there but at this point I am frustrated with the unit.
    Message Edited by GAH1068 on 03-30-200707:02 AM
    Message Edited by GAH1068 on 03-30-200707:02 AM

  • Big Problems with a WRT54GS

    I recently purchased a WRT54GS V5, and have the following issues: No wireless access, if I do a site survey with the PC that has a wireless card no access point is found. I have a wireless game adapter that also will not associate. If I only have my pc connected via cable it functions OK. If I connect my Ximeta external drive to another port, within 5 minutes nothing works, the router won't even respond to a ping. The weird thing is I assumed the router had failed and replaced it with a new one. Same problems. If I connect the PC to the cable modem directly everything works fine. I have put my old BEFW11S4 back into service, but I am at a loss what to do. Help!

    ALL WRT54G v5/v6/v7 and GS v5/v6 run on VxWorks. Linksys will not own upto there being problems with this Operating system and the lack of ram/hardware that v1-v4 of the G and GS units had.
    Fortunetly, people have had enough and actually made their own Bootloader to make the units now run on Openwrt and DD-WRT 3rd party firmwares.
    more information here:
    WRT54G/GS v5 and V6 can now be flashed to linux without JTAG!!!Message Edited by linksysinfo on 06-29-2006 10:01 PM
    Regards Simon
    NAS: TS-459 Pro - 3.6.1 Build0302T - 4 x 1TB Samsung HD103SJ : EXT4 - APC ES 700VA UPS
    QPKG: WordPress 3.4, TwonkyMedia 6.0.39 QPKG - Zenphoto1.4.2.1 [7802] - phpMyAdmin v3.3.10
    Network: Netgear DG834G V4.01.40 - DGTeam Rev. 0849 -> Cisco RV220W 1.0.4.13, Cisco SLM2008, Dlink DSM-520, Xbox360

  • Has WRT54G problem with DynDNS been fixed yet?

    The DynDNS.com web site lists some problems with the WRT-54G built-in DynDNS client. See http://www.dyndns.com/support/kb/linksys_wrt54g.html under the section "The Bad".
    The biggest issue is that the router will not update the server once every 28 days if the IP address does not change. If accounts are not updated, DynDNS deletes the host account. Their suggestion is to use a paid service. Ideally, this could be fixed in the firmware so the router sends out an update every 28 days even if the IP address never changes.
    The DynDNS page is dated January 2005. Has this issue been fixed in the WRT54G firmware in the last three years? I was unable to find the change log for the stock WRT-54G firmware.
    I'm setting up a new router for someone else and they need Dynamic DNS. I know I could pay extra for a WRT54GL, install 3rd party firmware, and eventually find a DynDNS client and service pair that works right. If this bug has been fixed, I would prefer to buy the cheaper 54G, and just stick with the stock firmware to save the extra effort debugging time.

    We haven't had nay reports of issues with RabbitTV. All I can say is update to Firefox 22 and give it a try.

  • Problem with function "DBConnect" in TestStand/LabWindows

    Hello, good day.
    I'm having some problems with the function DBConnect that I'm using in a personal function inside a DLL.
    I have made a function called GetSensor which I know it works because I have used it and tested it in the LabWindows enviroment.
    His function is return the value of some element in my database according of his input parameter, just that.
    My problem comes out when I tried to use that same function in TestStand, it seems that the DBConnect cannot work as in the same way of when it is used from LabWindows because always show a warning message, which is display only when the values of iHdbc are iHdbc==-11 or  iHdbc==-10.
    The softwares that I'm using are:
    I know TestStand is opening the function from my DLL becasuse it always get in, but did not pass the part when try to connect to the database.
    I think this could be a compatibility issue between LabWindows and TestStand, but I do not find where can I modify some options to fix this problem.
    Thanks in advance. Any help you could give will be welcomed.

    Hi,
    Looking at the code i dont see any issue wrt Teststand interface.
    The variable passed from TestStand to CVI code is not used to connect to DB.
    When you say it works fine with CVI only - did you try to build a  CVI application on the same machine with the same code and try?
    If the CVI application also gives the same error then you need to install a CVI addon SQL toolkit for DB to work.
    Hope this helps.
    Ravi
     

  • A problem with threads

    I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
    Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
    My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
    Thank you in advance,
    Lefty

    This was one solution from the socket programming forum, have you tried this??
    public Thread MyThread extends Thread{
         boolean active = true;          
         public void run(){
              ss.setSoTimeout(90);               
              while (active){                   
                   try{                       
                        serverSocket = ss.accept();
                   catch (SocketTimeoutException ste){
                   // do nothing                   
         // interrupt thread           
         public void deactivate(){               
              active = false;
              // you gotta sleep for a time longer than the               
              // accept() timeout to make sure that timeout is finished.               
              try{
                   sleep(91);               
              }catch (InterruptedException ie){            
              interrupt();
    }

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Problem with threads running javaw

    Hi,
    Having a problem with multi thread programming using client server sockets. The program works find when starting the the application in a console using java muti.java , but when using javaw multi.java the program doesnt die and have to kill it in the task manager. The program doesnt display any of my gui error messages either when the server disconnect the client. all works find in a console. any advice on this as I havent been able to understand why this is happening? any comment would be appreciated.
    troy.

    troy,
    Try and post a minimum code sample of your app which
    does not work.
    When using javaw, make sure you redirect the standard
    error and standard output streams to file.
    Graeme.Hi Graeme,
    I dont understand what you mean by redirection to file? some of my code below.
    The code works fine under a console, code is supposed to exit when the client (the other server )disconnects. the problem is that but the clientworker side of the code still works. which under console it doesnt.
    public class Server{
    ServerSocket aServerSocket;
    Socket dianosticsSocket;
    Socket nPortExpress;
    ClientListener aClientListener;
    LinkedList queue = new LinkedList();
    int port = 0;
    int clientPort = 0;
    String clientName = null;
    boolean serverAlive = true;
    * Server constructor generates a server
    * Socket and then starts a client threads.
    * @param aPort      socket port of local machine.
    public Server(int aPort, String aClientName, int aClientPort){
    port = aPort;
    clientName = aClientName;
    clientPort = aClientPort;
    try{
    // create a new thread
    aServerSocket = new ServerSocket(port) ;
    // connect to the nPortExpress
    aClientListener = new ClientListener(InetAddress.getByName(clientName), clientPort, queue,this);
    // aClientListener.setDaemon(true);
    aClientListener.start();
    // start a dianostic port
    DiagnosticsServer aDiagnosticsServer = new DiagnosticsServer(port,queue,aClientListener);
    // System.out.println("Server is running on port " + port + "...");
    // System.out.println("Connect to nPort");
    catch(Exception e)
    // System.out.println("ERROR: Server port " + port + " not available");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Server port " + port + " not available", JOptionPane.ERROR_MESSAGE);
    serverAlive = false;
    System.exit(1);
    while(serverAlive&&aClientListener.hostSocket.isConnected()){
    try{
    // connect the client
    Socket aClient = aServerSocket.accept();
    //System.out.println("open client connection");
    //System.out.println("client local: "+ aClient.getLocalAddress().toString());
    // System.out.println("client localport: "+ aClient.getLocalPort());
    // System.out.println("client : "+ aClient.getInetAddress().toString());
    // System.out.println("client port: "+ aClient.getLocalPort());
    // make a new client thread
    ClientWorker clientThread = new ClientWorker(aClient, queue, aClientListener, false);
    // start thread
    clientThread.start();
    catch(Exception e)
    //System.out.println("ERROR: Client connection failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client connection failure", JOptionPane.ERROR_MESSAGE);
    }// end while
    } // end constructor Server
    void serverExit(){
         JOptionPane.showMessageDialog(null, "Server ","ERROR: nPort Failure", JOptionPane.ERROR_MESSAGE);
         System.exit(1);
    }// end class Server
    *** connect to another server
    public class ClientListener extends Thread{
    InetAddress hostName;
    int hostPort;
    Socket hostSocket;
    BufferedReader in;
    PrintWriter out;
    boolean loggedIn;
    LinkedList queue;      // reference to Server queue
    Server serverRef; // reference to main server
    * ClientListener connects to the host server.
    * @param aHostName is the name of the host eg server name or IP address.
    * @param aHostPort is a port number of the host.
    * @param aLoginName is the users login name.
    public ClientListener(InetAddress aHostName, int aHostPort,LinkedList aQueue,Server aServer)      // reference to Server queue)
    hostName = aHostName;
    hostPort = aHostPort;
    queue = aQueue;
    serverRef = aServer;      
    // connect to the server
    try{
    hostSocket = new Socket(hostName, hostPort);
    catch(IOException e){
    //System.out.println("ERROR: Connection Host Failed");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort Failed", JOptionPane.ERROR_MESSAGE);     
    System.exit(0);
    } // end constructor ClientListener
    ** multi client connection server
    ClientWorker(Socket aSocket,LinkedList aQueue, ClientListener aClientListener, boolean diagnostics){
    queue = aQueue;
    addToQueue(this);
    client = aSocket;
    clientRef = aClientListener;
    aDiagnostic = diagnostics;
    } // end constructor ClientWorker
    * run method is the main loop of the server program
    * in change of handle new client connection as well
    * as handle all messages and errors.
    public void run(){
    boolean alive = true;
    String aSubString = "";
    in = null;
    out = null;
    loginName = "";
    loggedIn = false;
    while (alive && client.isConnected()&& clientRef.hostSocket.isConnected()){
    try{
    in = new BufferedReader(new InputStreamReader(client.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(client.getOutputStream()));
    if(aDiagnostic){
    out.println("WELCOME to diagnostics");
    broadCastDia("Connect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    out.println("WELCOME to Troy's Server");
    broadCastDia("Connect : client "+client.getInetAddress().toString());
         out.flush();
    String line;
    while(((line = in.readLine())!= null)){
    StringTokenizer aStringToken = new StringTokenizer(line, " ");
    if(!aDiagnostic){
    broadCastDia(line);
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    else{
    if(line.equals("GETIPS"))
    getIPs();
    else{
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    } // end while
    catch(Exception e){
    // System.out.println("ERROR:Client Connection reset");
                             JOptionPane.showMessageDialog(null, (e.toString()),"ERROR:Client Connection reset", JOptionPane.ERROR_MESSAGE);     
    try{
    if(aDiagnostic){
    broadCastDia("Disconnect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    broadCastDia("Disconnect : client "+client.getInetAddress().toString());
         out.flush();
    // close the buffers and connection;
    in.close();
    out.close();
    client.close();
    // System.out.println("out");
    // remove from list
    removeThreadQueue(this);
    alive = false;
    catch(Exception e){
    // System.out.println("ERROR: Client Connection reset failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client Connection reset failure", JOptionPane.ERROR_MESSAGE);     
    }// end while
    } // end method run
    * method run - Generates io stream for communicating with the server and
    * starts the client gui. Run also parses the input commands from the server.
    public void run(){
    boolean alive = true;
    try{
    // begin to life the gui
    // aGuiClient = new ClientGui(hostName.getHostName(), hostPort, loginName, this);
    // aGuiClient.show();
    in = new BufferedReader(new InputStreamReader(hostSocket.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(hostSocket.getOutputStream()));
    while (alive && hostSocket.isConnected()){
    String line;
    while(((line = in.readLine())!= null)){
    System.out.println(line);
    broadCast(line);
    } // end while
    } // end while
    catch(Exception e){
    //     System.out.println("ERRORa Connection to host reset");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort reset", JOptionPane.ERROR_MESSAGE);
    try{
    hostSocket.close();
         }catch(Exception a){
         JOptionPane.showMessageDialog(null, (a.toString()),"ERROR: Exception", JOptionPane.ERROR_MESSAGE);
    alive = false;
    System.exit(1);
    } // end method run

Maybe you are looking for

  • Trouble installing OSX 10.4

    I'm having issues installing 10.4. I'm doing everything correctly (I think...). I hit "upgrade" and it say's "Verifying Installation DVD", then, "Verifying Desination Drive". Then I get (something like) "...please Restart". Has anyone seen this befor

  • Page Layout Orientation

    I created a presentation, but now I want to change the page orientation to portrait instead of the default landscape. Anyone know how to do this?

  • Is there any option in captivate to capture tool tips

    Hello Friends I'm using Captivate 4 .is there any option in captivate4 to record the mouse movement so that i can capture the Tool Tips in the software which i am making the Demo.Hope some one will help me.. Crazdobe

  • Transfering reports to other publisher server

    Hi all, First of all, all the best wishes. Is it possible to copy the reports that you made on a 'devolop' publisher server to a 'test'publisher server, and so on? Or what are the best pracitices to work with this problem? I can't find anything about

  • How to open RAW files using elements 10 with a pc using windows xp and nikon D3300

    i have an old pc running on windows xp to which i downloaded elements 10. i recently bought a nikon d3300 and am shooting RAW. is there a way to open the RAW files using elements 10?