Problems with widescreen

I recently purchased a 2nd gen apple tv.  My problem is some movies or shows wont display in widescreen even though they are new.  On some movies it will switch between widescreen and the normal view with two bars on each side by itself. I have even had movies where it was a small box with bars on top and bottom.  Anyone have any ideas?

I have to chime in, here, too. Example - I have a Samsung 32" only 3 months old.
With the tv in standard 16:9 format, my ATV2 displays some shows with the vertical bars, as though the content is supposed to be 4:3. It is not. It was Camelot from Starz, Robin Hood from BBC, Some episodes of Stargate Atlantis beginning about 1/2 way through Season 5. These all display through the Netfix website/Silverlight player, on iPad and on Plex (on iMac or MacBook) in a wide-screen, full-screen mode.
On the ATV2, when I exit the program back to the menu, the ATV2 menu is full screen, just as it should.
I haven't been able to distinguish a pattern, but it does repeat on certain shows, and only on the ATV2. I don't have Wii, PS3, XBox, etc.
So any help would be appreciated.

Similar Messages

  • Problem with widescreen filter

    Hi everybody
    I'm working with Final Cut Pro 5. When attaching the widescreen filter to the footage and I'm ajusting the 4:3 picture in the mask, the picture no longer is as sharp as it was without the filter.
    I think this had something to do with the realtime in Final Cut Pro 5, since in FCP HD, when I had to render the widescreen filter, this problem didn't occur. (Kind of the same problem seems to be when I create "Text" and attach a normal dissolve which causes a shuttered image during the fade; I solved this problem by attaching the motion blur filter, so FCP5 was obliged to render - and it worked). However this didn't resolve the widescreen problem...
    Has anybody an idea on this topic or experienced the same problem? Could this may be a problem with the software?
    Thanks for your help
    greetz

    Thanks for your answer. I wasn't aware of the percentage based issue. If this is the problem, that means that the offset adjusting with keyframes is quite useless since I always have then offsets that reach for instance from -33 to -44, with offstet numbers like -33, -34, - 35...
    Is there any solution to this problem to avoid the softness at all? Like recompressing the whole footage after the filter adjusting? Is there actually no problem with the RT; on FCP HD there was no such problem.
    I'monitoring externally and I see the softness also on the canvas and also when the clip was exported etc.
    thanks

  • Problem With Widescreen Export

    Hey everyone. I know that there's been a lot of topics posted about this and I have read every single one and still can't seem to get it right. So here's the deal...
    I recorded 16:9 footage on my Canon ZR800.
    I captured with Anamorphic 16:9 settings.
    The sequence preset is Anamorphic.
    When I export it's 4:3.
    I tried changing the pixels to Square like someone suggested. It seemed like it would work, but it didn't change anything, it actually just created a 4:3 frame with black bars on the left and right making it.....Tallscreen, if you know what I mean.
    Is there anyway to get 16:9 footage from FCP to a QuickTime file? I'm not worried about putting it on a DVD right now, so I don't want to letterbox it if I don't have to.
    Thanks!
    -Kevin

    When I went to export, I went to Size and manually put in a size (that is, I chose Custom and put in a Widescreen ratio. If you search Google for 'Aspect Ratio Calculator' you'll find a java ratio calculator for widescreen and full. I usually use 800 as the width). After doing that, it stretched it out and it works great.

  • PPro CS4: Problem with program monitor widescreen video

    Hi Guys
    I shot my video in 16:9 aspect ration. I created a new project with "widescreen 48KHz DV-PAL" in PPro and I was ready to go.
    I imported the video in avi format and all was OK. Now, I opened my first avi video file from the project panel in the source monitor: the video aspect ratio was still OK.
    Now, I dragged the video from the source monitor to the sequence and the video aspect ratio was OK in the program (as far a I remember), i.e. the video in the source monitor was the same as in the program monitor. I then inserted a short mpg video in the project panel > source monitor > sequence. Then I realised the mpg aspect ratio was not the same as my avi video asoect ratio, so I decided to take out the mpg file from the whole project altogether.
    Now I'm left with a problem: the video aspect ratio in the program monitor is stuffed up... Instead of having black bars only above and below the video as in the source monitor, I now have extra black bars on the left and right of the video!
    If I already did some editing for an hour or so & realised this problem then, it would have been worse. I'm happy that I picked it up in the first 5 monutes of editing.
    I have attached a screen print of this problem - please help me guys on how fix the video in the program monitor.
    Many thanks in advance.
    Walter

    Thanks Harm & Jim
    Hmmm... so this means that the camcoders (I shot using a camcoder) cannot shoot in REAL 16:9? Even if I change the aspect ratio on my camera to be 16:9, the actual shooting is in fact 4:3. This is interesting...
    Just a matter of interest, what sort of video cameras can shoot in real 16:9?
    OK, I created a new project in standard 4:3 DV-PAL preset and imported my old PPro project file and the video in the program monitor much, much better.
    You know that's what I love about PPro: one can import a PPro project into another PPro project!
    Also, that's what I love these Adobe forums - you guys are really helpful. I wish the Ruby on Rails forums were this good as well. Anyway, thanks to all you guys!
    Walter

  • Problems with HDV footage from sony HDR - HC9

    I have a new sony HDR-HC9 cam corder. I want to shoot in hi def (HDV) format for best quality, but I produce standard def DVDs as a finished product. I was hoping to use the built in iLink conversion from HDV to DV when downloading to the computer into iMovie. I have had many problems with this.
    Usually, when I set it up to do the downconversion, I see a blue screen in iMovie, although iMovie will ff and rew the camera, no images come across. I experimented with setting the camera in DV record mode at the same time as I had the iLink down conversion set, and this appeared to work. I started downloading an hour tape, and when I came back 65minutes later (after it should have been done), saw the message that iMovie had quit. Reopened the project, and saw an hour worth of footage in the trash, but it was too crazy to reorder the clips from the trash back to the clips pane.
    I resigned to import in hdv (1080i) format and not mess with hardware downconversion. This worked fine. I then added some chapter markers and shared the project with iDVD. I saved the project as an image file and then mounted it to check it for errors. The video was OK, but towards the end of the project, the sound was out of sync by a few seconds with the video.
    I deleted encoded assets from the iDVD project, then reburned (save as image file). Same defect.
    I then started a new iMovie project in standard DV widescreen, and dragged all of the clips from the HDV (1080i) project into the time line. It took over an hour for my mac mini to run the conversion, but the movie in iMovie appeared OK. I redid the iDVD project, and saved as image file. It appears to have worked correctly (although I have not looked at it on my widescreen TV yet to assess image quality.
    Questions:
    1) Has anyone had any luck getting HDR-HC9 iLink HDV-DV hardware conversion to work with iMovie, consistently?
    2) Can anyone comment on image quality issues with converting HDV to DV footage using iMovie software.
    3) Has anyone seen audio sync problems with iDVD from HDV original footage.
    Thanks

    Hi - you may get a more exact answer in the BlackMagic Macintosh forum, since there aren't a lot of BlackMagic queries on the Apple Discussions forums:
    http://forum.blackmagicdesign.com/viewforum.php?f=11

  • Problem with screen size in Premiere Pro CS5?

    I'm making a movie in Premiere Pro CS5 and I've ran into a problem with the screen size. The source screen shows my footage in widescreen (16:9) but my project screen is playing the widescreen footage in standard size (4:3) so it is cutting off some of the footage from the screen. I would like to make my entire project standard size so how do I do that? (Most of the chopped off footage was adjusted in After Effects so does that have anything to do with it?)
    Thanks for any help you can give!

    The properties of the footage are:
    872 x 486
    00;00;25;00, 29.97 fps
    48000 Hz - 32-bit Float - Stereo
    The properties of the sequence are:
    Editing Mode: DV NTSC
    Timebase: 29.97 frames/second
    Video:
    Frame Size: 720 horizontal 480 vertical 4:3
    Pixel Aspect Ratio: D1/DV NTSC (0.9091)
    Fields: Lower Field First
    Display Format: 30fps Drop-frame Timecode
    Audio:
    Sample Rate: 48000 Hz
    Display Format: Audio Samples
    Video Previews:
    Preview File Format: NTSC DV
    Codec: DV NTSC
    Width: 720
    Height: 480
    I'm also quite a beginner at Premiere Pro and basically all the Adobe programs, so are there any good websites (preferably free) that give good help and information for beginners like me?
    Thanks!

  • Video card or driver problems with an N200, please help!

    I have a lenovo 3000 N200, it is really cool, runs even games quite well, including newer ones.
    But, is it normal to for the display driver program to freeze out in Warcraft 3? It always does that, when accessing the list of maps in the game and after 3-5 mins during an actual game. It sets the resolution down to 640X480 (from 1280X800) and in 16 color. I have to reset it in order to make it work. Also it does the same in Spore - though after having the driver written for Spore installed, ( which I downloaded from lenovo's site ) I haven't encountered that problem so far. Also Second Life shuts down - thankfully it does not freeze the drivers. I understand that the model I have is not meant for gaming but if it can run Warhammer 40k: Soulstorm at meduim graphic settings (on widescreen) without a lagg I can't understand why it wouldn't be able to handle warcraft 3 - that even an ATi m200 express can handle. I mean an X3100 from Intel must be far more powerful. (Said ATi card laggs with older games like Unreal Tournament)
    I have the latest driver - official - and a Win Xp pro Sp2. I always keep my system up to date - save for opsys but so far driver did not need sp3 - and virus clean.
    Please help me? 
    Solved!
    Go to Solution.

    Well, Unreal Tournament 2004 runs flawlessly on max graphics - though simple Unreal Tournament laggs like hell with all possible settings - also, as I said Dawn Of War and it's expansions run well on med graphics. The Suffering Ties That Bind runs also good on highest settings - though there is a bit of degradation compared to my tabletop pc's performance. Disciples 2 ran - of course - well, there were some texture problems with it but Heroes 5 ran quite well even on higher settings (as I mentioned it sometimes blunted down the textures but not always and it ran without a lagg). Alien Versus Predator 2 ran on max graphics, and there was no trouble, save for the aliens' special vision (that white thing that looks as if inverted colors) didn't work - aka was only a black screen - and that the crosshair of the smartgun was only a blank red/green block on the middle of the screen.Oh, and Command & Conquer: Generals Zero Hour works on highest settings without a lagg, along with Quake 3, and Jedi knight : Academy. It even runs Perfect World on high settings and only laggs in bigger towns - but that also might be because of the tremendous bandwidth usage that occurs. Even Red Alert 3 was able to run, but I would only advise that for RA fanatics, on low settings it was playable. Also, C & C: Tiberium Wars runs better than RA 3 , if you like that it is quite playable and worth a try. As you can see I have put it to it's limits to see what it can endure. Unreal Tournament 3 ran, though was gruesomely degraded and then it gave me the blue screen of death; so I quickly uninstalled that. Other than the forementioned program I had no real problems with the card, but the existing problems are a pain in the ... well we all know how bothering it can be when one is unable to play his/her favourite game (that should really run flawlessly).
     Doesn't vista eat up too much of the system resources? A friend of mine was complaining about his n200 that vista is too slow on it and it eats up too much processor/memory.
    Also, still no new on videocard front... Asked around if anyone knows, but I am guessing that maybe even Blizzard - referring to my Warcraft problem - shows more compassion to their forums and users than Lenovo, so I'll ask around there too. 

  • FME capture problems with new PC

    Had FME 2.5 broadcasting live on old Win XP machine without
    any problems (with various capture cards). Upgraded to new PC
    (Vista, ATI Theatre 650 Pro Combo card w Dell media Xcelerator),
    and have had nothing but problems:
    1. Getting “The parameter is incorrect” error
    messages every time I start FME or change the presets.
    2. Audio only finds the “ATI AVStream Analog
    Capture” device, not the soundcard/mic (even though a web
    Flash encoder finds the mic fine).
    3. Video Device (also ATI AVStream Analog Capture) only
    captures in widescreen, not any other formats (even though card
    supports them). Plus only 720x format options are shown and if I
    try to scale above 720x240, it keeps same resolution and just fills
    extra space with green screen.
    4. Clicking on “Filters Properties” tab in video
    device settings causes FME to crash. Other video settings tabs seem
    to work fine (though audio device gives no settings other than
    “board properties”).
    Any suggestions? Can't seem to find anything that will help
    correct these issues. Thx!!

    quote:
    Originally posted by:
    Moin Ansari
    You may want to update the drivers and try again.
    http://www.dell-drivers.com/dell-drivers-downloads/ATIATI-Theater-650-PRO-Combo-Analog-Dig ital-TV-Tuner_13913.shtml
    Thx for the suggestion. I already had those drivers, but
    tried the latest drivers from ATI and then reinstalled FME. That
    corrected the green bar issue I listed in problem #2, and I can
    resize to a smaller output now. However, the other 3 issues still
    exist (parameter errors, does not discover mic/soundcard in audio
    devices even though other programs do, filters properties causing
    FME crashes). Plus I noticed that the audio "sample rate" selector
    is blank, showing no options to choose. When I try to test encode,
    I get an audio sampling error and it suggests trying another rate,
    even though no rates are listed. Any other Ideas? Thx!!
    Update - i figured out how to get the mic input to show in
    devices, but the audio sample rate problem listed above is causing
    all encoding to fail, no matter which audi source I use.

  • Problem with Imovie and IDVD 16:9 aspect ratio

    I've recently converted to a mac. The main reason for this was to take advantage of the superior video / dvd editing capabilities. However, I have hit upon a problem with the aspect ratio of the final video.
    I have connected my video camera (a sony DCR-HC42E PAL which is in theory 16:9 aspect ratio) and imported the DV tape into iMovie. It recognised that this is a DV widescreen (i.e. 16:9)movie and imports the video and then "letterboxes" the video for some time. In the clips window it then shows each clip as it should in a widescreen mode.
    I have created a final video then exported this to iDVD for burning to a disc. When it arrives in iDVD it is however elongated - i.e. 4:3 aspect ratio.
    Is there any way of avoiding this / working around this problem?
    I understand that my camera may not be videoing 16:9 but rather 4:3 then converting it itself - but in previous windows environment this was fine and the pre-loaded free windows movie maker software managed to cope with this - can a mac?
    MacBook Pro   Mac OS X (10.4.8)  

    Brilliant!
    Thank you very much. I've spent the last 4 hours trying to solve this and also spent a good half hour on to apple care, not even their "teir 2" imovie experts in san fransisco could solve this problem - you are a star!!!!!
    I was just about to throw the mac through the window and revert to windows - you have restored the faith!
    I've done as you said (although the "auto pillerboxing tick is in "import" tab (not general) on my version 6.0.3 of imovie!) The movie has appeared in 16:9 format as suggested.
    I would also comment that for general information, I pressed on with the higer frame setting and edited the full movie with the wrong setting on the macbook all the way through which looked weird - then burned a dvd via idvd and used the 16:9 setting as you suggested and the final video looked fine - therefore, the only place where the movie is incorrect was on the mac screen.
    Overall I would agree that this is definatly a imovie "glitch". Thanks again.
    MacBook Pro   Mac OS X (10.4.8)  

  • CS4 while Adobe fix the problems with CS5 for Mac?

    If anyone from Adobe is monitoring this forum, is it possible for customers who have bought PRemiere Pro CS5 to have access to a fully functional copy of Premiere Pro CS4 while we wait for fixes to two serious bugs in the Mac release of CS5? 
    The problems with not being able to save project files, and the wrong aspect ratio randomly being selected when importing widescreen DV footage - discussed in threads on this forum - make CS5 unusable on a Mac currently.
    thanks.

    You randomly get a saved Quicktime file with the wrong aspect ratio.
    Ah ha...now that I can fix for you ..if you have QT Pro.
    BTW: That behavoiur is typical of QT Player and is not actually random.
    Method:
    Open your mov in QT Pro
    Show Movie Properties  (Ctrl-J)
    Click on Video Track
    Click on Visual Settings Tab
    Un check the Preserve Aspect Ratio box
    (Here is where you now need to do some math to change the 4x3 to 16:9 ratio)
    Divide the Vertical Pixel Dimension  by 1.78 and enter the result in the Vert Dimension box
    Ensure the Preserve Aspect Ratio box is UNCHECKED
    Hit Tab key and notice the image in the QT window change.
    In the QT Window Menu - File>Save  (SAVE is an  IMPORTANT STEP)
    Here is an example:
    QT movie Original is 320x240
    Divide 240 by1.78    ( ie. 240/1.78=134)
    Bingo!

  • I`m Having trouble or problem with my battery.It doesnt charged completely.

    I hanve a powerbook G4 (500 Mhz) 15-inch Widescreen....
    I plug it in all the way the switch, and it doesnt charge all the way to 100 %...Could it be that I had been plugging the cable wrong or My battery is bad or mess up????
    Does anyone have a secure website for buying a new battery for my laptop with a low price....
    IF anytone has any idea about solving my problem with my battery...write to me as soon as possible
    Sincerely Yours,
    John

    Hi eww..
    Well I have been goggling over the web...and my only idea is to look in amazon.com and I found three sources( one is through a company in california allmac.com but the condition of the battery in stock for sale is " used, like new" for $99 and the other source is refurbished do you think that buying a refurbished battery is making a great deal or the worst i could be making in my life????
    Any other suggestion, about my issue of the battery, I tried plugging & moving the cable it in any waw possible and still it doesn`t charge
    Sincerely Yours,
    Eww

  • 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

  • Problem with threads and camera.

    Hi everybody!
    I've a problem with taking snapshot.
    I would like to display a loading screen after it take snapshot ( sometimes i
    have to wait few seconds after i took snapshot. Propably photo is being taken in time where i have to wait).
    I was trying to use threads but i didn't succeed.
    I made this code:
    display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while((!performing.isShown()) && (backgroundCamera.isShown())){
                        Thread.yield();
                    notifyAll();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        this.wait();                   
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();This code is sometimes showing performing screen but sometimes no.
    I don't know why. In my opinion performing.isShown() method isn't working correctly.
    Does anyone have some idea how to use threads here?

    Hi,
    I've finally managed to work this fine.
    The code:
           Object o = new Object();
           display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while(!performing.isShown()){
                        Thread.yield();
                   synchronized(o) {
                      o.notify();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        synchronized(o) {
                           o.wait(1);
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();

Maybe you are looking for

  • Since I upgraded to ISo6 my iPhone 4s will not retain Wifi passwords

    Hello I'm hope that someone can help as this problem is driving me NUTS.  Since I upgraded both my Iphone 4s and Ipad 3 to ISO6.  I've had nothing but problems with Wi-Fi access, inititally neither machine would remember the home networks (or any oth

  • Understanding Sizes for Interactive PDFs

    This is what I want to accomplish: Create an interactive PDF with a page size of 1920x1280.  In other words when someone opens the pdf and they select the full screen the layout they will get a page that exactly fits the screen (assuming the user has

  • Short name in the email. Tcode SOST

    My question - Issue - When PO sent out through e-mail, SOST shows incorrect sender user name. Although e-mail ID is correct. Incorrect user name and correct user name (which we are expecting) has same e-mail ID in user master. Checked and found that

  • Import music from iPhone to Macbook after operating system reinstall

    My Macbook Pro recently crashed and I had to reinstall the operating system. I lost all the music in itunes that I had ripped from cds. However all the music is still on my iphone. Why can't I just import all the music from my iphone back to itunes o

  • How to Create downloadable charts in Apex ?

    Hi All, I m using Apex 4. I want to know that how can i create charts that can be downloadable as image, pdf etc. Thanks in advance