Last element of DefaultStyledDocument has \n appended, why?

Hello!
I have some trouble getting the text of styledDocument in JTextPane. I get the text recursively by traversing the Elements and convert that to xml and save it. I do not understand why I get \n as last leaf-Element. There is no \n when I call getText in Document or JTextPane. So with every saving and loading the document gets longer and longer because there is \n appended every time.
Here is a small program that shows the problem:
import javax.swing.*;
import javax.swing.text.*;
public class TextPaneWriter extends JFrame {
     public TextPaneWriter() {
          DefaultStyledDocument doc = new DefaultStyledDocument();
          try {
               SimpleAttributeSet a = new SimpleAttributeSet();
               StyleConstants.setBold(a, true);
               doc.insertString(doc.getLength(),
                         "I wish I was in Carrickfergus\n", a);
               a = new SimpleAttributeSet();
               StyleConstants.setItalic(a, true);
               doc.insertString(doc.getLength(),
                         "Only for nights in Ballygrant\n", a);
               a = new SimpleAttributeSet();
               StyleConstants.setUnderline(a, true);
               doc.insertString(doc.getLength(),
                         "I would swim over the deepest ocean,\n", a);
               a = new SimpleAttributeSet();
               StyleConstants.setBold(a, true);
               doc.insertString(doc.getLength(),
                         "For my love to find", a);
          catch (BadLocationException x) {
          JTextPane tp = new JTextPane(doc);
          this.getContentPane().add(tp);
          System.out.println("Get text of JTextPane:");
          System.out.println(tp.getText() + "END");
          System.out.println();
          System.out.println("Get text of Document:");
          try {
               System.out.println(doc.getText(0, doc.getLength()) + "END");
          catch (BadLocationException x) {
          System.out.println();
          System.out.println("Get text recursively:");
          this.writeDocRec(doc.getDefaultRootElement(), doc);
          this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          this.setSize(200,200);
          this.setVisible(true);
     private String getTextOfElement(Element styledElement,
               DefaultStyledDocument doc) {
          String text = "";
          int startOffset = styledElement.getStartOffset();
          int endOffset = styledElement.getEndOffset();
          try {
               text = doc.getText(startOffset, endOffset-startOffset);
          catch (BadLocationException x) {
               x.printStackTrace();
          return text;
     private void writeDocRec(javax.swing.text.Element element,
               DefaultStyledDocument doc) {
          if (element.isLeaf()) return;
          for (int i=0; i<element.getElementCount(); i++) {
               javax.swing.text.Element child = element.getElement(i);
                              if (child.isLeaf()) {
                    System.out.print(this.getTextOfElement(child, doc) + "END OF ELEMENT\n");
               writeDocRec(child, doc);
      * @param args
     public static void main(String[] args) {
          new TextPaneWriter();
}And this is what I am getting:
Get text of JTextPane:
I wish I was in Carrickfergus
Only for nights in Ballygrant
I would swim over the deepest ocean,
For my love to findEND
Get text of Document:
I wish I was in Carrickfergus
Only for nights in Ballygrant
I would swim over the deepest ocean,
For my love to findEND
Get text recursively:
I wish I was in Carrickfergus
END OF ELEMENT
Only for nights in Ballygrant
END OF ELEMENT
I would swim over the deepest ocean,
END OF ELEMENT
For my love to findEND OF ELEMENT
END OF ELEMENT
So why is there another element with \n?
I can only think of digging in the xml-document after parsing finding the last element and removing the last \n. Or is it \n\r or \r\n?!?!? It does not feel good to do something like that........
Thank you!
Annette
Message was edited by:
Annette

Sometimes a bit of sleep is better than any thinking!
I had an idea this morning and it seams to be working. I change the recursive method to:
     private void writeDocRec(javax.swing.text.Element element,
               DefaultStyledDocument doc) {
          if (element.isLeaf()) return;
          for (int i=0; i<element.getElementCount(); i++) {
               javax.swing.text.Element child = element.getElement(i);
               if (child.isLeaf()) {
                    int start = child.getStartOffset();
                    int end = child.getEndOffset();
                    int len = doc.getLength();
                    if (end > len) System.out.println("len " + len
                              + " start " + start + " end " + end);
                    else System.out.print(this.getTextOfElement(child, doc)
                              + "END OF ELEMENT\n");
               writeDocRec(child, doc);
     }I found that the last element, that I do NOT want and that contains that \n has endIndex > doc.getLength(). So if I find an element that satisfies this condition I know it is the last, not wanted element, and skip it. Does it make any sense to have an element with index > length?
Do you think that this is a good solution? Or is it some kind of trial and error and not really understanding what is going on?
I would appreciate some advices. Thank you!
Annette

Similar Messages

  • JTextArea text always has \n appended, why?

    I have a JTextArea with custom extension of PlainDocument. When the text area is going
    away, I write the text to an ArrayList for later use with the following code. Every time the
    document gets flushed it contains an extra '\n', even if the user never touched it. Is this
    normal behavior?
    private void flushElement(Element element, ArrayList stringList) {
    String content = null;
    int children = element.getElementCount();
    if (children>0) {
    for (int i = 0; i < children; i++) {
    flushElement(element.getElement(i), stringList);
    } else {
    try {
    if (element.isLeaf()) {
    AbstractDocument.LeafElement leaf = (AbstractDocument.LeafElement)element;
    int offset = leaf.getStartOffset();
    int length = leaf.getEndOffset()-offset;
    if (length>0) {
    content = doc.getText(offset, length);
    stringList.add(content);
    } catch (BadLocationException ble) {

    Sometimes a bit of sleep is better than any thinking!
    I had an idea this morning and it seams to be working. I change the recursive method to:
         private void writeDocRec(javax.swing.text.Element element,
                   DefaultStyledDocument doc) {
              if (element.isLeaf()) return;
              for (int i=0; i<element.getElementCount(); i++) {
                   javax.swing.text.Element child = element.getElement(i);
                   if (child.isLeaf()) {
                        int start = child.getStartOffset();
                        int end = child.getEndOffset();
                        int len = doc.getLength();
                        if (end > len) System.out.println("len " + len
                                  + " start " + start + " end " + end);
                        else System.out.print(this.getTextOfElement(child, doc)
                                  + "END OF ELEMENT\n");
                   writeDocRec(child, doc);
         }I found that the last element, that I do NOT want and that contains that \n has endIndex > doc.getLength(). So if I find an element that satisfies this condition I know it is the last, not wanted element, and skip it. Does it make any sense to have an element with index > length?
    Do you think that this is a good solution? Or is it some kind of trial and error and not really understanding what is going on?
    I would appreciate some advices. Thank you!
    Annette

  • Elements Organizer 12 Has Stopped Working -- Why?

    The program opens fine. Then, while sitting idle the organizer keeps crashing..... Why?

    Two suggestions:  the first one is a workaround. You just have to drill down your program file tree to Adobe Photoshop Elements Organizer and find the .exe file - the one specifically for Organizer, not Elements.  Make a shortcut to that file on your desktop and it will open Organizer. The second suggestion resolved the problem altogether for me. I actually called Dell and after working with several different techs over several different days, I talked to a tech in premium support who was excellent. I discovered from them that it is actually a problem with the windows system files. I have 8.1.  I went through a "refresh" on my computer which rebuilt all the files. Then reinstalled Adobe as well as my other programs again and Photoshop Elements Organizer works from the standard desktop shortcut.

  • Got error during installation saying serial number is invalid for a photoshop and premiere elements package I bought from Adobe website last year. Anybody has a solution for this? Thanks.

    Got error during installation saying serial number is invalid for a photoshop and premiere elements package I bought from Adobe website last year. Anybody has a solution for this? Thanks.

    Does your serial number show on your account page?
    https://www.adobe.com/account.html for serial numbers on your Adobe page... or
    Lost serial # http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • Why do I continue to get this message-elements 9 organizer has stopped working?

    Why do I continue to get this message - elements 9 organizer has stopped working? 

      The Organizer preferences may have become corrupted, needing to be automatically re-built on a re-start.   Close Elements.
    Navigate to:John > AppData >Roaming >Adobe >Photoshop Elements >9.0 >Organizer
    Delete the PSA file (with key symbol) and delete Status.dat
    Re-start the program
    N.B. replace John with your own user name or click the start button and select your user name above documents.
     

  • Photoshop elements 13 editor has stopped working EVERYTIME i try to use smart detail brus.windows 7 home edition with plent of memeory and speed. any ideas WHY

    photoshop elements 13 editor has stopped working EVERYTIME i try to use smart detail brus.windows 7 home edition with plent of memeory and speed. any ideas WHY

    The faulting module is photoshop. Report below.
    Source
    Adobe Photoshop CC 2014
    Summary
    Stopped working
    Date
    2/2/2015 4:54 PM
    Status
    Report sent
    Description
    Faulting Application Path: C:\Program Files\Adobe\Adobe Photoshop CC 2014\Photoshop.exe
    Problem signature
    Problem Event Name: APPCRASH
    Application Name: Photoshop.exe
    Application Version: 15.2.2.310
    Application Timestamp: 5480338c
    Fault Module Name: Photoshop.exe
    Fault Module Version: 15.2.2.310
    Fault Module Timestamp: 5480338c
    Exception Code: c000001d
    Exception Offset: 00000000049de322
    OS Version: 6.3.9600.2.0.0.768.101
    Locale ID: 1033
    Additional Information 1: 8db4
    Additional Information 2: 8db473619c10c0c8b85ce99afe676ed8
    Additional Information 3: f06d
    Additional Information 4: f06da704bdd5338df2a8d09bde2244bb
    Extra information about the problem
    Bucket ID: 1fe6d1d4e5765bd348843b981b8ec4d2 (85990875000)

  • Lots of blank space when printing array with only last element printed

    I have a slight problem I have been trying to figure it out for days but can't see where my problem is, its probably staring me in the face but just can't seem to see it.
    I am trying to print out my 2 dimensional array outdie my try block. Inside the trying block I have two for loops in for the arrays. Within the second for loop I have a while to put token from Stringtokeniser into my 2 arrays. When I print my arrays in this while bit it prints fine however when I print outside the try block it only print the last element and lots of blank space before the element.
    Below is the code, hope you guys can see the problem. Thank you in advance
       import java.io.*;
       import java.net.*;
       import java.lang.*;
       import java.util.*;
       import javax.swing.*;
       public class javaflights4
          public static final String MESSAGE_SEPERATOR  = "#";
          public static final String MESSAGE_SEPERATOR1  = "*";
          public static void main(String[] args) throws IOException
             String data = null;
             File file;
             BufferedReader reader = null;
             file = new File("datafile.txt");
             String flights[] [];
                   //String flightdata[];
             flights = new String[21][7];
             int x = 0;
                   //flightdata = new String[7];
             int y = 0;
             try
                reader = new BufferedReader(new FileReader(file));   
                //data = reader.readLine();   
                while((data = reader.readLine())!= null)   
                   data.trim();
                   StringTokenizer tokenised = new StringTokenizer(data, MESSAGE_SEPERATOR1);
                   for(x = 0; x<=flights.length; x++)
                      for(y = 0; y<=flights.length; y++)
                         while(tokenised.hasMoreTokens())
                            //System.out.println(tokenised.nextToken());
                            flights [x] [y] = tokenised.nextToken();
                            //System.out.print("*"+ flights [x] [y]+"&");
                   System.out.println();
                catch(ArrayIndexOutOfBoundsException e1)
                   System.out.println("error at " + e1);
                catch(Exception e)
                finally
                   try
                      reader.close();
                      catch(Exception e)
             int i = 0;
             int j = 0;
             System.out.print(flights [j]);
    //System.out.println();

    A number of problems.
    First, I bet you see a lot of "error at" messages, don't you? You create a 21x7 array, then go through the first array up to 21, going through the second one all the way to 21 as well.
    your second for loop should go to flights[x].length, not flights.length. That will eliminate the need for ArrayIndexOutOfBounds checking, which should have been an indication that you were doing something wrong.
    Second, when you get to flights[0][0] (the very first iteration of the inner loop) you are taking every element from the StringTokenizer and setting flights[0][0] to each, thereby overwriting the previous one. There will be nothing in the StringTokenizer left for any of the other (21x7)-1=146 array elements. At the end of all the loops, the very first element in the array (flights[0][0]) should contain the last token in the file.
    At the end, you only print the first element (i=0, j=0, println(flight[ i][j])) which explains why you see the last element from the file.
    I'm assuming you have a file with 21 lines, each of which has 7 items on the line. Here is some pseudo-code to help you out:
    count the lines
    reset the file
    create a 2d array with the first dimension set to the number of lines.
    int i = 0;
    while (read a line) {
      Tokenize the line;
      count the tokens;
      create an array whose size is the number of tokens;
      stuff the tokens into the array;
      set flights[i++] to this array;
    }

  • JComboBox shows "Java Applet Window" as last element

    Hey all,
    I am having a problem with using JComboBox. When I use JComboBox and show it in a JDialog (popup window), the last element of the drop down (JComboBox) is "Java Applet Window". This element is, however, not selectable. I want to get rid fo the "Java Applet Window" in my dropdown.
    This problem only happens when my applet opens up a JDialog that has the JComboBox, but does not happen when I add the JComboBox directly to the applet.
    I've read around in other forums that this has to do with security. I understand the need to show that a popup window (JDialog) is an applet window so the user doesn't mistake it as one of the native windows. But, the JComboBox is not a whole 'nother window, so why does it feel the needs to add that last line to designate it as a "Java Applet Window?"
    Thanks.
    Nina.

    My apologies, I did not clarify myself in my question. Sorry that I created misunderstandings of the problem - as evident in the response in the previous post from himanshug.
    I am using JDK 1.3.1
    I must use an applet, but all my components are standalone. They can be ran as a standalone application. But for deployment, we are using applets. It's easier to do applets so clients can access via browser than deploy a whole application installation on 50 machines halfway across the world.
    And no, there is no element in my list that says "Java Applet Window". When running my application standalone, the "Java Applet Window" does not appear as the last element in my drop down.
    The "Java Applet Window" also does NOT appear when I add the drop down directly to the applet. It only appears when the drop down is in a JDialog that gets launched by an applet.
    My problem: How to get rid of the "Java Applet Window" as it seems something is adding this to my dropdown. And it's not my code that is adding it.
    Thanks. I am also up'ing the duke dollars for a solution to this to 15.

  • New Adobe Photoshop elements 11-can not share pictures. I do use AOL email. Get error of "Elements 11 Organ. has stopped working,  I have looked into sharing tab and my only option is Adobe email settings.  I do have outlook set up to work on computer run

    New Adobe Photoshop elements 11-can not share pictures. I do use AOL email. Get error of "Elements 11 Organ. has stopped working,  I have looked into sharing tab and my only option is Adobe email settings.  I do have outlook set up to work on computer running windows 8.1  Please help, Mainly use to share pictures.  Thanks!

    One thing puzzles me:
    RedClayFarmer wrote:
    I then found one suggestion that the problem might involve permissions. The suggestion was to right click PhotoshopElementsOrganizer.exe in its installation folder (which on my computer is at at D:\Photo\Elements 11 Organizer) and run Organizer as an administrator. This also failed.
    I don't understand why running the exe from the installation folder would have worked.
    I would have simply tried to run that exe from its real location :
    Sorry, I can't help you more about permissions...

  • How to select the last elements in a string

    Hi Guys
    I am using UART RS232 protocol and i need to calculate the check sum. My data came in decimal and in the end it must be doubles to manipulate it. So my problem is, for example, the sum of all elemants is in decimal 1742 and in hex is 6CE and i wont only the last two elemants, CE that corresponds to 206 that is the result of my checksum. Can anyone help me? 
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    String last elements.vi ‏9 KB

    Thanks Syrpimp
    My data came from HMI in decimal like the example that i show above. Each cell is a value. You used an array, but i think that i can't use it because it must be done automatically and the data field have variable length. 
    The UART protocol frame has a start frame field that corresponds to two ‘{‘ characters and an end frame field that corresponds to two ‘}’. Additionally, besides the data field, that has variable length, it has a byte that corresponds to the command type and another that is the checksum. The following table illustrates the protocol.
    Bytes considered in checksum
    Command Data
    Start Frame
    Cmd
    (hex)
    Data0
    Data1
    Data2
    Data3
    Data4
    Data5
    Data6
    Data…
    CHK SUM
    End Frame
    1 Byte CHK SUM (sum of all data bytes truncated to 1 byte)
    Fig. 1 UART communication protocol template
    I receive data like this:
    123
    123
    160
    54
    111
    103
    110
    108
    107
    109
    108
    108
    100
    100
    100
    100
    0
    0
    1
    4
    5
    0
    0
    0
    0
    0
    0
    7
    96
    1
    0
    0
    0
    0
    0
    10
    51
    1
    0
    0
    51
    1
    1
    23
    12
    0
    206
    125
    125
    I'm trying explain my doubt the best way i can and i thank you all.

  • Last time the table has been accessed flag

    Is there any easier way to "log" when was the last time every table has been accessed than this ones:
    -Audit all on every table and just check sys.aud$ when was the last time the table has a session rec (action# = 103)
    -Place a trigger on every table to log the last access
    If you wonder why I need it is beacause I have around 200 tables, some of them quite heavy, and probably half of them are not being used anymore so I want to backup and delete those tables from the database.
    Thanks

    Easier than
    audit select on table <your_table> by access;and later query DBA_AUDIT_TRAIL?
    Don't think so.

  • Elements 12 organizer has stopped working on importing of files

    I am running a brand new PC w8.1 fresh install, second install of elements and photoshop 12.  when I am attempting to import my files in the organizer I am getting a consistant crash "Elements 12 organizer has stopped working".  Need assistance to make this go away.
    Background:
    The crash happens while importing videos or photos (have not even gotten to the part to work with files yet)
    I have tried to take smaller imports (less then a couple hundred files) but that doesn't seem to matter.
    It is not crashing on a consistent file.  Sometimes when I try again, it completes the import.
    Brand new Dell PC 7i, 24 gig ram, amd advance graphics card (PC not the issue)
    Windows 8.1 pretty much out of the box.
    Tried to "rename" the psa file to psaold, (still crashing).
    Re installed software, no change
    Downloaded the latest updates for everything.
    Webroot security
    Thanks for any help you can give me, I hate to have to return the product but considering how unstable it is when everything is fresh, I cant imagine living with this.
    Ted

    for those of you out there, and potential buyers, here is my chat session with customer support.
    You are now chatting with Tanvi.
    Tanvi: Hello. Welcome to Adobe Technical Support.
    Tanvi: Hi Theodore
    theodore brown: hello, need help as you see frustrated beyond words, why a software program would not work on a brand new high powered PC with fresh everything..
    Tanvi: I understand that you are facing issues while using Photoshop Elements. Is that correct?
    theodore brown: correct version 12 with update to 12.1
    theodore brown: out of the box, so to speak.
    Tanvi: Let me see how best I can help you with this
    theodore brown: OK, shoot
    Tanvi: Theodore, support for Photoshop elements is not available through chat and phone. You can refer the links below for further help with this :
    Tanvi: Adobe Help and Support :      http://www.adobe.com/support/
    Tanvi: Adobe User Forums : http://forums.adobe.com/index.jspa?promoid=DJGWK
    theodore brown: are you kidding me? is this a robot or a real person. I posted and issue two days ago and nothing. I have been through the forum, and there is a TON of people with the same problem, and a whole bunch of guessing on what to do, I dont have time to play games here, I need someone to explain a solution, this should be easy, its on a brand new system and a brand new install
    Tanvi: I understand however, according to Adobe's policy support for Photoshop Elements is available only till 90 days since the release date.
    Tanvi: You can post your query on forums. Our experts and users will respond with possible resolutions
    theodore brown: what does that mean???
    theodore brown: they only support thier product for 90 days, not when a customer buys?
    Tanvi: Support for Photoshop Elements is available only till 90 days since the release date.
    Tanvi: Since Photoshop Elements 12 was released in September, 2013 , support is available only through help files and user forums.
    Tanvi: This is applicable for Photoshop Elements and Premiere Elements only.
    Tanvi: Support is available for the Creative cloud applications
    Tanvi: Is there anything else I can help you with?
    theodore brown: and this is not there are a TON of people in the community with the "stop working problem" and no real answers, just guessing.
    theodore brown: yea, help solve the problem or how do I get my money back.
    Tanvi: I apologize, as I mentioned earlier, support for Photoshop elements is not available through chat and phone anymore.
    Tanvi: You can return the software within 30 days since the purchase date.
    Tanvi: May I know when was the software purchased and from where?
    theodore brown: amazon
    Tanvi: May I know when was the software purchased ?
    theodore brown: I am looking up on amazon
    theodore brown: I have been trying to make this software work, in my personal time when I can for TWO WEEKS.
    Tanvi: Okay
    theodore brown: Multiple install, I am dumb enough to uninstall again, after spending 8 hours trying to load my catalog for the 3rd time, with about 20 crashes.
    Tanvi: Were you able to check the purchase date?
    theodore brown: working on it.
    theodore brown: july 27th
    theodore brown: received a few days after that.
    Tanvi: Okay
    theodore brown: Okay?
    theodore brown: whats that mean.
    Tanvi: Theodore, the time frame to return the software is 30 days however, let me transfer the chat to our customer service department. They will  check whether an exception can be made for you since it is just 2 days past the time frame.
    Tanvi: Shall I transfers the chat?
    theodore brown: It shipped on July 30th.
    theodore brown: does that count?
    Tanvi: We check the purchase date. Shall I transfer the chat to our customer service department?
    theodore brown: sure
    Tanvi: Please stay online while I transfer the chat
    theodore brown: OK, no hurry, Plenty of time to update my post on the support I received. and write a review on amazon.
    Please wait while I transfer the chat to the appropriate group.
    You are now chatting with Pushpa. To ensure we stay connected throughout our interaction , please don't click on the 'x' in the chat window. Doing so will disconnect our chat session.
    Pushpa: Hello! Welcome to Adobe Customer Service.
    Pushpa: Hi Theodore.
    theodore brown: Hello, I am here. I am frustrated with your product beyond words. how the product does not work on a brand new pc and and a brand new install with all new and updates is beyond me. I have wasted many many hours trying to get the product to work. and I can get NO SUPPORT this is crazy.
    Pushpa: I understand that you are unable to  use Photoshop Elements. Is that correct?
    Pushpa: I will be glad to help you with this issue.
    Pushpa: Please allow me 2 to 3 minutes while I pull up your account details and see what best I can do.
    theodore brown: correct.
    theodore brown: https://forums.adobe.com/message/6676345
    Pushpa: Thank you for staying online.
    Pushpa: May I know the exact error message you are getting?
    theodore brown: Organizer has stopped work......
    theodore brown: working.....
    Pushpa: I checked and see that you are placed an order for Adobe Photoshop Elements 10 & Adobe Premiere Elements 10 with the order number AD005596081 on Aug. 04, 2012.
    Pushpa: Theodore, you mean it is working?
    theodore brown: yea, I did, and then bought 12, because 10 didn't work so well on my old PC, so bought a new pc and 12 via amazon.
    Pushpa: Great!
    Pushpa: Is there anything else I can help you with?
    theodore brown: not great! its been beyond frustrating.
    theodore brown: yea, I want the product to WORK. or I want my money and time back.
    theodore brown: you didnt got to the post I sent. I got a brand new PC and and a brand new install everything is up to date and crash after crash. its just not right not to support the product.
    theodore brown: writing my amazon review as we write.
    Pushpa: Theodore, I checked and see that you are purchased the software from Adobe. May I know about which software you are talking about?
    Pushpa: Sorry for the typo.
    theodore brown: I bought via Amazon photoshop elements 12. I have been trying since I received the product to get it to work on a brand new PC with brand new everything, no conflicts, and it crashes all the time.
    theodore brown: May I ask, what would you do?
    Pushpa: Please will you confirm how many days back you purchased the software?
    theodore brown: It was delivered on July 30th.
    Pushpa: You can return the software within 30 days since the purchase date.
    theodore brown: the order date is july 27th.
    theodore brown: that is why I believe I was forwarded to you.
    Pushpa: We can initiate the refund within 30 days of purchase.
    theodore brown: It is now August 28th (I added this for my review I will post)
    theodore brown: I think it will be important for future customers to see all this.
    theodore brown: sorry, potential customers.
    Pushpa: If is Adobe purchase we can assist you with the process as you purchased the software from reseller you have to contact the point of purchase.
    theodore brown: So that's it, thank you for your donation? sorry no help for me?
    theodore brown: like I asked. What would you do?
    Pushpa: Am sorry to inform you that please try and understand,  Adobe purchase we can assist you with the process as you purchased the software from reseller you have to contact the point of purchase.
    Pushpa: Is there anything else I can help you with?
    theodore brown: Nope, guess not, I will make sure I post this. have a good day

  • Elements 10 Organizer has stopped working (again)

    Upgraded fromearlier version and successfully imported catalog.  Have been doing weeks worth of organizing, when this morning an album was open and I got some kind of corruption error message.  I repaired the catalog, despite being informed there was no corruption and,.when it completed, I began getting "Elements 10 Organizer has stopped working" errors from Windows 7.  From this point forward, the error occurs seconds after opening the organizer. I have tried deleting the psa.prf and status.dat, with no luck.
    I have also tried launing the organizer directly, also with no luck.  After reading several related posts, I am getting the sense that this product is now being sold without support, ala some 1980's software.
    Does anybody have a clue as to why this is happening?
    Thanks in advance.

    Several, and here are a few representative samples:
    From the Applications log:
    Faulting application name: PhotoshopElementsOrganizer.exe, version: 10.0.0.0, time stamp: 0x4e5e9821
    Faulting module name: ntdll.dll, version: 6.1.7601.17514, time stamp: 0x4ce7ba58
    Exception code: 0xc0000005
    Fault offset: 0x00038da9
    Faulting process id: 0xb04
    Faulting application start time: 0x01ccb2ff2374f323
    Faulting application path: C:\Program Files (x86)\Adobe\Elements 10 Organizer\PhotoshopElementsOrganizer.exe
    Faulting module path: C:\Windows\SysWOW64\ntdll.dll
    Report Id: 4d1822fb-1ef3-11e1-95e8-782bcb9381eb
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Faulting application name: PhotoshopElementsOrganizer.exe, version: 10.0.0.0, time stamp: 0x4e5e9821
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x69614d5c
    Faulting process id: 0x544
    Faulting application start time: 0x01ccb302d18f222e
    Faulting application path: C:\Program Files (x86)\Adobe\Elements 10 Organizer\PhotoshopElementsOrganizer.exe
    Faulting module path: unknown
    Report Id: 1411c0e8-1ef6-11e1-95e8-782bcb9381eb
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Faulting application name: PhotoshopElementsOrganizer.exe, version: 10.0.0.0, time stamp: 0x4e5e9821
    Faulting module name: quartz.dll, version: 6.6.7601.17514, time stamp: 0x4ce7b99c
    Exception code: 0xc000001d
    Fault offset: 0x00064d5c
    Faulting process id: 0x314
    Faulting application start time: 0x01ccb303f87665d7
    Faulting application path: C:\Program Files (x86)\Adobe\Elements 10 Organizer\PhotoshopElementsOrganizer.exe
    Faulting module path: C:\Windows\SysWOW64\quartz.dll
    Report Id: 3bbc576d-1ef7-11e1-95e8-782bcb9381eb
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Windows cannot access the file  for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program Elements 10 Organizer because of this error.
    Program: Elements 10 Organizer
    File:
    The error value is listed in the Additional Data section.
    User Action
    1. Open the file again. This situation might be a temporary problem that corrects itself when the program runs again.
    2. If the file still cannot be accessed and
              - It is on the network, your network administrator should verify that there is not a problem with the network and that the server can be contacted.
              - It is on a removable disk, for example, a floppy disk or CD-ROM, verify that the disk is fully inserted into the computer.
    3. Check and repair the file system by running CHKDSK. To run CHKDSK, click Start, click Run, type CMD, and then click OK. At the command prompt, type CHKDSK /F, and then press ENTER.
    4. If the problem persists, restore the file from a backup copy.
    5. Determine whether other files on the same disk can be opened. If not, the disk might be damaged. If it is a hard disk, contact your administrator or computer hardware vendor for further assistance.
    Additional Data
    Error value: 00000000
    Disk type: 0
    From the System log:
    Faulting application name: PhotoshopElementsOrganizer.exe, version: 10.0.0.0, time stamp: 0x4e5e9821
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x69614d5c
    Faulting process id: 0xcbc
    Faulting application start time: 0x01ccb2e2ef95e251
    Faulting application path: C:\Program Files (x86)\Adobe\Elements 10 Organizer\PhotoshopElementsOrganizer.exe
    Faulting module path: unknown
    Report Id: 329f3f34-1ed6-11e1-bc0d-782bcb9381eb
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Faulting application name: PhotoshopElementsOrganizer.exe, version: 10.0.0.0, time stamp: 0x4e5e9821
    Faulting module name: ntdll.dll, version: 6.1.7601.17514, time stamp: 0x4ce7ba58
    Exception code: 0xc0000005
    Fault offset: 0x00038da9
    Faulting process id: 0x734
    Faulting application start time: 0x01ccb2e2274cc5cb
    Faulting application path: C:\Program Files (x86)\Adobe\Elements 10 Organizer\PhotoshopElementsOrganizer.exe
    Faulting module path: C:\Windows\SysWOW64\ntdll.dll
    Report Id: 6ffe240a-1ed5-11e1-bc0d-782bcb9381eb

  • Stopping while loop after last element of 2d array is passed through

    I posted something similar to this before, but what I got didn't work.  So this time I'll try to be more clear with what I am trying to do.  What I have done is combine two 1d arrays into a 2d array, and am using it to run an experiment.  I split the 2d array into a 1d array by column, and am trying to get the while loop that the array is in to stop after  the last element of the array is indexed.  I need to use a while loop because the array is constantly updating because the number of elements can be changed while the program is running.  What I am having trouble with is getting the while loop to stop after the last element has run, because the last element is subject to change.  Any ideas?
    Thanks 

    I am trying to run a measurement using labview to control different instruments.  The program is suppossed tp work in that it runs a measurement for each current setpoint inputed, for 1 magnetic field setpoint.  So for example, if the magnetic field setpoint is 8000 gauss, and the two current setpoints are .00001 amp, and .0001 amp, it will run the meauserement twice for the 2 current setpoints for each magnetic field setpoint.  What I am trying to do is that sometimes, I might have to edit the magnetic field setpoints while the program is running.  I am having trouble with refreshing the magnetic field setpoints, which allows the user to input a new magnetic field setpoint while it is running.

  • Retrieve Last element from Collection

    Hi,
    I am a beginner in Java. Can somebody tell me how to retrieve last element from java.util.collection without Iterating?

    Hi,
    I am a beginner in Java. Can somebody tell me
    how to retrieve last element from
    java.util.collection without Iterating?You realize of course that this is rather silly since not every Collection necessarily has a "last" element. For it to have the notion of a "last" element it would have be ordered and would be a List.

Maybe you are looking for

  • Site-To_Site VPN problem

    Hello everyone I'm installing a new site-to-site VPN connection between two sites, having problems bringing the tunnel online. We have two ASA 5505 firewalls - one at our Central site, and another for our customer at the Remote site. I wiped both fir

  • Webi Report Performance issue as compared with backaend SAP BW as

    Hi We are having Backend as SAP BW. Dashboard and Webi reports are created with Backend SAP BW. i.e thru Universe on top of Bex query and then webi report and then dashboard thru live office. My point is that when we have created webi reprts with dat

  • Is there any other way to achieve per user call forward restriction other than to create multiple voice policies?

    Hello, We mentioned the environment details below: Environment In our PBX environment, currently a user can forward calls to any local (within a region) internal extension. But for external PSTN call forwarding, a user needs to send a request and be

  • Web Service do not work after save in Designer ES2 SP1

    Dear all, I am trying to migrate 8.2.1 process to ES2. Although it have some bugs, but the process are working fine when using ES2 without any SP. One day we installed SP1 for ES2 and hopeing for some bugs we found fixed, but find none of them fixed.

  • HP Split x2 101er SSD upgrade

    Now I gave HP split x2 101er with 64Gb SSD. Can I upgrade it with Plextor 256Gb SSD Plextor PX-256M6M? (replace 64Gb to 256?) or 128 is max? This question was solved. View Solution.