The logical problem in turnover in  for ?

Welcome
wrote this code, everything is true but there is a logical problem to be solved first idea of this program is a moving train to the contrary, it can stop and operated once again and that can add cars and locomotives and can delete it but there is a problem when adding that the train carriages have remained stable cart after the first turnover Thus ...
THAT shows us the error ..
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Train extends JFrame implements ActionListener{
    private boolean check = false;
    private boolean stopped = true;
    private boolean add = false;
    private int trainPlace = 0;
    private int INDEX_START = 0;
    public int speed = 300;
    private ImageIcon CurrentImage ;
    private boolean front=true, back=false ;
    private int carrNum = 0 ;
    private JPanel screen, area , controlroom;
    private JButton[][] street;
    public JButton[] keybord;
    private String s[] = {"Start","Back","Fast","Slow","Add Carriage","Delete Carriage","Rest","Check","Desiners"};
    private ImageIcon images[][] ={{
                    new ImageIcon("images/UpRight.jpg"),
                    new ImageIcon("images/RightDown.jpg"),
                    new ImageIcon("images/NoTrack.jpg"),
                    new ImageIcon("images/NoTrack.jpg"),
                    new ImageIcon("images/NoTrack.jpg"),
                    {new ImageIcon("images/Vert.jpg"),
                    new ImageIcon("images/DownRight.jpg"),
                    new ImageIcon("images/Horiz.jpg"),
                    new ImageIcon("images/RightDown.jpg"),
                    new ImageIcon("images/NoTrack.jpg"),
                    new ImageIcon("images/Vert.jpg"),
                    new ImageIcon("images/NoTrack.jpg"),
                    new ImageIcon("images/NoTrack.jpg"),
                    new ImageIcon("images/Vert.jpg"),
                    new ImageIcon("images/NoTrack.jpg"),
                    new ImageIcon("images/Vert.jpg"),
                    new ImageIcon("images/UpRight.jpg"),
                    new ImageIcon("images/Horiz.jpg"),
                    new ImageIcon("images/RightUp.jpg"),
                    new ImageIcon("images/NoTrack.jpg"),
                    new ImageIcon("images/DownRight.jpg"),
                    new ImageIcon("images/RightUp.jpg"),
                    new ImageIcon("images/NoTrack.jpg"),
                    new ImageIcon("images/NoTrack.jpg"),
                    new ImageIcon("images/NoTrack.jpg")}};
    private ImageIcon frontImagesTrain[]={
                    new ImageIcon("images/TrainDown.jpg"),
                    new ImageIcon("images/TrainDown.jpg"),
                    new ImageIcon("images/TrainLeft.jpg"),
                    new ImageIcon("images/TrainLeft.jpg"),
                    new ImageIcon("images/TrainDown.jpg"),
                    new ImageIcon("images/TrainLeft.jpg"),
                    new ImageIcon("images/TrainUp.jpg"),
                    new ImageIcon("images/TrainUp.jpg"),
                    new ImageIcon("images/TrainUp.jpg"),
                    new ImageIcon("images/TrainUp.jpg"),
                    new ImageIcon("images/TrainRight.jpg"),
                    new ImageIcon("images/TrainDown.jpg"),
                    new ImageIcon("images/TrainRight.jpg"),
                    new ImageIcon("images/TrainDown.jpg")};
        private ImageIcon trackImagesTrain[]={
                new ImageIcon("images/Vert.jpg"),
                new ImageIcon("images/RightUp.jpg"),
                new ImageIcon("images/Horiz.jpg"),
                new ImageIcon("images/UpRight.jpg"),
                new ImageIcon("images/RightUp.jpg"),
                new ImageIcon("images/DownRight.jpg"),
                new ImageIcon("images/Vert.jpg"),
                new ImageIcon("images/Vert.jpg"),
                new ImageIcon("images/Vert.jpg"),
                new ImageIcon("images/UpRight.jpg"),
                new ImageIcon("images/RightDown.jpg"),
                new ImageIcon("images/DownRight.jpg"),
                new ImageIcon("images/Horiz.jpg"),
                new ImageIcon("images/RightDown.jpg")};
          private ImageIcon carrinImagesTrain[]={
                    new ImageIcon("images/Carriage1Down.jpg"),
                    new ImageIcon("images/Carriage1Down.jpg"),
                    new ImageIcon("images/Carriage1Left.jpg"),
                    new ImageIcon("images/Carriage1Left.jpg"),
                    new ImageIcon("images/Carriage1Down.jpg"),
                    new ImageIcon("images/Carriage1Left.jpg"),
                    new ImageIcon("images/Carriage1Up.jpg"),
                    new ImageIcon("images/Carriage1Up.jpg"),
                    new ImageIcon("images/Carriage1Up.jpg"),
                    new ImageIcon("images/Carriage1Up.jpg"),
                    new ImageIcon("images/Carriage1Right.jpg"),
                    new ImageIcon("images/Carriage1Down.jpg"),
                    new ImageIcon("images/Carriage1Right.jpg"),
                    new ImageIcon("images/Carriage1Down.jpg")};
    private int[]frontPath={13, 18,17,16,21,20,15,10,5,0,1,6,7,8};
  private int[]frontPath2={8, 13,18,17,16,21,20,15,10,5,0,1,6,7};  
    private ImageIcon icon;
    private JLabel labelInfo;
    public Train () {  
       screen = new JPanel(new GridLayout(1,1));
       Font f =new Font ("Sanserif",Font.BOLD,18);
       labelInfo = new JLabel("WELCOM" ,JLabel.CENTER);
       labelInfo.setFont(f);
       screen.setBackground(Color.red);
       screen.add(labelInfo);
       getContentPane().add(BorderLayout.NORTH,screen );
        street = new JButton[5][5];
        area = new JPanel (new GridLayout(5,5));
        for(int r=0; r<5; r++) 
            for (int c=0; c<5; c++){
                street[r][c] = new JButton("", images[r][c]);
                area.add(street[r][c]);
        getContentPane().add(BorderLayout.CENTER,area );   
        keybord = new JButton[9];
        controlroom = new JPanel(new GridLayout(5,2));   
//        ActionHandler handler = new ActionHandler();
        for (int i=0; i <9; i++)
            keybord[i] = new JButton(s);
keybord[i].addActionListener(this);
controlroom.add(keybord[i]);
          keybord[i].setEnabled(false);
          keybord[7].setEnabled(true);
getContentPane().add(BorderLayout.SOUTH,controlroom );
public void moveTrainFront(){
int trainPlace1 = trainPlace;
try{
if (trainPlace == frontPath.length-1) trainPlace = 0;
else trainPlace ++;
               if (carrNum == 0 )
     int i = frontPath[trainPlace]/5;
     int j = frontPath[trainPlace] - i * 5;
     int r = frontPath[trainPlace1]/5;
     int c = frontPath[trainPlace1] - r * 5;
     street[i][j].setIcon(frontImagesTrain[trainPlace]);
     street[r][c].setIcon(trackImagesTrain[trainPlace1]);
               else
                    int i1 = frontPath[trainPlace]/5;
                    int j1 = frontPath[trainPlace] - i1 * 5;
                    street[i1][j1].setIcon(frontImagesTrain[trainPlace]);     
                    int trainPlace2 = trainPlace;
                    for (int z = 1; z <= carrNum; z++)
if (trainPlace2 - z < 0) trainPlace2 = 13;
                              int i2 = frontPath[trainPlace2 - z]/5;
                              int j2 = frontPath[trainPlace2 - z] - i2 * 5;
                              street[i2][j2].setIcon(carrinImagesTrain[trainPlace2 - z]);
          int r1 = frontPath[trainPlace1 - carrNum]/5;
                    int c1 = frontPath[trainPlace1 - carrNum] - r1 * 5;
                    street[r1][c1].setIcon(trackImagesTrain[trainPlace1 - carrNum]);
}catch(ArrayIndexOutOfBoundsException aiex){System.out.println("the array out of index");}
// Move train Back
public void moveTrainBack(){
int trainPlace1 = trainPlace;
try{
if (trainPlace == 0) trainPlace = 13;
else trainPlace--;
int i = frontPath[trainPlace]/5;
int j = frontPath[trainPlace] - i * 5;
int r = frontPath[trainPlace1]/5;
int c = frontPath[trainPlace1] - r * 5;
street[i][j].setIcon(frontImagesTrain[trainPlace]);
street[r][c].setIcon(trackImagesTrain[trainPlace1]);
}catch(ArrayIndexOutOfBoundsException aiex){System.out.println("the array out of index");}
public void setRest(){
setStop(true);
          setSpeed(300);
int i = frontPath[trainPlace]/5;
int j = frontPath[trainPlace] - i * 5;
street[i][j].setIcon(trackImagesTrain[trainPlace]);
trainPlace = 0;
i = frontPath[trainPlace]/5;
j = frontPath[trainPlace] - i * 5;
street[i][j].setIcon(frontImagesTrain[0]);
public void setCheck (boolean c)
int i = frontPath[trainPlace]/5;
int j = frontPath[trainPlace] - i * 5;
street[i][j].setIcon(frontImagesTrain[0]);
check = c ;
public boolean getCheck (){ return  check ;}
public void setSpeed (int s){speed = s ;}
public int getSpeed(){return  speed;}
public void setStop(boolean s){stopped = s ;}
public boolean getStop(){return  stopped ;}
public void setBack(boolean s){back = s ;}
public boolean getBack(){return  back;}
     public void setAdd(){carrNum++ ;}
public boolean getAdd(){return  add;}
// Action
     public void actionPerformed(ActionEvent e){
          if(e.getSource()==keybord[0])//Start
          if (stopped)
          keybord[0].setText("Stop");
               setStop(false);
               labelInfo.setText("Running");
else      
               {    setStop(true);
               keybord[0].setText("Start");
                    labelInfo.setText("Stop");
          if(e.getSource()==keybord[1])//Front And Back
          if (!back)
               setBack(true);
          keybord[1].setText("Front");
               labelInfo.setText("Back");
          else      
               setBack(false);
          keybord[1].setText("Back");
               labelInfo.setText("Front");
          }     else if (e.getSource()==keybord[2])//Fast
          if (speed <= 0)
          labelInfo.setText("You've arrived the maximum speed : " + getSpeed());
          else {      setSpeed(speed  - 10);
               labelInfo.setText("The Train speed is slow down to : " + getSpeed());
     else if(e.getSource()==keybord[3])//Slow
          {setSpeed(speed + 10);
                labelInfo.setText("The Train speed is pulled up to : "+getSpeed());
else if(e.getSource()==keybord[4]) //ADD carrin
                    setAdd();
                    labelInfo.setText("Add Carriage");
          //setStop(false);
else if(e.getSource()==keybord[5]) //Delete carrin
               labelInfo.setText("Delete Carrin");
     else if(e.getSource()==keybord[6]) //Rest
               setRest();     
          labelInfo.setText("Rest");
     else if (e.getSource()==keybord[7]) //Check
     setCheck(true);
     keybord[7].setEnabled(false);
     keybord[0].setEnabled(true);
     keybord[1].setEnabled(true);
     keybord[2].setEnabled(true);
     keybord[3].setEnabled(true);
     keybord[4].setEnabled(true);
     keybord[5].setEnabled(true);
     keybord[6].setEnabled(true);
     keybord[8].setEnabled(true);
     labelInfo.setText("The Train is Checked");
else if(e.getSource()==keybord[8]) //desiners
     String x = "";
               labelInfo.setText("Desiners About");
               JOptionPane.showMessageDialog(null,"The Progect is Under The Auspices of:"
               + "\n??" + "\n" + "\n ??" +
               "\n ??" + "\n??" + "\n ??" + "\n" + "\n" + "\n?? " + "\n C 2007");     }     
This main ..
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.lang.Thread;
public class TestTrain{     
    public static void main(String[]args){
        Train train = new Train ();
          MoveTrain mt = new MoveTrain(train);
        train.setTitle("Train");
        train.setSize(421,550);
        train.setVisible(true);
        train.addWindowListener (
        new WindowAdapter (){
             public void windowClosing(WindowEvent e ){
                  System.exit(0);
          mt.start();
}This Threads
import java.lang.Thread;
public class MoveTrain extends Thread {
     Train train ;
    public MoveTrain (Train train){
           this.train= train;
     public void run(){
           while(!train.getCheck());
           while (train.getCheck()){
                try {sleep (train.getSpeed()); }
                catch (InterruptedException e ){System.out.println("unknown error");}
                 if (!train.getStop())
                    if(!train.getBack())
                            {train.moveTrainFront();
                      else  train.moveTrainBack();
}This Link image icon ..
http://www.geocities.com/alhairan_2003/as/777/UpRight.jpg
http://www.geocities.com/alhairan_2003/as/777/Vert.jpg
http://www.geocities.com/alhairan_2003/as/777/TrainUp.jpg
http://www.geocities.com/alhairan_2003/as/777/TrainRight.jpg
http://www.geocities.com/alhairan_2003/as/777/TrainLeft.jpg
http://www.geocities.com/alhairan_2003/as/777/TrainDown.jpg
http://www.geocities.com/alhairan_2003/as/777/Train.jpg
http://www.geocities.com/alhairan_2003/as/777/RightUp.jpg
http://www.geocities.com/alhairan_2003/as/777/RightDown.jpg
http://www.geocities.com/alhairan_2003/as/777/NoTrack.jpg
http://www.geocities.com/alhairan_2003/as/777/Horiz.jpg
http://www.geocities.com/alhairan_2003/as/777/DownRight.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage3Up.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage3Right.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage3Left.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage3Down.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage2Up.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage2Right.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage2Left.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage2Down.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage1Right.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage1Left.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage1Down.jpg
thanks :)

        String[] car1Names = {
            "Carriage1Down", "Carriage1Left", "Carriage1Down", "Carriage1Right"
        };The first image name should be "Carriage1Up" but it is missing in your directory.
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.*;
public class MC6 implements Runnable, ActionListener {
    JLabel[] grid;
    BufferedImage[] trackImages;
    BufferedImage[] trainImages;
    BufferedImage[][] carImages;
    int[] imageKeys;
    int[] trackKeys;
    int[] forwardKeys;
    int[] reverseKeys;
    int keyIndex = 0;
    int carCount = 0;           // [0 - 3]
    boolean goingAhead = true;
    boolean changeDirections = false;
    Thread thread = null;
    boolean moving = false;
    final int DELAY = 1000;
    public MC6() {
        loadImages();
    public void actionPerformed(ActionEvent e) {
        String ac = e.getActionCommand();
        if(ac.equals("START"))
            changeDirections = false;
            start();
        if(ac.equals("STOP"))
            stop();
        if(ac.equals("FORWARD") || ac.equals("REVERSE"))
            changeDirections = true;
        if(ac.equals("ADD CARRIAGE"))
            carCount += (carCount+1 <= 3) ? 1 : 0;
        if(ac.equals("REMOVE CARRIAGE")) {
            int carIndex = getCarIndex(carCount);
            int trackIndex = trackKeys[carIndex];
            int imageIndex = imageKeys[carIndex];
            grid[trackIndex].setIcon(new ImageIcon(trackImages[imageIndex]));           
            carCount -= (carCount-1 >=0 ) ? 1 : 0;
    public void run() {
        while(moving) {
            // Clear track in preparation for next advance.
            if(changeDirections) {
                clearTrack();
                // Adjust keyIndex by one increment in the direction of travel
                // to allow it to return it to its current position after the
                // next advance in position (further below).
                advance();
                goingAhead = !goingAhead;
                changeDirections = false;
            } else {
                // Replace last car with track image before train advances.
                int carIndex = getCarIndex(carCount);
                int trackIndex = trackKeys[carIndex];
                int imageIndex = imageKeys[carIndex];
                grid[trackIndex].setIcon(new ImageIcon(trackImages[imageIndex]));
            // Move to next position on the track.
            advance();
            // Set locomotive.
            setLocomotive();
            // Set the cars following the locomotive.
            setCars();
            try {
                Thread.sleep(DELAY);
            } catch(InterruptedException e) {
                System.out.println("interrupted");
                stop();
    private int getCarIndex(int carNumber) {
        int n = carNumber;
        int index;
        if(goingAhead) {
            index = keyIndex-n;
            if(index < 0)
                index += trackKeys.length;
        } else {
            index = (keyIndex+n) % trackKeys.length;
        return index;
    private void advance() {
        keyIndex = goingAhead ?
                       (keyIndex+1 > trackKeys.length-1) ? 0 : keyIndex+1
                       (keyIndex-1 < 0) ? trackKeys.length-1 : keyIndex-1;
    private void clearTrack() {
        // Remove all cars from track before direction change.
        for(int j = 0; j < carCount; j++) {
            int carIndex = getCarIndex(j+1);
            int trackIndex = trackKeys[carIndex];
            int imageIndex = imageKeys[carIndex];
            grid[trackIndex].setIcon(new ImageIcon(trackImages[imageIndex]));
    private void setLocomotive() {
        int trackIndex = trackKeys[keyIndex];
        int imageIndex = goingAhead ? forwardKeys[keyIndex]
                                    : reverseKeys[keyIndex];
        grid[trackIndex].setIcon(new ImageIcon(trainImages[imageIndex]));
    private void setCars() {
        for(int j = 0; j < carCount; j++) {
            int carIndex = getCarIndex(j+1);
            int trackIndex = trackKeys[carIndex];
            int imageIndex = goingAhead ? forwardKeys[carIndex]
                                        : reverseKeys[carIndex];
            grid[trackIndex].setIcon(new ImageIcon(carImages[j][imageIndex]));
    private void start() {
        if(!moving) {
            moving = true;
            thread = new Thread(this);
            thread.setPriority(Thread.NORM_PRIORITY);
            thread.start();
    public void stop() {
        moving = false;
        if(thread != null)
            thread.interrupt();
        thread = null;
    private void loadImages() {
        String[] trackNames = {
            "UpRight", "RightDown", "Vert", "DownRight", "Horiz", "RightUp", "NoTrack"
        String[] trainNames = { "TrainUp", "TrainLeft", "TrainDown", "TrainRight" };
        String[] car1Names = {
            "Carriage1Down", "Carriage1Left", "Carriage1Down", "Carriage1Right"
        String[] car2Names = {
            "Carriage2Up", "Carriage2Left", "Carriage2Down", "Carriage2Right"
        String[] car3Names = {
            "Carriage3Up", "Carriage3Left", "Carriage3Down", "Carriage3Right"
        trackImages = getImages(trackNames);
        trainImages = getImages(trainNames);
        BufferedImage[] car1Images = getImages(car1Names);
        BufferedImage[] car2Images = getImages(car2Names);
        BufferedImage[] car3Images = getImages(car3Names);
        carImages = new BufferedImage[][]{ car1Images, car2Images, car3Images };
    private BufferedImage[] getImages(String[] ids) {
        BufferedImage[] images = new BufferedImage[ids.length];
        for(int j = 0; j < ids.length; j++) {
            String path = "images/" + ids[j] + ".jpg";
            try {
                images[j] = ImageIO.read(new File(path));
            } catch(IOException e) {
                System.out.println("Read error for " + path +
                                   ": " + e.getMessage());
                images[j] = null;
        return images;
    private JPanel getCenterComponent() {
        imageKeys = new int[] {
            0, 1, 3, 4, 1,  2,  5,  4,  0,  5,  3,  2,  2, 2
        trackKeys = new int[] {
            0, 1, 6, 7, 8, 13, 18, 17, 16, 21, 20, 15, 10, 5
        forwardKeys = new int[] {
            0, 3, 2, 3, 3,  2,  2,  1,  1,  2,  1,  0,  0, 0
        reverseKeys = new int[] {
            1, 0, 1, 1, 0,  0,  3,  3,  0,  3,  2,  2,  2, 2
        grid = new JLabel[25];
        JPanel panel = new JPanel(new GridLayout(5,0));
        for(int j = 0; j < grid.length; j++) {
            ImageIcon icon;
            int index = getIndexForValue(j);
            if(index != -1) {
                icon = new ImageIcon(trackImages[imageKeys[index]]);
            } else {
                icon = new ImageIcon(trackImages[6]);
            grid[j] = new JLabel(icon);
            panel.add(grid[j]);
        return panel;
    private int getIndexForValue(int value) {
        for(int j = 0; j < trackKeys.length; j++) {
            if(value == trackKeys[j])
                return j;
        return -1;
    private JPanel getControls() {
        String[] ids = {
            "Start", "Stop", "Forward", "Reverse", "Add Carriage", "Remove Carriage"
        JPanel panel = new JPanel(new GridLayout(0,2));
         for(int j = 0; j < ids.length; j++) {
            JButton button = new JButton(ids[j]);
            button.setActionCommand(ids[j].toUpperCase());
            button.addActionListener(this);
            panel.add(button);
        return panel;
    public static void main(String[] args) {
        MC6 test = new MC6();
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(test.getCenterComponent());
        f.getContentPane().add(test.getControls(), "Last");
        f.pack();
        f.setLocation(200,100);
        f.setVisible(true);
}

Similar Messages

  • My imac 27 ``- superdrive accepts and burns CDs and DVDs but no program DVDs. Does anybody has the same problem - or an idea for a solution of that problem?

    Hello imac-users, my problem is: the superdrive accepts normal CDs, DVDs and is also burning them - for example music from itunes. But today I inserted 2 program DVDs - photoshop elements / Adobe and ms office 2011 for mac - and the superdrive does not accept them. After some seconds of running and noise, the DVDs are ejected - also no icon for the DVD on the desctop. So I think, it has something to do with OS X and not with the superdrive. Does anybody having the same problem - and an idea for a solution?

    Not using any mouse pad, I have a very smooth desktop. But I just tried to use a sheet of A4 printing paper, but no result, the problem persisted.
    Someone on this forum suggested, that USB3 may interfere with the magic mouse.
    I have 2 LaCie HDD's about 70 cm away from the mouse, I use them on Thunderbolt. But in operation or not - the result is the same, the mouse plays up! Just now I was clicking the desktop and the mouse created a new folder!!
    Thanks for the advice, Bee
    Cheers, Gerd

  • The screen problems or osx ? for effect

    Do not know if you know what. About the screen problems.
    The display screen of the image.
    Figure 1 in the Screen shot.
    01
    http://www.uppic.net/ts/screenshot20100517at6.19.37pm.png
    Figure 2 and 3 using photography.
    02
    http://img517.imageshack.us/img517/6340/32773728.jpg
    03
    http://img341.imageshack.us/img341/3923/77370309.jpg
    Experimented with every model (in istudio thailand) and have the same

    You may have a graphics card problem. Hardware issue. Check the experts in the iMac forums:
    http://discussions.apple.com/category.jspa?categoryID=132 or if this is MacBook pro related (you don't say) then here:
    http://discussions.apple.com/category.jspa?categoryID=190

  • Hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    Hey there Logic Pro21,
    It sounds like you are seeing some odd performance issues with Logic Pro X. I recommend these troubleshooting steps specifically from the following article to help troubleshoot what is happening:
    Logic Pro X: Troubleshooting basics
    http://support.apple.com/kb/HT5859
    Verify that your computer meets the system requirements for Logic Pro X
    See Logic Pro X Technical Specifications.
    Test using the computer's built-in audio hardware
    If you use external audio hardware, try setting Logic Pro X to use the built-in audio hardware on your computer. Choose Logic Pro X > Preferences > Audio from the main menu and click the Devices tab. Choose the built in audio hardware from the Input Device and Output Device pop-up menus. If the issue is resolved using built-in audio, refer to the manufacturer of your audio interface.
    Start Logic with a different project template
    Sometimes project files can become damaged, causing unexpected behavior in Logic. If you use a template, damage to the template can cause unexpected results with any project subsequently created from it. To create a completely fresh project choose File > New from Template and select Empty Project in the template selector window. Test to see if the issue is resolved in the new project.
    Sometimes, issues with the data in a project can be repaired. Open an affected project and open the Project Information window with the Project Information key command. Click Reorganize Memory to attempt to repair the project. When you reorganize memory, the current project is checked for any signs of damage, structural problems, and unused blocks. If any unused blocks are found, you will be able to remove these, and repair the project. Project memory is also reorganized automatically after saving or opening a project.
    Delete the user preferences
    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not impact your media files. To reset your Logic Pro X user preference settings to their original state, do the following:
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
    If you have upgraded from an earlier version of Logic Pro, you should also remove~/Library/Preferences/Logic/com.apple.logic.pro.
    Restart the computer.
    Isolate an issue by using another user account
    For more information see Isolating an issue by using another user account.
    Reinstall Logic Pro X
    Another approach you might consider is reinstalling Logic Pro X. To do this effectively, you need to remove the application, then reinstall Logic Pro X. You don't have to remove everything that was installed with Logic Pro X. Follow the steps below to completely reinstall a fresh copy of Logic Pro X.
    In the Finder, choose Applications from the Go menu.
    Locate the Logic Pro X application and drag it to the trash.
    Open the Mac App Store
    Click the Purchases button in the Mac App Store toolbar.
    Sign in to the Mac App Store using the Apple ID you first used to purchase Logic Pro X.
    Look for Logic Pro X in the list of purchased applications in the App Store. If you don't see Logic Pro X in the list, make sure it's not hidden. See Mac App Store: Hiding and unhiding purchases for more information.
    Click Install to download and install Logic Pro X.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • What is the appropriate data expiration / eviction scheme for the following scenario

    We currently have an expiration scheme through which data entries in cache-A get expired after the cache hits a certain size. The LRU entries are expired after the max threshold is reached. But the issue is that certain entries in the cache are rendered meaningless without the other entries. There is a virtual grouping of entries in this cache.
    Is there an expiration scheme that can be defined through which a group of entries can be deleted in one shot, and how can this policy be enforced.
    The other way i would percieve this to work is to separate the currently virtually grouped entries into their own individual caches. This seems the logical thing to do, except for the issue being that we would still like to keep all these caches in the same service, and have an eviction policy defined at the service level instead of at the cache level.
    Is it possible to define an eviction policy at the service level, for example to satisfy the below scenario.
    Service-A has 10 caches in it [cache-1, cache-2, ....., cache-10]. And there is a limit of 10GB defined on the service. So, if the total utilization of all the caches in Service-A reaches 10GB, an entire cache from amongst [cache-1, cache-2, ....., cache-10] will need to be cleared and the memory be made available. Which one of the caches to be cleared will depend on which cache satisfies the LRU condition. So, maybe the entire cache-5 should be deleted if the entries in this cache was the oldest used.
    Please let me know if the above scenario can be implemented.
    Thanks
    Sumax

    Ricardo Pedro Rodrigues Ferrão wrote:
    > Hi Eugene,
    >
    > I’ll try to explain it better.
    >
    > For example the business unit A is “portable pc” and I have this business unit in both companies and what I want in management consolidation is to consolidate data by the business unit “portable pc” joining data from both companies.
    >
    > Thanks.
    Ricardo,
    I had similar business scenario in my earlier project and the expectations were almost same.
    I created one consolidation area (legal consolidation) under one single data basis and assigned business area as sub-assignment. All the consolidation functions are executed by the business users based on legal cons requirements purpose, while the reports can be generated for both legal and management consolidation.
    In management consolidation reporting, your expectations can be met easily. The header will be business area, while line item data will be companies wise (if you would like the data to display that way).
    For more information, you can check the threads created by me.

  • How to make a proactive view of the Logical Disk Free Space

    Hello,
    I was wondering how I could make a view (preferably within a dashboard) that monitors the state of the Logical Disk Free Space values for one or more predefined groups. I can only get this to work with line diagrams but that is pretty hard to read.
    I would like to make views like:
    1) A simple state view that shows the state of the servers (or disks) in three state form (1. Healthy: 80% or lower; 2. Warning: Between 80% and 90%; 3. Alert: 90% or higher).
    2) A view of actual percentages of the disk drives in a table form rather than the usual line diagram.
    I prefer the first one the most and seems to be the easiest aswell but I can't seem to get this to work.
    I hope that this is possible any like to know how to achieve this.
    Thanks in advance,
    Bram

    Hi Bram,
    I think you need to create a new dashboard view for this.
    Make a new management pack for this.
    Once you create a new management pack.
    Go to monitoring TAB
    Locate the management pack there and right click and select new Dashboard.
    Create a summary view dashboard and then once it is created on the right hand side you will see something like
    Performance (Which i edited as LDS report for last 24 hrs as per the screenshot)
    Above that you will have a configure option. Click on it and mention the Object, counter and instance and of the LDS performance counter and mention the report duration (Last 1hr or  24 hrs )once you do this dashboard will start collecting the report
    for you.
    Once you scroll down the report you will get the list of servers in which space is low and how old is that alert
    Below is the screenshot for your reference.
    Gautam.75801

  • A solution to the 10810 problem

    Some weeks ago I started having problems with my computer: it kept giving me the error message 10810.
    After having the computer running for some time (12-24 hours) it refused to start applications and gave the error message -10810. Quitting running applications didn't help. In the end even things like emptying the trash were impossible and just produced errors (like Error type -1). Restarting the computer made the problem go away for some hours, but it always returned.
    I tried the solutions presented on this forum (trashing some .plist-files and repairing the disk and permissions), but this had no effect.
    Now it seems I have found the culprit for this behaviour: Virex.
    I had on older version of Virex (7.5) installed on my Mac, but for some reason it had stopped working and I believe this led to the 10810-problems.
    When I installed the evaluation version of Virex 7.7 the problems with error 10810 disapeared immidiately. So it seems Virex 7.5 had done something weird to my system, but installing the newer version overwrote the old program and fixed the bad behaviour.
    Hope this helps other people with the same problem.

    Hi Ben,
    Thanks for your contribution to this ...
    Personally I don't use Virex, but ClanXav
    Dimaxum

  • Problem submitting batch request for sales order creation

    Hello experts,
    I have created a gateway service, implementing the CREATE_DEEP_ENTITY for order creation. I have tested my service with the Chrome Advanced Rest Client and it works fine with the following XML request:
    <?xml version="1.0" encoding="UTF-8"?>
    <atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
      <atom:content type="application/xml">
      <m:properties>
      <d:OrderId>0</d:OrderId>
      <d:DocumentType>TA</d:DocumentType>
      <d:CustomerId>C6603</d:CustomerId>
      <d:SalesOrg>S010</d:SalesOrg>
      <d:DistChannel>01</d:DistChannel>
      <d:Division>01</d:Division>
      <d:DocumentDate m:null="true" />
      <d:OrderValue m:null="true" />
      <d:Currency m:null="true" />
      </m:properties>
      </atom:content>
      <atom:link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/SOItems" type="application/atom+xml;type=feed" title="SALESORDERTSCH.SOHeader_SOItems">
      <m:inline>
      <atom:feed>
      <atom:entry>
      <atom:content type="application/xml">
      <m:properties>
      <d:OrderId>0</d:OrderId>
      <d:Item>000010</d:Item>
      <d:Material>C20013</d:Material>
      <d:Plant m:null="true" />
      <d:Quantity m:Type="Edm.Decimal">100.000</d:Quantity>
      <d:Description m:null="true" />
      <d:UoM m:null="true" />
      <d:Value m:null="true" />
      </m:properties>
      </atom:content>
      </atom:entry>
      <atom:entry>
      <atom:content type="application/xml">
      <m:properties>
      <d:OrderId>0</d:OrderId>
      <d:Item>000020</d:Item>
      <d:Material>C20014</d:Material>
      <d:Plant m:null="true" />
      <d:Quantity m:Type="Edm.Decimal">200.000</d:Quantity>
      <d:Description m:null="true" />
      <d:UoM m:null="true" />
      <d:Value m:null="true" />
      </m:properties>
      </atom:content>
      </atom:entry>
      </atom:feed>
      </m:inline>
      </atom:link>
    </atom:entry>
    Now that my service is working, I want to be able to call it from a SAP UI5/Javascript application. In order to process multiple items for one order header, I use the OData batch request. Here is my Javascript method that is being processed:
    executeOrderCreation : function() {
      // Retrieve model from controller
      var oModel = sap.ui.getCore().getModel();
      oModel.setHeaders(
      { "Access-Control-Allow-Origin" : "*",
      "Content-Type": "application/x-www-form-urlencoded",
      "X-CSRF-Token":"Fetch" }
      // Define data to be created
      var headerData = {
      OrderId : "0",
      DocumentType: "TA",
      CustomerId : "C6603",
      SalesOrg : "S010",
      DistChannel : "01",
      Division : "01",
      DocumentDate : null,
      OrderValue : null,
      Currency : null,
      varItemData1 = {
      OrderId : "0",
      Item : "000010",
      Material : "C20013",
      Plant : null,
      Quantity : "100.000",
      Description :null,
      UoM :null,
      Value :null,
      varItemData2 = {
      OrderId : "0",
      Item : "000020",
      Material : "C20014",
      Plant : null,
      Quantity : "100.000",
      Description :null,
      UoM :null,
      Value :null,
      var batchChanges = [];
      oModel.refreshSecurityToken(function(oData, oResponse){
      alert("Refresh token OK");
      }, function() {
      alert("Refresh token failed");
      }, false);
      oModel.read('/SOHeaders/?$Batch', null, null, false, function(oData, oResponse) {
      // Create batch data
      batchChanges.push(oModel.createBatchOperation("SOHeaders", "POST",headerData ));
      batchChanges.push(oModel.createBatchOperation("SOHeaders", "POST",varItemData1 ));
      batchChanges.push(oModel.createBatchOperation("SOHeaders", "POST",varItemData2 ));
      oModel.addBatchChangeOperations(batchChanges);
      // Submit changes and refresh the model
      oModel.submitBatch(
      function(oData) {
      oModel.refresh();
      function(oError) {
      var error = oError;
      alert("Read failed" + error);
      false);
      }, function() {
      alert("Read failed");
    The result is when I submit the batch, I have an error saying: The following problem occurred: no handler for data -
    Am I doing right in the batchChanges creation ? (Header then items)
    Why am I facing this error ?
    Any help would be greatly appreciated.
    Thanks and regards,
    Thibault

    Hi,
    you should also have '/' before collection name so that it will be /SOHeader and as below.
      batchChanges.push(oModel.createBatchOperation("/SOHeaders", "POST",headerData ));          batchChanges.push(oModel.createBatchOperation("/SOHeaders", "POST",varItemData1 )); 
      batchChanges.push(oModel.createBatchOperation("/SOHeaders", "POST",varItemData2 ))
    Regards,
    Chandra

  • Can't copy large files anymore after downloading Mavericks, is anyone else having the same problems?

    I did drop my laptop a week ago but I tested everything and the USBs, CD Drive, and Pretty much everything else worked so I don't think it's that. Does anyone have the same problems or any advice for me? I have a Macbook Pro from August 2013

    This problem is often caused by "Google Drive." If it's installed, I suggest you first check for an update. If that doesn't solve the problem, remove it according to the developer's instructions. You may need to boot in safe mode to do so. Back up all data before making any changes.
    If you use Google Drive and don't want to remove it, then try deselecting the option in its preferences to "show status icons." According to reports, that may be enough to stop the Finder from crashing.

  • I have upgraded to Mavericks, iphoto is now saying my version is out dated, everything else is fine this is the only problem.

    I have upgraded to Mavericks, iphoto is now saying my version is out dated, everything else is fine this is the only problem. Tried looking for updates etc, to no avail.....any ideas???

    Check your version of iPhoto. If it is iPhoto 08 7.1.5 from OSX days it is old and if you want a current version you will need to purchase it on the Apple App store.

  • My 2011 MacBook Pro does not start and stop after the apple appear, they said that the problem is a video problem and need to change the logic board. Cost almost same to buy a new one. Somebody have the same problem?

    I have a MacBook Pro early 2011. Does not start. After the apple show, a blank screen appear. The service said that the problem is with the video plaquue in the logic board. Need to change. Cost lmmost the same than a new MacBook Pro. Somebody has the same problem? What we can do?

    I hate to break this to you, but life isn't fair. If your job is that critically in need of a computer, then you should have a spare to use for just this kind of situation or have your employer provide you with a computer to use.
    Computers break down, just like cars. If your car breaks down do you curse the car maker or get it fixed? Surely, you paid more for your car than the computer.
    This is reality. Best get used to it because it won't get any better.

  • I've got a mac pro problem with the starting up, but also a red light on the logic board solidly on. Its not among the diagnostic led. It's located near the BT adapter and the front fans. Also the fans run loud also. any solutions?

    Hi
    I've got a mac pro late 2006, and i am having problem with it for quite a while now. the problem i am facing is the start up process, and the red light on the logic board. Earlier I've got the two led on the diagnostic leds 5 and 6 turned on without the diagnostic button being pressed, and i think those are related to the processors overtemp. I've managed to solve that by, removing the processors and re applying the thermal compound on the heatsink. what i have left now with is the red light on  the logic board at the time i plugged in the power. At the same time when this light come on, the power indicator at the front panel come on as well. i am not sure what is this light relates to. We've replace the power supply too, and gone through the SMC reset but seems no help.
    Any idea on the problem? I am desperate about it, and i will be greatful if anyone can help..
    thanks and hope for your best solutions
    Kari

    I can't help directly with your problem but you might check here http://tim.id.au/laptops/apple/macpro/ for a service manual which could answer your question.

  • I am having trouble using reverb of any kind; it does not sound natural, but rather "pixilated." Does anyone have any ideas for a solution? I have used Silververb and Space Designer and am having the same problem...

    I am using Logic Pro 9 with two MXL 990 microphones in my piano and a Rode NT1A for vocals. I have tried recording with added reverb and keeping getting not a natural reverb sound, but a rather "pixilated" one that does not sound natural. Does anyone have any ideas on how to solve this issue? I have tried using Silververb and Space Designer, and both result in the same problems. Thank you!

    This is asking for the impossible! It does not sound natural because maybe it isn't and in judging so whats your reference anyway. If you are in dire need of some natural sounding room you can go and record it yourself. But even then, the chances that it sounds like you imagined it, are very slim.
    There are very decent sounding reverberation plugins, based on artificial reverb generators or convolution-style, the last one is said to sound more 'natural' then the first one. Be it as it maybe, it really is like cooking food. You got all the ingredients for this delicious taste at hand and believe it or not to reach a satisfying result this is not enough, because if you do not mix the ingredients in the right proportion you will end up with a different dish you thought you'll get. This is exactly the same when one would mix audio, I dare say.
    So treat yourself to some good ingredients and the rest is up to you, namely: taste and experience!
    And looking at some of my past music productions I always find the same plugins for the 'ambient' task:
    Altiverb by Audio Ease when I have acoustic ensembles (classical music mostly), the Sony Oxford Reverb in studio productions, Bricasti when I have to deal with drums and MMultiBandReverb from MeldaProduction for all-round stuff. Thats the base I start from, after that I can end up with dozen Reverb plugins which basically all are doing the same thing but just in a tiny different way.

  • Logical system name in SLD for the R3 buss. system is not open for input.??

    Dear all,
    We are upgrading to PI 7.1  and have a problem in a scenarie  where PI is sending IDOC to R3.
    The problem is probably related to the fact that it is not possible to write a logical system  name in SLD for the R3 system. I can not read the logical system name for the R3 system into the Directory (adapter specific identifier), *because the logical system for  the R3 bussines system is not an input file??*. How can i enter the logcal system name so i avoid following error:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_INV_RCV_SERV</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Receiver service cannot be converted into an ALE logical system</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Regards Ugur

    There are two ways....
    Option 1 : Go to the BS of ur R3 system in Integration Direction. Go to edit mode mode and select Properties -> Adapter Specific attributes - > enter the LS name and save...
    Option2 : You can use it from the mapping.... U either hard code/use from source the EDIDC40 section of ur mapping and the in ur IDOC receiver config select the option user
    Option ! is the best soln...All the IDOC to that R3 system will go the specified LS...
    regards,
    Arvind R

  • "LOGIC PRO X: Disk is too slow or System Overload.  (-10010)"  This is the message that I was having since two weeks ago with my Logic 9.  I updated two days ago to Logic X and I am still having the same problem.

    "LOGIC PRO X: Disk is too slow or System Overload.  (-10010)"  This is the message that I was having since two weeks ago with my Logic 9.  I updated two days ago to Logic X and I am still having the same problem.
    I recently formatted my computer.  In other words, I'm not using too much memory of my HD.  My Memory Ram is 8GB.

    dandotcraig wrote:
    A week before logic X comes out it starts bugging out... i deleted a bunch of stuff on my HD and cleaned up everything... didnt fix anything... then logic x came out and I though oh i better update that will fix everything... and im still having the same problems... its rediculous.
    Umm,, no offence... but what is ridiculous...  is you didn't troubleshoot the original problem but instead you assumed it was a LP9 problem so you updated to LPX which is still in its early days and is likely to be less stable than LP9... rather than more so!
    So.. Here's the thing.... 
    LP9 was working fine and then stopped working normally according to you. Therefore what changed at the time LP9 stopped working normally?
    Here are just a few ideas to think about.. for around the time this started..
    Did you update Logic Pro 9... OS X... Drivers for Midi/Audio or other connected devices?
    If you did, did you then restore from a backup you made prior to these problems occuring and what happened when you did so? (assuming you do make backups of your system?)
    Did you install any new Apps on your Mac?
    Did you add a new Hard Drive? How is it formatted?
    Did you start recording or creating music in a different way to how you used to before the problem started?
    Have you started using a different SI or FX plugin or plugins.. More or different FX for example.. Did you install a new version of a plugin?
    Is all your software legal? (Have to ask because some people install all kinds of illegal plugins and whatever else.. and have no idea how the 'cracks' work or what they might affect/mess up/conflict with in the process)
    Have you looked at the System logs to see if anything is happening out of the ordinary when you get these messages?
    Have you looked at OS X's Activity monitor to see if any app or routine is kicking in hard when you get this issue?
    Basically, you need to think about and look for what changed... because something apparently changed to suddenly cause these issues...given you said you didn't have them until a certain timeframe and some of the questions above, I hope, will get you thinking..
    ....and maybe a few of the others here will come up with other ideas and suggestions to help you...
    Good luck and let us know how you got on...

Maybe you are looking for

  • Add button to a maintenance view

    I am working with maintenance views and user-defined events in maintenance views at the moment. Now I'd like to add a button to the maintenance view that will show a popup with recent changes to the selected line of the database table. Is that possib

  • Loose hinge

    My macbook screen is loose. Im assuming its the hinge. Is it easy to repair or should I take it in?

  • Qosmio PX30t-A-119 is not connecting to WLAN

    My PC keeps telling me no connections are available. My router is on and my phone &'iPad can connect to it but my Qosmio can't. I managed to connect it via an Ethernet cable but when I removed it it still can't pick up any broadband signal. Any ideas

  • Problem deleting users with delegated admin

    Hello, I seem to be having a problem deleting users with delegated administrator. I am using JES 2005Q4. Here is what I do: I set Inetuserstatus and mailuserstatus to deleted. Then run msuserpurge to delete the mail box. This seems to be working fine

  • Arabic writting

    I need to have a text box to write in Arabic without the need to press Alt+Shift (I am developing on Windows).