Problem with synchoronization of shared objects.

I encountered a small problem with shared objects.
I'm working on a program that creates a fixed size of 30 users chat rooms. When the user 31 comes, a new room is created.
The idea is that the client connects to the first room first and check if it is full by connecting to shared objects. If it is full, the connection is closed and process is repeated 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 the room_1 instance, 2 for room_2, etc.). The function itself creates the Netconnection and sharedObject necessary objects.

If a room is full, Netconnections and sharedObjects are closed and the function is called again with another number.

I have no problem to connect to the first room, but after the closing of the first connection and connect to the new room, there seems to be some problems with the shared objects (in particular, OnSync seems not to run after liaising with shared the new instance objects).
I was wondering if you had any ideas what could cause this. It is the use of the same variable names to connect to two different shared objects?

Here's 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 need you more information, I can post more code on the forum.
Any help would be really appreciated

I don't see all the onStatus events in the code you posted above. If you set the outside function onstatus event, that's the problem. When you set the shared object, you also set it's Manager onStatus of events.

In addition, you really have to wait for the the netConnection onStatus event before plugging your sharedObjects. If you try to connect to the SO before established the netConnection, Society will never connect.

Tags: Adobe Media Server

Similar Questions

  • problem with Internet connection sharing, error: connection ad - hoc has "no internet access" on the cell phone of the customer

    Original title: problem with Internet connection sharing

    my laptop running on Windows Vista Home Premium SP2 (this one has access to the internet by using the dial-up modem and will to act as a sharer of internet connection or as a host) and the client computer runs on Windows 7 Starter

    in a first step, I try internet connection sharing, I've set up an ad hoc network and I just changed my setting modem dial-up on the sharing tab, of course what I change, it of 'Allow an other network users to connect through this computer internet connection' and choose the on Home Networking connection wireless network connection , then my mobile client to connect to a special that I created and portable client connected to the internet via ICS
    then the problem came when I restart my laptop. When I tried to use ICS once again, my customer laptop really takes a long time to connect, he continues saying 'identification' side host and client. and after that "identify" is complete, it says ad - hoc connection, I create has "no network".
    so, I'm a person answer in this forum
    ' Obtain an IP address automatically is the wrong setting on the Ethernet connection. "  To return to the sharing tab and unshare the wireless connection.  Close all windows network, and then open them and re - share the wireless connection.  Who must configure IPv4 for the Ethernet connection properties for:

    IP address: 192.168.0.1
    Subnet mask: 255.255.255.0
    Default gateway: no
    "DNS server: none.

    I put this on my laptop of the host, and and I put the IP address on my laptop customer in 192.168.0.2 with the same default gateway as my portable computer host IP
    and made some progress in this case, when I try to connect host and the client is no longer to 'identify' phase, immediately connected laptop both but my mobile client can not connect to the internet and displays "No Internet access" on the ad hoc network, I have create

    I tried a lot of things but always completed my mobile client can not connect to the internet and displays the message "no Internet access.

    What makes me confuse is first, I try to share the internet connection everything works like a charm, I set up an ad hoc network, and then change the setting on my modem dial-up so he can share the internet connection, and voila, computer laptop client connected to the internet. I change even not all IP settings
    But why after I restart my PC, this problem comes...
    someone knows how to help me with this problem?

    Hey, Mimbs,

    You can try the similar thread to the next with a possible solution:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/no-Internet-access-in-the-client-machine-when/77312e09-4385-41FA-A420-0c42be58e4e3

    Also for reference:

    http://Windows.Microsoft.com/en-us/Windows7/networking-home-computers-running-different-versions-of-Windows

  • What is the problem with the conversion of objects with gradients to the gradient mesh?

    What is the problem with the conversion of objects with gradients to the gradient mesh?

    Radial gradients are special, and it could become difficult edit the gradient mesh resulting.

    Take the layer apnel and inspect your objects. You will find a clipping mask the cracks inside.

  • Host of Ubuntu 12.04, OSX 10.7 comments. Problems with VMWare folder sharing :(

    Hello

    first of all, I have problems with copy/extraction of files in OSX in this folder. For example in the way to decompress. If I use other tools like Keka it works. No doubt Keka don't try to put things like times etc. ?

    Unpack the errors:

    creation: prog/bin/developer /.
    chmod (Directory attributes) error: operation not permitted

    inflating: prog/bin/Developer/test.dll chmod (file attributes) error: operation not permitted
    (warning) cannot set time

    It also seems that some applications have problems with the name of the directory. I guess that whitespace in files shared VMware. Why is - that someone would use white-space in such a record? Unfortunately, VMWare automatically chooses this name.

    Error when trying to load the project "/ Volumes/VMware Shared Folders/myproject/project.sln": the directory name is invalid.

    How can I fix these problems?

    Thank you!

    First VMware does not support running any version of Mac OS X in VMware Workstation and secondly the Apple of SLA for Mac OS X Lion, specifically article 2B (iii), must it be virtualized while running under Mac OS X Lion himself like a lot less than all of the other requirements of installed on the Apple brand hardware SLA etc.  So since VMware Workstation runs under Windows/Linux and your steps of virtualization of Mac OS X Lion on Apple hardware brand while running under Mac OS X Lion, then help may be provided to you that he might / should be considered as a violation of the VMware Community terms of use in the use of the scenarios you use OS X Lion.

  • Problems with rotation, resizing of objects and paths

    Hello

    I've recently upgraded to CS6 (latest version of MAC OS x, Illustrator CS6 last version) and I have some super weird questions that occur.

    If I flip a non uniform in shape of path/object it distorts and modifies. Even if I apply a stroke to the path/object and then remove it, it changes the position and shape of the object/path.

    I've attached a video for example:

    Has proved to be a problem with the option 'snap to grid of pixels. For some reason even if I unchecked it from the options when you create a new file, it was always create objects with the option selected in the Trnasform Panel

    Now, I disable when you create a new file and verify that it is turned off during use.

  • Problems with iTunes library shared between 2 computers

    I have a rather unique situation where I have a single iTunes library that is shared by both computers. It has worked well for years, until lately. Here is my configuration:

    • Mac iMac server software. All my music is on a USB drive 3 TB (named 'music'), attached to the mac. Its static IP address is 192.168.1.15.
    • MacBook Air. This computer connects to the iMac on the LAN, where the iTunes library lives, as well as all the music.

    Each computer is running OS X 10.11.2. All I have to do is to make sure that iTunes is left on a mac, before I start it on the other.

    The problem that happens lately, is that on the iMac, for some songs (not all), when I try to play them, he tries to access it through the network on its own IP address, which gives an error that it cannot connect to the server at 192.168.1.15. It's like the iTunes on the iMac it'S the iTunes on the Macbook Air, if it tries to access music on the network, on himself.

    iTunes works fine on the Macbook Air, but I noticed sometimes when I play iTunes, it mounts a second instance of hard drive of the music, because I see in a finder window that it is connected to the iMac and also connected to 192.168.1.15 (IP address of the iMac).

    I opened the iTunes library XML file and noticed that there are a bunch of songs which the path is "/ volumes/music-1/musicfolder/songname.mp3", but most were "/ volumes/music/musicfolder/songname.mp3". So I did a search and replace for 'music-1' to change it to just "music". This does not seem to make any difference with the problem, and when I have opened the XML file, I saw that iTunes had sprinkled in a lot of instances 'music-1' again.

    So my question is:

    How to return to the iMac looking for its music files locally, instead of through the LAN, on its own IP address? If the path in the XML file is "/ volumes/music/musicfolder/songname.mp3", which then determines whether iTunes search for this path locally or via the LAN? Is this info in the iTunes library. ITL file?

    Help! Thank you.

    iTunes creates the .xml for other applications to use. The .xml content 90% reflect the content of the .itl. iTunes uses only the .itl.  If you want the .itl update changes in the .xml, you need to delete (or remove) the .itl, then launch iTunes. It will start with an empty library, and then you import the .xml. Note This will deliver the game counts to zero, delete all the logs and reset the date of addition to our days.  By doing what you have just used iTunes the .itl as usual and has replaced the .xml as it usually does, with the same credentials as before.

    I don't know the cause of the problem or the real nature of it.  It can be by using the server software is at the origin of this.  iTunes is not really set up for connections to the server of fancy, simple old external hard drives.  Usually when I see this kind of question on the forum it is because someone uses a library on a NAS.

  • The problem with the file sharing by mail from the contextual menu in the Finder.

    When I want to send a file by email from the Finder, I do a right-click on the file and choose 'Sharing'-> 'Mail '. I expect to see the new e-mail message with the attached to the message of failure.

    But nothing happens and the Finder stop responding and I have to "Force quit" them.

    My configuration:

    MacBook Pro (retina, 13 inches, end of 2012), 2.5 GHz Intel Core i5, 8 GB 1600 MHz DDR3, HD 4000 1536 MB, version OS X El Capitan 10.11.3 graphics card

    Please launch the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    The title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    Click on the clear view icon in the toolbar. Then take an action that does not work the way you expect. Select all of the lines that appear in the Console window. Copy to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost everything that is not relevant to solve a particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name or e-mail address, can appear in the log. Anonymize before posting.

    When you post the journal excerpt, an error message may appear on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • Problem with the persistent store & object

    Hello

    I store 2 types of persistentObject in PersistentStore. I find the problem when retrieving the Typeobjet2. The code is:

        private void GetPersonFromPhone() {
            synchronized(store) {
                data = (Vector) store.getContents();
            }
            System.out.println("\\\\\\\\\\\\\\\\\\  Into GetPersonFromPhone Data = " + data.size());
            PersonInfo pi = null;
            Person p = null;
            for ( int i = 0; i < data.size(); i++) {
                System.out.println("Object Got i = " + i + " - " + data.elementAt(i).getClass().getName());
                if (data.elementAt(i).getClass().getName().endsWith("PersonInfo")) {
    
                      .....
                      data.removeElementAt(i);
                }
            }
             p = null;
            pi = null;
            return;
        }
    
        private void SavePersonsToPhone() {
            PersonInfo info;
            System.out.println(" To SAVE Persons = " + personVec.size() + " To Store Data Size = " + data.size());
            for (int i=0; i < personVec.size(); i++) {
                info = new PersonInfo();
                data.addElement(info);
                p = null;
                info = null;
            }
            System.out.println("Now DATA size = " + data.size());
            synchronized(store) {
                store.setContents(data);
                store.commit();
            }
           // Dialog.inform("Success Stored");
    
            info = null;
            return;
        }
    
     Results
    

    Nobody GOT = name = Mr John Micheal, Email =, URL = store/samples/pictures/Quiver_Tree.png, Send = true
    Size PersonVector = 1
    Object obtained I = 3 - src.se.PersonInfo
    Nobody GOT = name = Peter Simon, email = [email protected], URL = store/home/user/iBeloved/photo1, Send = true
    Size PersonVector = 2
    GOT people = 2 size = 3 data store

    Add new record

    Person - McMillan Desilva, [email protected] , SentEmail = false

    To SAVE the people = 3 to the data store size = 3
    Save I have 0 - name = Mr. Micheal John = Email, URL = store/samples/pictures/Quiver_Tree.png, Send = true
    Added Mr. John Micheal, Email = true to vector to the store
    I save 1 - name = Peter Simon, email = [email protected], URL = store/home/user/iBeloved/photo1, Send = true
    Peter [email protected], Email added = true to vector to the store
    Save I have 2 - name = McMillan Desilva, Email = [email protected], URL =, Send = false
    Added McMillan detailed [email protected], email = false to Vector to the store

    The NEXT TIME that I RAN the APPLICATION

    Nobody GOT = name = Peter Simon, email = [email protected], URL = store/samples/pictures/Cascade.png, Send = true
    Size PersonVector = 1
    Object obtained I = 3 - src.se.PersonInfo
    Nobody GOT = name = Peter Simon, email = [email protected], URL = store/home/user/iBeloved/photo1, Send = true
    Size PersonVector = 2
    GOT people = 2 size = 4 data store

    To SAVE the people = 2 to the size of the data store = 4
    Save I 0 - name = Peter Simon, email = [email protected], URL = store/samples/pictures/Cascade.png, Send = true
    Peter [email protected], Email added = true to vector to the store
    I save 1 - name = Peter Simon, email = [email protected], URL = store/home/user/iBeloved/photo1, Send = true
    Peter [email protected], Email added = true to vector to the store
    DATA size now = 6

    You CAN SEE FROM THE results, how the data changes and incompatibilities. Sometimes he gives good resutls sometimes incompatibilities. Someone can say, where I'm going wrong or what makes the results of the get code.

    Thank you

    Not looked at seriously, but there seems to be a coding bug in this piece of code:

    for (int i = 0; i)< data.size();="" i++)="">
    System.out.println ("object got I I =" + i + "-" + data.elementAt (i) .getClass () .getName ());
    If (data.elementAt (i) .getClass () .getName () .endsWith ("PersonInfo")) {}
    ....
    data.removeElementAt (i);
    }
    }

    Say that the vector has 3 elements inside.  You spend the first at the beginning of the second loop, I = 1, and the for loop see data.size () 3.  Then you deal with the second and delete.  Then when you go back to the loop for I = 2, and data.size () = 2, so you never treat a third.

    Of course, logic could just as easily result in code by jumping the elements of the vector.

    Maybe that's your problem?

  • Problem with cluster containing different objects!

    Hello to all 2!

    Here's what I'm trying to do:

    -J' have a group of 3 elements: 2 Boolean and 1 controls arrow.

    -I want to display all the objects in the cluster and disappear in sequential order: Boolean - invisible; arrow - invisible, Boolean - visible; arrow-visible, invisible 2 - Boolean and so on.

    I have attached a vi in which I tried to address this issue, but without success.

    Any ideas?

    Thank you very much!

    Andrew.

    Andrew,

    Make the arrow a Boolean control with an image of an arrow.  Then, all the controls are Boolean values, and visibility can be controlled by a simple loop.

    Lynn

  • I have problems with network file sharing on 3 Windows XP computers.

    I created a network of small business between 3 workstations.  The last 2 set up on the network can communicate and share files between them, but cannot connect to the 1st workstation set up on the network to share files.  connect to 2nd & 3rd ws 1 ws.  a ping to the 1st ws is OK.  followed all the instructions for sharing and folder permissions.  is there any security on ws 1 problem that I forgot?

    original title: shared folders

    Hello

    Follow the steps in troubleshooting these items:

    How to troubleshoot a network home in Windows XP

    How to use Simple file sharing to share files in Windows XP

    See also:

    How to disable the file sharing simple and how to set permissions on a shared folder in Windows XP

  • Problem with Direct3D, can make objects in the software WAS.

    Hello

    I use software WAS whenever I try to return something, it displays an error and the program is closed.

    Error reads: -.

    Could not initialize Direct3D

    Error ID "value cannot be null.

    Parameter name: 'Array' Argument is nothing. »

    Hi Isabelle,.

    Thank you for your response.

    I would need more information to help you.

    What is the brand and model of the computer?

    I suggest you to uninstall and reinstall the latest graphics card drivers compatible for Windows 7 on the computer manufacturer site.

    If the problem persists I suggest to create a new user account with administrator privileges.

    http://Windows.Microsoft.com/en-us/Windows/create-user-account#create-user-account=Windows-7

    For reference:

    https://msdn.Microsoft.com/en-us/library/Windows/desktop/hh309466 (v = vs. 85) .aspx

    Hope this information helps and let us know the State of the question, we will be happy to help you.

  • problems with dedicated and shared graphics memory

    So basically I want to run a game that I have all the specs (above actually) that I need to play outside of memory dedicated to the graphics card. But what confuses the life out of me, is that I have about double the necessary memory required in system memory shared which as I understand, it is used on an as-needed-basis. However, clearly this is not the case, as soon as I try and run it crashes immediately.

    Okay, so I have the graphics card with the following specifications:

    chip type: mobile intel (R) 4 series express chipsets
    channel of the card: mobile Intel GMA 4500 M
    total memory: 797 MB
    memory: 64 MB dedicated
    shared system memory: 733 mb

    In addition to what BossDweebe wrote, I would like to comment on your comment

    "I more than double the necessary memory required in system memory shared which as I understand, it is used on an as-needed-basis." However, clearly This is not the case, as soon as I try and run it crashes immediately. »

    Shared memory (part of your system RAM) is provided by Windows on a dynamic basis, it is added if required and with a limited amount by the RAM of the system itself needs to run applications (= your shared graphics memory size can be based on available RAM total). It's a help for some graphical features, but not necessarily a guarantee to run games that explicitly requires a certain base of dedicated RAM video. As the dedicated RAM (own GPU memory) is much faster than the share of the contributions of RAM, two cases can appear:

    (1) the game does not start. Many games check the video hardware before starting, and if they are 64 MB VRAM and require more, often it is game over. The dynamically allocated shared memory cannot be controlled and is of no interest here.

    (2) other games may be more forgiving. But you're going to be faced with a vicious circle: you're hoping using shared memory, is a clear indicator of a graphic solution already slow and Asthenique (i.e. an integrated graphics card). Unfortunately, the slow system RAM does not speed up your graphics card, and taking a part of the RAM for the graphics features: with a slower running your game and can still finish in the dysfunctions.

  • Problem with extending a View object in OAF R12

    Dear all,

    I expanded 3 seeded VO in (oracle.apps.ota.learner.server) with the following steps:

    1 copied the myprojects folder oracle.apps.ota.learner.server folder
    2. create a new workspace and project OA with default package xxarms.oracle.apps.ota.learner.server
    3. has created 3 new VO with extended the standard vo by adding a new attribute * "Course_Flag" *: -.

    a. xxOfferingSrchVOExt of OfferingSrchVO
    b. xxOfferingSrchResultVOExt of OfferingSrchResultVO
    c. xxOfferingDetailsVOExt of OfferingDetailsVO

    4. has created 3 replacements within the same project Extend.jpx
    5 DBA has imported the Extend.jpx
    6 copied the xxarms.oracle.apps.ota.learner.server of myclasses folder to the java\classes\xxarms\oracle\apps\ota\learner\server folder
    7. customize the page to add the new attribute * "CourseFlag" * with the names of the standard VO

    I get the following error when trying to access the page: -.
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: Houston-25058: OfferingSrchResultVO definition of the attribute type is not found in OfferingSrchResultVO

    Please advise if I missed a step that caused the error / advise that if there is no step I can fix to resolve the problem.

    Thanks in advance to anyone who tried to help :)

    Kind regards... Julie

    Hi Ashraf,.
    The steps are very good.
    The page that you want to have the additional column is having the VO,
    Initially, you added this attribute only for VO?
    If Yes, what was the reason you extended the other VO?

    Thank you

    With respect,
    Kali.
    OSSi.

  • Problem with moving of the objects after adding to the stadium

    Hello
    I am a student using a version of educational license of Flash MX, obtained through my University, as a prototyping tool. Everything has been fine until last night, when I learned that I couldn't anything reposition on the stage. I am something of a novice with Flash Mx and have been unable to find out what is the cause of the problem. I think I inadvertently used a combination of control keys to change a particular setting. The problem manifests itself first when I added a combo box from the components Panel to the stage and it is located in the upper left corner and refused to be moved!
    Any ideas gratefully accepted.

    This problem has been resolved.

  • Problem with Icloud photo sharing

    I can't access the ALBUMS SHARES in the Photos. on my MacBook Pro

    You get an error message when you click on the tab "Shared"?

Maybe you are looking for

  • Update of window Vista

    Recently, I did updates for Vista ultimate and vista has restart the computer. During vista startup saying update configuration step 3 complete 0 after a certain time windows stops and goes in this way forever and won't start more Please let me know

  • Printing with color HP LaserJet 2840 PCL6 printer problem

    I installed the printer on another computer. When I try to print, every time I need to reset the printer before it prints a document that is made by the new installed MS Office 2010. What to do to be able to print at a time?

  • generic win32 attack

    How to fix the attack generic win 32

  • Bad Image error during starts with exc files

    This happens with most of my windows files during startup. How can it be solved?

  • 4287 dv7 cl disable integrated graphics

    Hello IM, installation of a new whezzy debian in my dv7 4287cl, but im having problems with the graphics card, and I can't use the radeon. Switcheroo does not work for me. So there is a way to disable the integrated graphics card, the bios setup does