More Transaction Questions

I posted this under an answered question but realized I should have started a new thread.
Some more questions on transactions:
XmlTransaction txn = DBManager->Manager->createTransaction();
res = DBManager->Manager->query(txn, query.str(), queryContext, 0);
XmlValue on;
while( res.next(on) )
c->Response += on.asString();
txn.commit();
In the above code does the txn.commit() have to happen after the processing of the result? In other words what happens if the transaction is committed before the while loop?
Second question, in another section of the code I am doing similar to the above the difference is the query result is a list of documents to be deleted so the while loop is more like this:
while( res.next(on) )
container->deleteDocument(txn, on.asString(), context);
If I am deleting several thousand documents (in this case 2300) will there be an issue with the transaction being able to hold that many deletes?

Hello,
2 good questions.
1. It depends. If you have returned constructed content (e.g. return <foo>{...}</foo>) where the values will not refer to the container nodes then you can safely commit right after the query unless you are using lazy evaluation, in which case you cannot commit until you are done iterating. If any results may point into the container you cannot commit until you've processed them all or can otherwise guarantee that you won't touch the container outside the transactions.
If you violate the rule you'll get an exception saying so.
2. 2300 results isn't that large. The issues related to deleting so much content in a single transaction include:
a. a lot of data written to the log at commit time
b. using a fair bit of resource in terms of locks, etc
c. concurrency -- holding off other operations. document deletion is at least as time-consuming as insertion
If any of these are real problems for you, you could copy the document names somewhere and delete them in bite-size chunks in separate transactions.
Regards,
George

