Help with shared objects...again...

Okay, I've been looking at a really good tutorial for shared objects in AS2, and I think I've gotten the basic concept down of how they work... now the problem lies in just integrating it into what I already have, which is making my brain hurt.  Basically its for a quiz game, which will have a dynamic scoreboard.  I want the scores in the shared object to update when the submit button is pressed, and then have the new values loaded into text boxes.  Displaying the values is going to be the easy part, its just updating them is what my brain doesnt want to wrap itself around.  Here is the array I have at the moment (yes, horribly inefficient, but the last time I actually did any coding before this was over 2 years ago when I was still a computer science major... with all of 4 actual Comp Sci courses under my belt -_-)
scores= new Array();
names= new Array();
insert=function() {
     var newscore;
     var newname;
     newscore=0
     newscore=_global.correct;
     if (newscore > scores[0]) {
         scores[14]=scores[13];
         scores[13]=scores[12];
         scores[12]=scores[11];
         scores[11]=scores[10];
         scores[10]=scores[9];
         scores[9]=scores[8];
         scores[8]=scores[7];
         scores[7]=scores[6];
         scores[6]=scores[5];
         scores[5]=scores[4];
         scores[4]=scores[3];
         scores[3]=scores[2];
         scores[2]=scores[1];
         scores[1]=scores[0];
         scores[0]=newscore;
         names[14]=names[13];
         names[13]=names[12];
         names[12]=names[11];
         names[11]=names[10];
         names[10]=names[9];
         names[9]=names[8];
         names[8]=names[7];
         names[7]=names[6];
         names[6]=names[5];
         names[5]=names[4];
         names[4]=names[3];
         names[3]=names[2];
         names[2]=names[1];
         names[1]=names[0];
         names[0]=newname;
         else if (newscore > scores[1]) {
         scores[14]=scores[13];
         scores[13]=scores[12];
         scores[12]=scores[11];
         scores[11]=scores[10];
         scores[10]=scores[9];
         scores[9]=scores[8];
         scores[8]=scores[7];
         scores[7]=scores[6];
         scores[6]=scores[5];
         scores[5]=scores[4];
         scores[4]=scores[3];
         scores[3]=scores[2];
         scores[2]=scores[1];
         scores[1]=newscore
         names[14]=names[13];
         names[13]=names[12];
         names[12]=names[11];
         names[11]=names[10];
         names[10]=names[9];
         names[9]=names[8];
         names[8]=names[7];
         names[7]=names[6];
         names[6]=names[5];
         names[5]=names[4];
         names[4]=names[3];
         names[3]=names[2];
         names[2]=names[1];
         names[1]=newname;
Continues all the way down to scores[14]
Now, if I wanted this to pull data from the shared object, would I just put user_so.score[3]=user_so.score[2] for instance?  Or would I run the array and just update the new valued individually once the array insertion function completes?  THe problem with the latter is that it's not directly accessing the shared object so I'd need to find a way to pull them out into other variables first, and this is about the point where my brain just decides to short out on me and stop working alltogether...yay...
So yea, any help on this would be much appreciated.
also, would the array have to be declared within the shared object as well?  If so, how would I do that exactly?  Probably something so simple but the fact that it's shared objects is throwing me off...

Ok, the shared object WAS working just fine until I had the banner start referencing it.  Then the quiz began giving me syntax errors like crazy, and even when the banner isnt runnit it gives me issues.
user_so.data.soArray[0]=scores[0];
user_so.data.soArray[1]=scores[1];
user_so.data.soArray[2]=scores[2];
user_so.data.soArray[3]=scores[3];
user_so.data.soArray[4]=scores[4];
user_so.data.soArray[5]=scores[5];
user_so.data.soArray[6]=scores[6];
user_so.data.soArray[7]=scores[7];
user_so.data.soArray[8]=scores[8];
user_so.data.soArray[9]=scores[9];
user_so.data.soArray[10]=scores[10];
user_so.data.soArray[11]=scores[11];
user_so.data.soArray[12]=scores12];
user_so.data.soArray[13]=scores[13];
user_so.data.soArray[14]=scores[14];
    _global.player= "Input Name";
    player.text=_global.player;
    _global.correct= 0;
    phrase=" ";
gotoAndStop (1);
these are the lines it's telling me I need an on handler for, which I do have, at the very start of the entire code.
Ive counted the brackets and those seem to line up, but I'll double check again.  The code is on the submit button itself (yes I know it's poor coding form, but this is how I learned it and what I'm used to, and since I'm on a bit of a time schedule now isn't the time to completely re-learn the proper conventions and etiquite of coding in flash).
on (release) {
    if (user_so.data.tname!=undefined){
        user_so.data.tname = _global.player;
        user_so.data.newscore = _global.correct;
        insert=function() {
    var newscore;
    var newname;
    newscore=0
    newscore=_global.correct;
    if (newscore > scores[0]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=scores[10];
        scores[10]=scores[9];
        scores[9]=scores[8];
        scores[8]=scores[7];
        scores[7]=scores[6];
        scores[6]=scores[5];
        scores[5]=scores[4];
        scores[4]=scores[3];
        scores[3]=scores[2];
        scores[2]=scores[1];
        scores[1]=scores[0];
        scores[0]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=names[10];
        names[10]=names[9];
        names[9]=names[8];
        names[8]=names[7];
        names[7]=names[6];
        names[6]=names[5];
        names[5]=names[4];
        names[4]=names[3];
        names[3]=names[2];
        names[2]=names[1];
        names[1]=names[0];
        names[0]=newname;
        else if (newscore > scores[1]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=scores[10];
        scores[10]=scores[9];
        scores[9]=scores[8];
        scores[8]=scores[7];
        scores[7]=scores[6];
        scores[6]=scores[5];
        scores[5]=scores[4];
        scores[4]=scores[3];
        scores[3]=scores[2];
        scores[2]=scores[1];
        scores[1]=newscore
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=names[10];
        names[10]=names[9];
        names[9]=names[8];
        names[8]=names[7];
        names[7]=names[6];
        names[6]=names[5];
        names[5]=names[4];
        names[4]=names[3];
        names[3]=names[2];
        names[2]=names[1];
        names[1]=newname;
    else if (newscore > scores[2]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=scores[10];
        scores[10]=scores[9];
        scores[9]=scores[8];
        scores[8]=scores[7];
        scores[7]=scores[6];
        scores[6]=scores[5];
        scores[5]=scores[4];
        scores[4]=scores[3];
        scores[3]=scores[2];
        scores[2]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=names[10];
        names[10]=names[9];
        names[9]=names[8];
        names[8]=names[7];
        names[7]=names[6];
        names[6]=names[5];
        names[5]=names[4];
        names[4]=names[3];
        names[3]=names[2];
        names[2]=newname;
        else if (newscore > scores[3]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=scores[10];
        scores[10]=scores[9];
        scores[9]=scores[8];
        scores[8]=scores[7];
        scores[7]=scores[6];
        scores[6]=scores[5];
        scores[5]=scores[4];
        scores[4]=scores[3];
        scores[3]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=names[10];
        names[10]=names[9];
        names[9]=names[8];
        names[8]=names[7];
        names[7]=names[6];
        names[6]=names[5];
        names[5]=names[4];
        names[4]=names[3];
        names[3]=newname;
        else if (newscore > scores[4]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=scores[10];
        scores[10]=scores[9];
        scores[9]=scores[8];
        scores[8]=scores[7];
        scores[7]=scores[6];
        scores[6]=scores[5];
        scores[5]=scores[4];
        scores[4]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=names[10];
        names[10]=names[9];
        names[9]=names[8];
        names[8]=names[7];
        names[7]=names[6];
        names[6]=names[5];
        names[5]=names[4];
        names[4]=newname;
        else if (newscore > scores[5]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=scores[10];
        scores[10]=scores[9];
        scores[9]=scores[8];
        scores[8]=scores[7];
        scores[7]=scores[6];
        scores[6]=scores[5];
        scores[5]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=names[10];
        names[10]=names[9];
        names[9]=names[8];
        names[8]=names[7];
        names[7]=names[6];
        names[6]=names[5];
        names[5]=newname;
        else if (newscore > scores[6]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=scores[10];
        scores[10]=scores[9];
        scores[9]=scores[8];
        scores[8]=scores[7];
        scores[7]=scores[6];
        scores[6]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=names[10];
        names[10]=names[9];
        names[9]=names[8];
        names[8]=names[7];
        names[7]=names[6];
        names[6]=newname;
            else if (newscore > scores[7]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=scores[10];
        scores[10]=scores[9];
        scores[9]=scores[8];
        scores[8]=scores[7];
        scores[7]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=names[10];
        names[10]=names[9];
        names[9]=names[8];
        names[8]=names[7];
        names[7]=newname;
                else if (newscore > scores[8]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=scores[10];
        scores[10]=scores[9];
        scores[9]=scores[8];
        scores[8]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=names[10];
        names[10]=names[9];
        names[9]=names[8];
        names[8]=newname;
                    else if (newscore > scores[9]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=scores[10];
        scores[10]=scores[9];
        scores[9]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=names[10];
        names[10]=names[9];
        names[9]=newname;
                        else if (newscore > scores[10]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=scores[10];
        scores[10]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=names[10];
        names[10]=newname;
                            else if (newscore > scores[11]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=scores[11];
        scores[11]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=names[11];
        names[11]=newname;
                                else if (newscore > scores[12]) {
        scores[14]=scores[13];
        scores[13]=scores[12];
        scores[12]=newscore;
        names[14]=names[13];
        names[13]=names[12];
        names[12]=newname;
                                else if (newscore > scores[13]) {
        scores[14]=scores[13];
        scores[13]=newscore;
        names[14]=names[13];
        names[13]=newname;
                                    else if (newscore > scores[14]) {
        scores[14]=newscore;
        names[14]=newname;
    else {
        user_so.data.tname = _global.player;
        user_so.data.newscore = _global.correct;
        scores[0]=user_so.data.newscore;
        names[0]=user_so.data.tname;
user_so.data.soArray[0]=scores[0];
user_so.data.soArray[1]=scores[1];
user_so.data.soArray[2]=scores[2];
user_so.data.soArray[3]=scores[3];
user_so.data.soArray[4]=scores[4];
user_so.data.soArray[5]=scores[5];
user_so.data.soArray[6]=scores[6];
user_so.data.soArray[7]=scores[7];
user_so.data.soArray[8]=scores[8];
user_so.data.soArray[9]=scores[9];
user_so.data.soArray[10]=scores[10];
user_so.data.soArray[11]=scores[11];
user_so.data.soArray[12]=scores12];
user_so.data.soArray[13]=scores[13];
user_so.data.soArray[14]=scores[14];
    _global.player= "Input Name";
    player.text=_global.player;
    _global.correct= 0;
    phrase=" ";
gotoAndStop (1);

Similar Messages

  • Help with shared objects

    Is it possible to code shared objects in Actions Script 2?  If so, does anyone know of a good tutorial on how to do this?  I haven't had much luck in finding any thus far, but then again I haven't really had the time to do an indepth search yet.

    Do you really need to use AS2? If yes here a good starting tutorial:
    http://www.kirupa.com/developer/actionscript/shared_objects.htm
    If rather prefer using AS3:
    http://blog.six4rty.ch/2010/07/24/as3-quick-hint-shared-objects/

  • Need Help with sharing HD again please!

    Upon installing my new AEBS, I have problems with my USB HD appearing on the wired computer. The HD would mount without a problem on the machines that were connected via wireless, but my iMac in which I connect to the AEBS via an Ethernet cable would not mount the HD. Finally, for no apparent reason, the drive appeared. Then just yesterday, the drive disconnected itself, or did something and is no loner there. So I reformatted my HD to make sure everything was clean and I had the correct format on the drive. Now when I connect the HD to the AEBS, I see the drive in the settings of the airport utility, but the drive is not mounting so I can access it. What do I need to do to access my HD on the wired computer?

    Correct. If i connect the usb HD directly to the iMac everything is fine. When I connect it to the AEBS station, I am unable to see it on the iMac which is connected to the AEBS via ethernet. ON the flipside, I am able to connect to the drive on my macbook when I connect wirelessly.

  • Problem with shared objects synchoronization.

    I encountered a small problem with shared objects.
    I'm working on a program that creates chat rooms of a fixed
    size of 30 users. When the 31th user comes, a new room is created.
    The idea is that the client first connects to the first room
    and checks if it's full by connecting to shared objects. If it is
    full, connection is closed and process is reapeated on a new
    instance of the application.
    I use a function to connect to an instance, which takes as a
    parameter a number (1 for instance room_1, 2 for room_2, etc). The
    function itself creates the necessary Netconnection and
    sharedObject objects.
    If a room is full, Netconnections and sharedObjects are
    closed and function is called again with another number.
    I have no problem for connecting to the first room, but after
    closing the first connection and connecting to the new room, there
    seem to be some problems with the shared objects (especially,
    OnSync doesn't seem to execute again after the connection to the
    shared objects of the new instance).
    I was wondering if you had any ideas what could cause this.
    Is it the use of the same variable names for connecting at two
    different shared objects?
    Here is the function :
    function initStreams(room) {
    client_nc = new NetConnection();
    client_nc.connect("rtmp://192.168.0.4/Elearning/room_"+room);
    in_ns = new NetStream(client_nc);
    in_ns2 = new NetStream(client_nc);
    Replay_video.attachVideo(in_ns);
    out_ns = new NetStream(client_nc);
    out_ns2 = new NetStream(client_nc);
    in_ns.play("my_recorded_stream");
    users_name = SharedObject.getRemote("users_name",
    _root.client_nc.uri, false);
    users_name.connect(_root.client_nc);
    users_language = SharedObject.getRemote("users_language",
    _root.client_nc.uri, false);
    users_language.connect(_root.client_nc);
    users_picture = SharedObject.getRemote("users_picture",
    _root.client_nc.uri, false);
    users_picture.connect(_root.client_nc);
    users_finger = SharedObject.getRemote("users_finger",
    _root.client_nc.uri, false);
    users_finger.connect(_root.client_nc);
    I you need more info, I can post more of the code on the
    forum.
    Any help would be really appreciated

    I don't see any onStatus events in the code you posted above.
    If you're defining the onstatus event outside the function, that's
    the problem. When you define the shared object, you also need to
    define it's onStatus event handler.
    Also, you really should wait for the onStatus event of the
    netConnection before you connect your sharedObjects. If you try to
    connect the SO before the netConnection is established, the SO will
    never connect.

  • Can anyone help with sharing my MacBook Pro with my smart tv.

    Can anyone help with sharing my mac with a smart tv

    I have just bought a new smart LG tv with wireless which can share with other products ie iPad , iPhone, computer using there smart share app, however this app is not compatable with a mac. I wondered if anyone could recommend a suitable app.
    Thanks

  • Problems with Shared Objects - WIERD (or i'm just plain o'l stupid)

    Using F8, AS2.0
    What I am trying to do is to store an array inside of a slot
    in a Local
    Shared Object.
    (snippet from function)
    // leaderboardShare is the Local Shared Object
    // the variable scores is passed through this function
    // if no array exists, create one
    if (this.leaderboardShare.data[this.userId] == null) {
    trace("{SharedLearning.setLeaderboardScore} no score data
    for this user
    exists, creating scores array");
    // create a new array to hold scores for this userId
    var myScores = new Array();
    myScores.push(score);
    this.leaderboardShare.data[this.userId] = myScores;
    // traces out the newly added score, (325)
    trace("{SharedLearning.setLeaderboardScore} scores in userId
    array: " +
    this.leaderboardShare.data[this.userId]);
    } else {
    trace("{SharedLearning.setLeaderboardScore} score data
    exists, adding
    current score to array ");
    // traces out existing data in userId slot (325)
    trace("{SharedLearning.setLeaderboardScore} scores in userId
    array: " +
    this.leaderboardShare.data[this.userId]);
    // traces out Number
    trace("score is type: " + typeof(score));
    // temp array to hold data from existing LSO scores
    var myScores:Array =
    this.leaderboardShare.data[this.userId];
    // traces 325
    trace("myScores (before): " + myScores);
    // temp variable to hold latest score passed through (dont'
    really need
    this)
    var newScore:Number = score;
    // add latest score to current score array
    myScores.push(newScore);
    // TRACES 325, NaN
    trace("myScores (after): " + myScores);
    // overwrite existing scores array in LSO with new set of
    scores
    this.leaderboardShare.data[this.userId] = myScores;
    I know I can do this with any other object, what gives? why
    would the LSO
    even care what i'm passing to it. Who cares that it's not a
    number, the
    array doesn't care what you stick into it.
    I'm truly confused.
    Any help will help me drink less tonight after i'm finished

    Nevermind....
    I found a block of code above it that was making it crap out.

  • Device testing with Shared Objects are failing: Error #2130

    This is new for me. I've made a bunch of apps with Flash Pro CC and Air. After the last CC update I can't run my builds on an iPad. They hang as soon as I try to flush a shared object. Any ideas? Is there a new permission setting I need to define? Here is what the debugger says:
    Waiting for Player to connect...
    Error: Error #2130: Unable to flush SharedObject.
              at Error$/throwError()
              at flash.net::SharedObject/flush()
              at CleverClimbers_fla::MainTimeline/frame1()[MyFile_fla.MainTimeline::frame1:133]
              at CleverClimbers_fla::MainTimeline/frame1()
    Cannot display source code at this location.
    Debug session terminated.

    Hi,
    I am not able to reproduce the issue.
    I tried with the latest AIR 4.0 build on iPad version 7.0 and Flash Pro CC version 13.1.0.217.
    Could you please share the Flash Pro version you are using?
    Also if possible, please share the sample app as it would help us in investigating the issue.
    Thanks,
    Pranali

  • Need help with shared hyperlinks

    I need help understanding the shared hyperlink option when creating hyperlinks in InDesign CS5 (Mac) and how to change a shared hyperlink destination.
    I want to build a document that contains hyperlinks to files on the client’s server. The end use is to make a PDF in which the client can click on a hyperlink and it opens (for example) a Word document or another PDF on their server. When I started the project, I thought I would create shared hyperlinks because a single server document would be referred to by several links scattered through the InDesign document I was building.
    From the Hyperlink palette fly-out menu I chose New Hyperlink, then Link To: File from the dropdown, and I clicked the Shared Hyperlink option, and then OK to close the window. I export the InDesign file as a print PDF, and the hyperlinks work.
    Now I need to change the file paths, because the client moved their files to a new location. When I re-open the hyperlink in the Hyperlink palette by double clicking on it, the Edit Hyperlink window opens but it shows my link as:
    Link To: Shared Destination (rather than File)
    And the destination box underneath shows:
    Document: [my document name]
    Name [the file path I put in]
    However, this link is not editable. I don’t understand why InDesign does this on its own.
    I realize now that it was not necessary to tick the shared option when I built the hyperlink. Is there a way (a script? another method?) that I can remove the shared nature of the hyperlinks so that when I go to edit them they show as links to files (Link to: File, not Link to: Shared Destination) with a live Destination Path box where I can edit the link?
    (If anyone tries to help with a script, note that my document also contains other hyperlinks to internet URLs and emails that I don’t want to disturb.)
    Thanks for your consideration.

    Well. I do feel sort of bait-and-switched, but...
    I want to get the links back to the point where double clicking on the hyperlink name (number) in the Hyperlink palette opens an Edit Hyperlink dialog where the destination is Link to: File and the file path shows up in the File Path box as an editable string. Just the way I made them in the first place.
    It's good that you're comfortable editing the IDML.
    If you compare links made both ways in the IDML, the only distinction between the Shared and the not Shared seems to be the hidden attribute of the <HyperlinkURLDestination/> tag.
    Allegedly you cannot edit this in Javascript (though you could, I suppose, create a new HyperlinkURLDestination with all the same properties and then chang eeach hyperlink to point to it).
    But editing it in the IDML works fine. Open designmap.xml and change the Hidden="false" to Hidden="true". Of course, you only want to do that in the <HyerplinkURLDestination/> tags...
    Something about this seems fishy to me, so you might want to verify it yourself in a single case before you put too much effort in. But I think it's right.

  • Flash Log In From with Shared Objects

    So i want to create a flash log in and registration form for my flash game. THis game is played on your local PC not in the internet and i am using AS 2.0. So on the registration from i want to have two input text fileds: username and password. When you click on register the data from those fields to be saved as Shared Object and then on the log in when you type something in the log in fields (again two fields : username and password) the data that you wrote in those fields to pass trough the saved data as shared objects and if those two are the same then the log in is successfull if i want the movie to go on a certain frame whare it says access denied. pls help

    if you use the obviously named textfields:
    var so:SharedObject = SharedObject.getLocal("login","/");
    if(so.data.username==undefined){
    //need to register and assign:
    so.data.username=usernameTF.text
    so.data.password=passwordTF.text
    loginBtn.onRelease=function(){
    if(so.data.username==usernameTF.text && so.data.password==passwordTF.text){
    //successful login
    } else {
    //login failure

  • Issue with Shared Objects

    Hi all,
    I've a problem with a program working on Shared Objects technology.
    We have a Job, scheduled in 18 parallelism, and each one writes into the SHM controlled by a SHMA Class.
    At jobs ending, a program reads content from the area and sends an automatic e-mail with the results.
    Everything works well if the writer program is executed on-line.
    Otherwise, in background, seems that nothing is stored in the SHM.
    Here's the code executed by the writer program:
    FORM shared_memory_access  TABLES  it_fehler STRUCTURE rpfausg.
      DATA: errors_reference TYPE REF TO data.
      DATA: lx_pterl00       TYPE REF TO zcx_pterl00_collector.
      TRY.
    * --> Get SHM Access
          CALL METHOD zcl_pterl00_collector_root=>build
            EXPORTING
              invocation_mode = cl_shm_area=>invocation_mode_explicit.
    * --> It's ok?
          IF zcl_pterl00_collector_root=>area_exists EQ 'X'.
    * --> Fill Data:
            GET REFERENCE OF it_fehler[] INTO errors_reference.
            CALL METHOD zcl_pterl00_collector_root=>fill_area_with_data
              EXPORTING
                error_messages_dref = errors_reference.
          ENDIF.
        CATCH zcx_pterl00_collector INTO lx_pterl00.
          MESSAGE lx_pterl00 TYPE 'S' DISPLAY LIKE 'E'. "Non-blocking -> JOBS
      ENDTRY.
    ENDFORM.                    " SHARED_MEMORY_ACCESS
    Here is the section from the class handling the attachment to the SHMA:
    METHOD if_shm_build_instance~build.
      DATA: lx_collector TYPE REF TO zcx_pterl00_collector.
    * --> Automatic building of instance:
      TRY.
          CALL METHOD get_handle_for_update( inst_name ).
        CATCH zcx_pterl00_collector INTO lx_collector.
          MESSAGE lx_collector TYPE 'X'.
        CATCH: cx_shm_no_active_version.
          TRY.
              CALL METHOD get_handle_for_write( inst_name ).
            CATCH zcx_pterl00_collector INTO lx_collector.
              MESSAGE lx_collector TYPE 'X'.
          ENDTRY.
        CATCH: cx_shm_inconsistent.
          zcl_pterl00_collector=>free_area( ).
          TRY.
              CALL METHOD get_handle_for_write( inst_name ).
            CATCH zcx_pterl00_collector INTO lx_collector.
              MESSAGE lx_collector TYPE 'X'.
          ENDTRY.
      ENDTRY.
    ENDMETHOD.
    I cannot explain why multiple jobs do not populate the area...

    Hi Rob,
    if your requirement is to have many (18) active processes all updating the shared object, and very few simply reading the shared object, then versioning is probably not what you require.
    Versioning allows readers to continue to attach and read the active shared object instance while the updater gets their own instance of the shared object. When the updater does a detach_commit the old instance becomes obsolete and all new requests to attach will be diected to the new instance. The old instance will be cleaned up by garbage collection once all of its readers have detached.
    If your programs primarily attach for update then you will decrease performance with versioning because a new instance needs to be created at every attach for update.
    Perhaps you should just retry the attach for update after a small period of time has passed?
    If, on the other hand, you do have lots of other readers of the shared object you may well still find that it is more efficient not to have versioning. I build a web shop catalogue using shared objects and found that versioning severly hampered performance. This was because, once the catalogue was initialised, updaters were pretty rare but readers were constant.
    BTW make sure you keep the locks on the object as short as possible. Do all your preparation work first, then attach for update, update, detach as quick as possible.
    Cheers
    Graham Robbo

  • Help with Shared Photostream

    Hi guys!
    I could need some help with the shared Photostream function.
    I read the Q&amp;A about it and i'm sure now that my shared Photostream albums wont delete by apple at anytime.
    Also i read about the Limits of Upload 1000 an Hour, 10.000 a Day.
    My idea is to use the Shared Photostream Album function as an online Backup before selling my old iPhone.
    Here is my Problem:
    I got a lot of pictures on my Old iPhone, and i experienced a Lot of Memory usage through the new Albums i created so far,
    So my Memory space is totally Full... I thought it's mainly online space used?
    Next Problem is that the Upload wont work correct. It's only working with a 100-200 pictures After that i Can select other pictures
    But These wont upload anymore...
    And If i erase my old iPhone the iCloud Shared Photoalbum wont be affected?
    Thank you very much for your help!

    No, the data is deleted from your device but not from iCloud.  The only thing you won't be able to access after signing back in is my photo stream photos older than 30 days (which is why you should save them to your camera roll before deleting the account).
    The other thing you might want to review are shared photo stream limits, in case you might have exceeded these: http://support.apple.com/kb/HT4858.  These include a maximum of 5000 photos & videos per shared stream (combined), and 1000 photos & videos per hour (from all contributors).

  • Help with layered objects

    I am new to Pages and struggling to layer objects. I am working with opacity, but unable to move one object on top of another.
    thanks for any help,
    Kim

    Welcome to Apple Discussions Kim
    When you insert any object in a Pages document & have it "fixed on page," by default wrap is turned on with a 12 point gutter. This results in objects "pushing" other objects out of the way. With your object(s) selected, go to the wrap inspector & uncheck "object causes wrap." Unfortunately, there is no way to change this default setting, it will have to be done manually for any object inserted. You may wish to leave feedback for the Pages team asking that the ability to have wrap apply to all objects or not be added as a preference in future versions of Pages.

  • Help with Shared Libraries?

    I don't have a "Look for Shared Libraries" under Preferences >  Sharing (which the other two computers in my home do have), all I have is the  "Shared Libraries" under Preferences > General > Sources (which  this is checked).  I have uninstalled iTunes and then installed it again, this did not work.  The other two computers in my home are running off of Windows XP, but the trouble computer is running off of Windows Vista.  Not sure if this could be the problem. Please help.

    krysto wrote:Yes, I have used pacman before to install software, but what if I want to contribute to the development of a project?
    Usually when you are developing software you don't install the package every time you compile it. You just make sure that you can run it from the location where you compiled it. That way you can keep the latest stable version that you can use for leisure time and the development version for testing. Also for contributing to a project you should directly interact with the project's repository (svn, git, ...). So I refer back to my first post here where the PKGBUILD can give you an idea how to go about compiling the source code yourself.
    Just don't run "make install" because that will leave your system in a messy state, a simple "make" (with the proper configuration) should result in a locally build binary that you can run from where it was compiled.

  • Need help with moving objects

    Hello, i'm new to java and i'm building applets with eclipse. I'm stuck on how to move and object to the left of the screen i can move it right of the screen with the
    blueTriangle.slowMoveXPosition(50);
    but how do i move it back again say 50. I know this easy stuff for you guys.
    Do i have to put something on negative positions in the triangle class file?
    Any help is much appreciated.
    Thanks.

    Hello, i'm new to java and i'm building applets with
    eclipse. I'm stuck on how to move and object to the
    left of the screen i can move it right of the screen
    with the
    blueTriangle.slowMoveXPosition(50); What class is this 'blueTriangle' reference talking about?
    I doubt it's a standard one which anyone here would know about. I bet it's something your school provided instead, or another 3rd-party. So ask them.

  • Help with Sharing iPhoto 9.5.1 library between users on same computer

    Hi,
    I have upgraded operating systems to Maverick on my macbookpro which also upgraded iphoto to 9.5.1.  Previously in IPhoto I could choose to share the library in each of three user accounts.  The third account was used only for gathering photos to make books, calendars etc.  There does not appear to be a way to do this now.  How do I share libraries on the same computer without creating a library on a separate device?
    So frustrating....I was right in the middle of creating a book.
    Thanks for any help.

    That particular feature has been discontinued with iPhoto 9.5.1.  However, you  can use iCloud to share photos via  Shared Photo Streams. Each user account will need their own iCloud account and each user can create Shared Photo Streams to be shared with the other accounts.  The photos in the SFSs can be downloaded by any account with access to the stream.
    Anbother option would be to create a Dropbox account and when the 2 accouts come across photos to be used in a project they can export the original file to the Dropbox in the account so they can be downloaded into the 3rd account and imported into the project library.
    If you have an external HD you could put the project library on it and access it from each of the other 2 accounts. Project photos could be added to that library directly by the other 2 accounts by exporting to the desktop and importing into the projects library with an easy library switch.  Or one can use the paid version of  iPhoto Library Manager to copy selected albums between libraries.
    OT

Maybe you are looking for

  • I just got my iPhone last night and my photos aren't opening.

    When I click on a picture to open it shows up for a second and then goes away so that all you can see are the top and bottom options and it's as if the picture is whited out. I also can't change my wallpapers to anything other than the apple sugested

  • Subform with table with expanding fields - please help!

    I am a new user of LiveCycle Designer ES and need help with a form.  I've made so many changes within the form that I have now lost track and don't know where to start to fix the following two issues: The form itself is one Master Page that needs to

  • LJ Pro200 M251n not printing certain font sizes

    My new printer won't print text at certain font sizes using Word or Publisher 2010. Up to 60pt it's fine, but not 72, 100 or 120. However, it will print 240 pt. It will also print these text items from pdf. Is this a driver issue? I'm using PCL6 but

  • Pop-Ups ALWAYS opening new tabs in Safari 8.0

    I was recently helping my boyfriend and had downloaded "unsafe" downloads onto my MacBook Pro Mid 2012 on Safari 8.0 and directly after downloading these links there are continuous pop ups showing up that are opening new tabs and they usually pertain

  • IE 7 and Firefox 3 display issues - neither work as expected

    hi, I'm having a terrible time trying to figure out how to solve the 2 display issues I have on IE and Firefox. I can't get either one to work like it's supposed to. I'm using RH8, Webhelp and it doesn't matter what skin I use (nothing custom, just w