Similar Messages

  • FEBA - How to post two or more transactions at the same time?

    Hi,
        one of our banks sends the statemets with many lines that belongs to the same transaction. We have to post partially one line, and afterwards the other line. Any of you know how to post two lines at the same time from the bank statement?
    Thank you in advance,
    Miguel

    Hi,
    I'm sorry for replying so late.
    The solution I reached was to change the a few things in the standard.
    Now I have a new "context menu item". I select two or more transactions and I right-click the mouse. I select that "context menu item" and the next part of the code adds the total amount of the transactions to look for the correct post for the first transaction. Once posted automatically, the next transaction is posted automatically by the system.
    I hope you understand my English. I've problem with technical FI terms.
    Here you are the code:
    First I added a new contextual menu item:
    CL_FEBAN_ALV_GRID=============CCIMP
    call method e_object->add_function
        EXPORTING
            fcode = 'BS_POST_ITEMS'
            text = text-002.
    *{ INSERT DHTK904078 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        call method e_object->add_function
            EXPORTING
                fcode = 'ZBS_POST_ITEMS'
                text = text-Z02.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        call method e_object->add_function
            EXPORTING
                fcode = 'BS_KILL_ADVICE'
                text = text-004.
    CL_FEBAN_ALV_GRID=============CCIMP
    when 'BS_POST_ITEMS'.
        call method cl_feban_propagator=>raise_event
            EXPORTING
                i_event = 'POST_ITEMS'
                i_ref_to_item = l_ref_to_item.
    *{ INSERT DHTK904078 2
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        when 'ZBS_POST_ITEMS'.
            call method cl_feban_propagator=>raise_event
                EXPORTING
                    i_event = 'ZPOST_ITEMS'
                    i_ref_to_item = l_ref_to_item.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        when 'BS_LOCK_ITEMS'.
            call method cl_feban_propagator=>raise_event
                EXPORTING
                    i_event = 'LOCK_ITEMS'
                    i_ref_to_item = l_ref_to_item.
    CL_FEBAN_PROPAGATOR===========CM001
        when 'POST_ITEMS'.
            raise event post_items
                exporting i_ref_to_item = i_ref_to_item.
    *{ INSERT DHTK904078 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        when 'ZPOST_ITEMS'.
            data: zvalor(1) value '' .
                export zvalor from 'X' to memory ID 'ZFEBA01'.
                raise event post_items
                    exporting i_ref_to_item = i_ref_to_item.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        when 'LOCK_ITEMS'.
            raise event lock_items
                exporting i_ref_to_item = i_ref_to_item.
    Now, I proceed to calculate the total amount of the selected transactions to look for the correct one to post.
    LNEW_FEBAF01
    *     user parameter
            l_feban_position type c.
            field-symbols: <items> type item_tab_type.
    *{ INSERT DHTK904077 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        data: zvalor(1) value '',
            zkwbtr type kwbtr,
            kwb type kwbtr.
        import zvalor to zvalor from memory ID 'ZFEBA01'.
        if ( zvalor is not initial ).
            if not i_ref_to_item is initial.
                assign i_ref_to_item->* to <items>.
                loop at <items> into h_item.
                    select single kwbtr
                        into kwb
                        from febep
                        where kukey = h_item-kukey and
                            esnum = h_item-esnum.
                            zkwbtr = zkwbtr + kwb.
                endloop.
            endif.
            export zkwbtr from zkwbtr to memory ID 'ZKWBTR'.
        endif.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        refresh g_picked_items.
        if not i_ref_to_item is initial.
            assign i_ref_to_item->* to <items>.
            loop at <items> into h_item.
                move-corresponding h_item to h_picked_items.
                append h_picked_items to g_picked_items.
            endloop.
        endif.
        submit rfebbu00 and return
            user sy-uname
            with anwnd = r_doc->*-anwnd
            with s_kukey in s_kukey
            with s_esnum in s_esnum
            with buber = g_posting_area
            with mregel = '1'
            with function = 'C'
            with mode = g_mode
            with p_bupro = g_bupro.
    *{ INSERT DHTK904077 2
    *--> Miguel Estu00E9vez - 17/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        if ( zkwbtr is not initial ).
            select single kwbtr
                into kwb
                from febep
                where kukey = h_kukey-low and
                    esnum = h_esnum-low.
                    zkwbtr = zkwbtr - kwb.
            export zkwbtr from zkwbtr to memory ID 'ZKWBTR'.
        endif.
    *<-- Miguel Estu00E9vez - 17/06/2008
    *} INSERT
        refresh s_kukey.
        refresh s_esnum.
        clear h_kukey.
        clear h_esnum.
    endloop. "loop over all picked items
    call function 'CUSTOMIZED_MESSAGE'
        EXPORTING
            i_arbgb = 'NEW_FEBA'
            i_dtype = '-'
            i_msgnr = '110'.
    RFEBBU00
    * original transaction currency provided and posting area = 2.
            ftclear-selvon = febep-fwbtr. "INSERT - mpEURO
        ENDIF. "INSERT - mpEURO
        CONDENSE ftclear-selvon NO-GAPS.
    *{ INSERT DHTK903977 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        data: zkwbtr type kwbtr.
        import zkwbtr to zkwbtr from memory ID 'ZKWBTR'.
        if ( zkwbtr is not initial ).
            ftclear-selvon = zkwbtr.
            clear zkwbtr.
        endif.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
    APPEND ftclear.
    ** Begin of comment C5053248
    * perform druck_buzei_ftclear using ftclear-agkon.

  • I need some more interview question with answer on modeling,reporting.

    i need some more interview question with answer on modeling,reporting.

    Hi,
    You may find tons of topic about interview question. Please try to search forums before opening a post next time.Take a look at the link below.
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=bwinterviewquestions&adv=true&adv_sdn_all_sdn_author_name=
    Regards,
    ®

  • Every time I try to get on the ipod, it says I have to add more security questions, but none are listed, just two buttons that say submit.

    Every time I try to get on the Ipod games, it says I have to add more security questions, but no questions are listed, just two buttons that say "Submit" and places to put the answers to the unstated questions.  It also asks for a second email address.  It then proceeds to lock up.  Is this a scam of some sort.  There is nothing on the apple website about having additional security questions other than the one, or having a second email to operate the ipod.

    You need to contact Apple to get the questions reset. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    Whichever method you use, you probably won't get a response until the 26th. If you absolutely must make a purchase before then, create a new Apple ID; you won't be able to transfer previous purchases or iTunes Store credit to it.
    (95471)

  • A Simpler, More Direct Question About Merge Joins

    This thread is related to Merge Joins Should Be Faster and Merge Join but asks a simpler, more direct question:
    Why does merge sort join choose to sort data that is already sorted? Here are some Explain query plans to illustrate my point.
    SQL> EXPLAIN PLAN FOR
      2  SELECT * FROM spoTriples ORDER BY s;
    PLAN_TABLE_OUTPUT
    |   0 | SELECT STATEMENT |              |   998K|    35M|  5311   (1)| 00:01:04|
    |   1 |  INDEX FULL SCAN | PKSPOTRIPLES |   998K|    35M|  5311   (1)| 00:01:04|
    ---------------------------------------------------------------------------------Notice that the plan does not involve a SORT operation. This is because spoTriples is an Index-Organized Table on the primary key index of (s,p,o), which contains all of the columns in the table. This means the table is already sorted on s, which is the column in the ORDER BY clause. The optimizer is taking advantage of the fact that the table is already sorted, which it should.
    Now look at this plan:
    SQL> EXPLAIN PLAN FOR
      2  SELECT /*+ USE_MERGE(t1 t2) */ t1.s, t2.s
      3  FROM spoTriples t1, spoTriples t2
      4  WHERE t1.s = t2.s;
    Explained.
    PLAN_TABLE_OUTPUT
    |   0 | SELECT STATEMENT       |              |    11M|   297M|       | 13019 (6)| 00:02:37 |
    |   1 |  MERGE JOIN            |              |    11M|   297M|       | 13019 (6)| 00:02:37 |
    |   2 |   SORT JOIN            |              |   998K|    12M|    38M|  6389 (4)| 00:01:17 |
    |   3 |    INDEX FAST FULL SCAN| PKSPOTRIPLES |   998K|    12M|       |  1460 (3)| 00:00:18 |
    |*  4 |   SORT JOIN            |              |   998K|    12M|    38M|  6389 (4)| 00:01:17 |
    |   5 |    INDEX FAST FULL SCAN| PKSPOTRIPLES |   998K|    12M|       |  1460 (3)| 00:00:18 |
    Predicate Information (identified by operation id):
       4 - access("T1"."S"="T2"."S")
           filter("T1"."S"="T2"."S")I'm doing a self join on the column by which the table is sorted. I'm using a hint to force a merge join, but despite the data already being sorted, the optimizer insists on sorting each instance of spoTriples before doing the merge join. The sort should be unnecessary for the same reason that it is unnecessary in the case with the ORDER BY above.
    Is there anyway to make Oracle be aware of and take advantage of the fact that it doesn't have to sort this data before merge joining it?

    Licensing questions are best addressed by visiting the Oracle store, or contacting a salesrep in your area
    But I doubt you can redistribute the product if you aren't licensed yourself.
    Question 3 and 4 have obvious answers
    3: Even if you could this is illegal
    4: if tnsping is not included in the client, tnsping is not included in the client, and there will be no replacement.
    Tnsping only establishes whether a listener is running and shouldn't be called from an application
    Sybrand Bakker
    Senior Oracle DBA

  • Transaction questions

    Howdy all.
    I have some questions about transactions. I have a particular function that does some dynamic stuff. It creates a table dynamically, creates some indexes on the table dynamically, and grants rights to the table dynamically. I am building a string for each of these actions dynamically and executing it. Then the procedure does some other things like inserting in some tables and such. If any part of the function does not finish successfully, I would like to rollback whatever has been done. I would also like to return the initial error with original line number to the caller of the function.
    I have tried some SET TRANSACTION READ WRITE stuff with COMMIT WORK at the end of successful completion and ROLLBACK WORK in an exception handler at the end of the function. But I am having problems getting Oracle to rollback all work and return the original error to the caller.
    Here is the basic layout of what I want.
    BEGIN
    <execute immediate to create table>
    <execute immediate to create indexes on table>
    <execute immediate to grant rights to table>
    <do inserts and other non-dynamic stuff>
    EXCEPTION
    WHEN OTHERS THEN
    ROLLBACK WORK;
    RAISE <original error with line numbers>;
    RETURN (1);
    END;
    If an error happens after the creation of the table, I want the create table to be rolled back. I realize that I could just manually drop table in my exception handler, but I have several cases like this that I would like to handle with transactions instead of large exception handlers.
    Any help would be appreciated. I can explain more if needed.
    wally

    DDL issues COMMIT before and after the statement. Consequently, it cannot be rolled back. If you want to drop the tables you'll have to explicitly call the DROP statement.
    I'm not a big fan of functions to do this sort of thing, because table creation, etc ought not to be done on the fly. It should be done in a controlled fashion, in a script. Apart from anything else, a script gives you:
    (1) a record of what exactly was run, in case you need to run it again.
    (2) something that can be stowed in source control repository.
    There's no reason why the production of that script cannot be automated.
    Cheers, APC

  • JMS Transaction Questions

              Greetings,
              I have the following questions regarding Transactions in JMS:
              1. What constitutes a transaction in JMS? Assuming there are 2 clients, one which
              is just a Subscriber and the other just a Publisher. What will constitute a transaction
              in this scenario?
              2. While configuring, JMS Connection Factory, a parameter present is " Transaction
              Timeout ", with a defualt value of 3600 secs. At what point, does this time starts
              ticking ? Is there anyway to disable this value or the only solution is to increase
              it as required.
              

              vinay s wrote:
              > Greetings,
              >
              > I have the following questions regarding Transactions in JMS:
              > 1. What constitutes a transaction in JMS? Assuming there are 2 clients, one which
              > is just a Subscriber and the other just a Publisher. What will constitute a transaction
              > in this scenario?
              >
              A receive or send operation performed under a transaction. The operation
              becomes transactional.
              >
              > 2. While configuring, JMS Connection Factory, a parameter present is " Transaction
              > Timeout ", with a defualt value of 3600 secs. At what point, does this time starts
              > ticking ? Is there anyway to disable this value or the only solution is to increase
              > it as required.
              This applies to transacted sessions. A special kind of transactional behavior
              unique to JMS. WL JMS also supports user transactions (JTA), which
              is more unique.
              Note that 3600 seconds is a long time, standard transactions actually
              default to a limit of 30 seconds...
              To learn about this stuff, I recommend reading the WebLogic JMS Programmer's guide - there
              is a chapter on
              transactions. Check out the performance white-paper I posted to this newsgroup last
              Thursday - there is
              a section in there on transacted sessions vs. user transactions...
              

  • A few more Solaris questions

    I'm sure this isn't the best place to post this, but I currently have a file server running Solaris 11 with a raid-z2 pool and I'm building a new vmware server out of some parts I've managed to get some good deals on might I add.
    I'm building on a supermicro x8dt3-f board that has an LSI controller on board with a pair of xeon 5570's and 48gb ram. The processors and ram actually came from a sun blade that was tossed out for recycling, sadly the box had never been opened, but i got these for pennies on the dollar, so i'm happy
    I'd like to move the current Solaris file server into a VM on the new ESXi 5.1 host and passthrough the LSI controller.
    I've been reading, and reading and reading and i find the more i read, the more questions I have and the less clear some of the answers are getting.
    First, from what I gather, Solaris 11 has only been added to the supported guest list in ESXi with the recent esxi 5.1 version as I understand? So all should be fine here? Can someone confirm?
    second, i've read about issues with LSI controllers under solaris 11. Is this something that has been addressed in 11.1?
    Third, trying to find the best method to conver the physical system to virtual under ESXi
    The first thing I plan on doing is backing up my data from the pool, though it will be scattered across a few systems. Then I plan on exporting the pool to move the disks physically to the new controller in the VM. The question I have here, is will the share flags and permissions be retained when I import the pool? or do I have to redo all that?
    But then, what's the best method to move it to a VM? The one document I see come up the most is moving a physical solaris system into a zone on another system. Can it be transferred to the global zone? Could I do a new install in a VM, and move the existing install to the global zone, import my pool and call it a daY?
    Or do I dd the OS disk, convert the image and drop it into vmware, get the hardware working, and then import the pool?
    Or is there a better way? Has anyone got any online docs in mind that may help specifically with this migration? everything i'm finding is scattered, maybe i'm not looking for the right things but I could use some pointers if anyone has suggestions.
    I suppose I should note, i have it integrated with an Active directory, this is why i'm worried about permissions being retained when i import the pool
    I just want this to go as quickly and smoothly as possible, with as little headache as possible. it's my home setup, so realistically it takes the time it takes as long as things go smooth

    I know this may not be the answer you are looking for, but I think you are making it more difficult than it needs to be.
    One other option is to leave your Solaris Storage server on the bare metal of this new beast of a machine you are piecing together. Then, use VirtualBox 4.2.6 which is support quite well in Solaris to run whatever virtual machines you where intending ESXi to be used for.
    This way you have the fastest possible storage setup without the issues of hardware passthrough. And the fast storage now benefits the VMs running on it. Not to mention the other neat options now of running lzjb compression for the VMs. either using zvols for the VMs, or just virtualbox vdi files sitting on a compressed zfs filesystem.
    As far as the LSI 1068E controller goes, their website only shows drivers for Solaris 10. So unless Solaris 11 has the drivers built in, you may not be able to use that controller. Believe me I feel your pain in this one.. I have the d#$$!est time finding good SAS HBAs for Solaris 11.1 and the few I did find had questionable drivers. Areca 1320 cards seem to work well, as do Adaptec 64xx and 68xx raid cards. LSI has a new line that supposedly works with Solaris 11.
    My advice is to try a baremetal install of Solaris 11.1 on the new machine and see if you can recognize drives on the LSI controller, if not then use the 6 onboard SATA ports if that is enough for the drives. Otherwise purchase an Areca 1320 which is only like 230 bucks for the 8 port version. http://www.newegg.com/Product/Product.aspx?Item=N82E16816151116R

  • More JTextPane Questions

    Hi Guys
    I posted this question on the Java Ranch forums yesterday evening, but I haven't received a response yet, so I figured that I'd try these forums as well. You can view the other thread here; http://www.coderanch.com/t/554155/GUI/java/JTextPane-Questions.
    We're trying to build a simple WYSIWYG HTML editor using a JTextPane. I've used Charles Bell's example, available here; http://www.artima.com/forums/flat.jsp?forum=1&thread=1276 as a reference. My biggest gripe with it at the moment is that bullets aren't working as I would expect them to. If I highlight text and click the "Bullet" button, I want a bullet to be placed immediately before the highlighted text, on the same line. If I try to do this, my code is creating bullets, but it moves the selected text one line down. I've gone through the Oracle tutorial on text components, but I couldn't find anything that helped me with this particular issue.
    Also, if I copy and paste text into my JTextPane, the pasted text always appears on a new line (a new paragraph tag in the actual HTML). Is there a way to prevent the JTextPane from creating new paragraphs?
    Lastly, I'm flabbergasted as to why my buttons actually work. I can't see anything that explicitly links my buttons to my HTMLEditorKit or my JTextPane. Short of a little voodoo man living under my keyboard, how on earth do my buttons/actions know that they should update the JTextPane?
    The code is as follows;
    package myhtmleditor;
    import java.awt.BorderLayout;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.Action;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextPane;
    import javax.swing.SwingUtilities;
    import javax.swing.text.StyledEditorKit;
    import javax.swing.text.html.HTML;
    import javax.swing.text.html.HTMLDocument;
    import javax.swing.text.html.HTMLEditorKit;
    public class Main {
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    JFrame frame = new JFrame("My HTML Editor");
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    frame.setSize(500, 500);
                    frame.setLayout(new BorderLayout());
                    JPanel buttonsPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
                    HTMLDocument document = new HTMLDocument();
                    final JTextPane htmlEditorPane = new JTextPane(document);
                    Action bold = new StyledEditorKit.BoldAction();
                    Action italic = new StyledEditorKit.ItalicAction();
                    Action underline = new StyledEditorKit.UnderlineAction();
                    JButton boldButton = new JButton(bold);
                    boldButton.setText("Bold");
                    buttonsPanel.add(boldButton);
                    JButton italicButton = new JButton(italic);
                    italicButton.setText("Italic");
                    buttonsPanel.add(italicButton);
                    JButton underlineButton = new JButton(underline);
                    underlineButton.setText("Underline");
                    buttonsPanel.add(underlineButton);
                    HTMLEditorKit.InsertHTMLTextAction bulletAction = new HTMLEditorKit.InsertHTMLTextAction("Bullet", "<ul><li> </li></ul>", HTML.Tag.BODY, HTML.Tag.UL);
                    JButton bulletButton = new JButton(bulletAction);
                    bulletButton.setText("Bullet");
                    buttonsPanel.add(bulletButton);
                    JButton printButton = new JButton("Print to Console");
                    printButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            System.out.println(htmlEditorPane.getText());
                    buttonsPanel.add(printButton);
                    htmlEditorPane.setContentType("text/html");
                    HTMLEditorKit editorKit = new HTMLEditorKit();
                    htmlEditorPane.setEditorKit(editorKit);
                    frame.add(buttonsPanel, BorderLayout.NORTH);
                    frame.add(new JScrollPane(htmlEditorPane), BorderLayout.CENTER);
                    frame.setVisible(true);
    }Thank you for your input.
    Cheers,
    rfnel

    See how the bullet action changes HTML (compare getText() result before and after the bullet applying. It seems you need more smart way of adding bullets.
    Answer some questions if user selects whole paragraph should the <p> tag be removed and replaced with <li>? If user selects just one word in the paragraph and pressed bullet should the whole paragraph be bulleted?
    When you copy something you clipboard contains something like this "<html><body> content</body></html>". Try to override read() method of your kit (or Reader) to skip the main tags.
    For components see ObjectView class source.
    In fact when HTMLDocument is created from String components classes are created and stored in attributes of Elements. Then during rendering ComponentView extension (ObjectView) creates components.

  • I'm trying to purchase but buy results in "add 3 more security questions"

    After Press buy, message is add three security questions. But when i goto and manage my account, it has one security question and i don't see where to add more.
    Or why 3 in addition to the one I see already within my account?
    Thank you!

    Welcome to the Apple Community.
    Have you tried repurchasing again after amending your security at my Apple ID.

  • More XControl questions / issues

    XControl 1, X1, has two other XControls, X2 and X3, on its
    block diagram
    When I open a VI with X1 on it, the Init ability is called
    for X2 and X3 three times each.  X1’s
    Init ability is called one time.  (The
    other VIs you see pop up are called from X2 and X3 as a result of Init
    executing, so they illustrate the Init calls. 
    They close when Uninit is called, and you can see as much when you close
    the VI and project)
    When I close said VI, the Uninit ability is called for X1
    and called twice for X2 and X3.  This, of
    course, leaves one instance of X2 and X3 left open.  Consequently, references and VI’s I opened as
    a result of the Init call are left open (you notice the two subvi's still open). 
    Once I close the project, the Uninit abilities are called
    for X2 and X3, closing the remaining resources.
    There is a file in the folder called log.txt I write to in
    the init and Uninit abilities for each XControl.  If you open it after each step you can see
    what I’m talking about.
    Additional things: 
    After I close the VI, but not the project, X2 and X3 are of course
    locked.  When I right click “Unlock this
    library for Editing”, LabVIEW crashes with a .cpp error.  http://forums.ni.com/t5/LabVIEW/Error-when-I-Unlock-Library-for-Editing-with-XControl/m-p/1009044#M4...
    My real project loads the XControls (and executes the Init ability) as soon as it opens for
    some reason, and makes it nearly impossible to edit them unless I close and open the
    XControls individually, due to the .cpp error above.
    Questions
    Is it expected that an XControl an another XControl should be called more than once?
    Why don't they get unloaded when the main XControl is closed and unloaded?
    Why the .cpp error?
    Tim Elsey
    LabVIEW 2010, 2012
    Certified LabVIEW Architect
    Attachments:
    XControl Forum Test source.zip ‏165 KB
    XControl demo video.zip ‏3598 KB

    Hello elset191
    Here is the Corrective Action Request that references your issue.  I have included you as a customer whom this problem is affecting.
    Request #: 302463
    Description: XControls remain open after corresponding VI is closed and crash occurs, XControl cpp error in LabVIEW 8.6.1f1 (Fatal Internal Error: "ThEvent.cpp", line 184) 
    I'm sorry that this has been a frustration to you.  The fastest way to resolve this issue appears to upgrade.  Have you attempted to reproduce this error in LabVIEW 2010 SP1?  I was unable to reproduce this situation in LabVIEW 2010 SP1.
    The CPP error is due to some issue with how this has been internally developed.  It appears to have been resolved in LabVIEW 2010 SP1 as do the other issues you have been dealing with.  Can you please confirm this for me?  I am happy to further address this issue to ensure your success.  All the best!
    P.S.  I have provided a link to the LabVIEW 8.6 Help simply for competeness.
    Editing XControls that are in Use
    http://zone.ni.com/reference/en-XX/help/371361E-01/lvhowto/editing_xcontrols_in_use/
    Sincerely,
    Greg S.

  • More clear question  for slideshow help - Kin?

    Hi Kin,
    You have been very helpful in getting me this far - I know
    this last detail would be a very easy thing for you to do.
    I tried to get it to work for the dssmTitle by adding another
    dssmTitle.addObserver
    http://www.tsgraphics.net/slideshow_test/
    The mouseover function is fine the way it is. It's how it
    behaves during the slideshow that is a little wierd - it just sits
    on the first story. It would be great if it switched to each story
    like the small nav at the bottom highlights to each corresponding
    nav to its story during the slideshow.
    I hope this is more clear.
    Thanks!
    TS

    Hi TS,
    So it sounds like you want to change the current row of
    dschapters and stop the slide show on mouesover, and then re-enable
    the slideshow on mouseout right?
    Try something like this:
    var gTimerID = 0;
    var gInterval = 3000;
    function StartSlideShow()
    StopSlideShow();
    gTimerID = setInterval(function(){
    dschapters.setCurrentRowNumber((dschapters.getCurrentRowNumber() +
    1) % dschapters.getRowCount()); }, gInterval);
    function StopSlideShow()
    if (gTimerID)
    clearInterval(gTimerID);
    gTimerID = 0;
    dschapters.addObserver(function(nt,n,d)
    if (nt == "onPostLoad")
    StartSlideShow();
    <div id="nav" spry:detailregion="dschapters"
    spry:repeatchildren="dschapters" spry:choose="choose">
    <div spry:when="{ds_RowID} == {ds_CurrentRowID}"
    id="nav2" class="currentChapter" spry:setrow="dschapters"
    spry:hover="hoverRow"><img src="{thPhoto}"
    onmouseover="StopSlideShow();
    dschapters.setCurrentRow('{ds_RowID}');"
    onmouseout="StartSlideShow();" /> </div>
    <div spry:default="default" id="nav2"
    spry:setrow="dschapters" spry:hover="hoverRow"><img
    src="{thPhoto}" onmouseover="StopSlideShow();
    dschapters.setCurrentRow('{ds_RowID}')"
    onmouseout="StartSlideShow();" /></div>
    </div>
    On a side note, if you are trying to bring your question to
    the top of the forum again, post a message in your original thread
    ... that is don't create a new thread each time ... that way the
    context of your questions is preserved for others to read. If you
    post new threads each time, folks have to search for your previous
    posts/threads to get context.
    Thanks,
    --== Kin ==--

  • More font questions

    What I can't seem to find in any of these replies--I probably just haven't found the right one yet!--is whether the new OS X Tiger can use older mac fonts or any of the free mac fonts available on the internet...and that goes for all free mac downloads. I can't seem to get ANYTHING in a format that actually works with this OS!
    I have hundreds of great fonts on my older macs, but I'm guessing if they are not TTF (which most, of course, will not be) they won't transfer. Also, it seems that the vast majority of downloads come through as .sit files--not sure what that is, but they are not registering as fonts. Now what?

    Hi rosy,
    Welcome to the discussions and the AppleWorks forum.
    This is more an OS X question than an Appleworks one, and you may get a more definitive reply by pisting in the Tiger forum.
    ".sit" is a suffix that identifies a file compressed using Stuffit, the 'standard' compression application for Mac under OS 9 and earlier. To open these you need the free download of Stuffit Expander.
    If your older fonts are TrueType (which most of the scaleable ones will be) they should be useable in Tiger. Bit Map fonts (any that showed some sizes in black and others in outline in the Font menu on your older Mac) may not be useable in OS X.
    Regards,
    Barry

  • More MOH Questions

    Hi Everyone
    I'm looking at the MOH options now and I have a question, I went to the MOH audio source and the MOH server configuration. And I see that each one has an option to allow multicasting, but in the server configuration they have base multi-cast IP and base mutli-cast port. I wanted to know is th IP 239.1.1.1 and what would I put for the port.
    Eric

    Hi,
    You have to put the valid multicast port numbers which include even numbers that range from 16384 to 32767.
    Here in your case the MoH server will be streaming a multicast audio source to 239.1.1.1 on RTP port specified.
    Refer below link for MOH Configuration and more detail,
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/admin/3_1_2/ccmcfg/b04moh.html#wp1035654
    Regards,
    Venkatesh

  • More Distortion Questions

    I posted about this before but now realize I may have misdiagnosed the problem.
    I have a DV quicktime file that play perfectly. When brought into FCE 3.5.1 however, there's one scene that becomes very distorted. Tom Wolsky originally suggested it was deinterlacing, but now that I've seen more examples of that I definitely don't think that is the issue.
    There's a scene where a person turns his face in front of the camera. As he does, these big splotches of distortion appear. If you ever look through an imperfect piece of glass, that would best describe it. It's not horizontal lines. Almost the way you'd see things bend a bit with a funhouse mirror.
    What could be causing this? The distortion only appears when the clip is brought into FCE. Then appears when I burn the exported movie onto a DVD via iDVD.
    Please help.

    Is this clip from the same source as the others?
    If it is, sounds really weird.
    At a wild guess, can you check to see that a filter has not been inadvertently added to the clip in question. Some filters can add that type of distortion effect.
    Al

Maybe you are looking for

  • How to give a default value in an inputText on a Form (Jdev 11G Preview2)

    First Test : In the .jspx I have a Form with an inputText : -id = inputText1 -value=#{bindings.ppartId.inputValue} In the page Def (in the <methodAction ..for the submit button) I modified the NDValue in order to have <NamedData NDName="ppartId" NDTy

  • "Explain Plan" in Oracle SQL Developer is greyed out

    Hi all, I know this is not the right place to post this, but I have look around and do not know where to post question about Oracle SQL Developer - I presume this tool is also discussed here in this forum. My question is very simple (I presume): 1. I

  • Length vs vsize?use of vsize in practical scenario?

    what is the actual difference between length and vsize function.? on what condition vsize function should be used ? how does vsize calculates for date and number datatype? i came across these things can you please tell me why this type of result is c

  • Query variable : selection option with no interval

    Hello, Is it possible to define a query variable as selection option, with no interval (like in abap). I am in 3.X version. Many Thanks in advance, Manuel

  • HT4009 In Apps Purchasing steals my money!!

    Hi Apple, I met s very serious problem when I purchased in APPs of CSR Racing game. And this is so rediculous which I even cannot believe that. On 11/11/2012 I purchasing the £2.99 gold from the in apps purchasing to get some new cars like the pictur