BBM SDK Thread Safe?

Anyone know if the messages sent/received are thread-safe, or do we do us our own synchronization to ensure that a new message does not come before the end of the old?

In this case messages would be delivered in the order they are received.  Each call is on the same thread.

Tags: BlackBerry Developers

Similar Questions

  • Are thread-safe queues

    Hi all

    Are secure i.e. thread queues are enqueue, dequeue Atomic etc?

    I'm looking to use queues to transfer objects between concurrent loops States, but am worried if I need to protect the access via a semaphore.

    Thank you

    Phill

    Yes.  Queue operations are atomic.  It is safe to assume that everything in LabVIEW is thread-safe, unless otherwise stated, it is since always a language designed for operation in parallel.

  • Thread Safe variables - several symbol at link definitions

    I'm going through the tutorial "Multithreading in LabWindows/CVI.

    The following line is in the tutorial about the variables in Thread-Safe:

    "If you need to access the variable in thread-safe from more than one file source, use the macro DeclareThreadSafeScalarVar or DeclareThreadSafeArrayVar in an include (.h) file for create statements for the accessor functions."

    OK works with a source file, but when I include the header file in a second file from the source, I have "Several definitions for symbol" errors when link for all functions of accessor in the two source files.

    It's probably something simple, but after a few hours I'm at a loss. Any ideas are appreciated.

    Scott T

    You should have DefineThreadSafeXXX in exactly a source file and a DeclareThreadSafeXXX in any number of source files (or in a file header included in the source files). The following works for me in 2012 of the CVI:

    / * temp.h * /.

    #include

    DeclareThreadSafeScalarVar (double, Num);

    void test (void);

    * Temp.c * /.

    #include "temp.h".

    DefineThreadSafeScalarVar (double, Num,-1);

    void main (void) {}

    InitializeNum();

    test();

    }

    / * temp2.c * /.

    #include "temp.h".

    void test (void) {}

    SetNum (1.0);

    }

  • tables dynamic thread-safe

    Hi all

    trying to convert my application single-threaded for multithreading, that I met a new obstacle:

    I would like to have a global data structure. This structure must be dynamically allocated and reallocated as the number of threads (and thus the size of the structure) depends on the program execute / user.

    The main thread as long as secondary threads should be able to access this structure, so I need to use a variable in thread safe, somehow. All the samples I've traveled so far, either use a single variable using the DefineThreadSafeScalarVar macro, or an array of size fixed by using the DefineThreadSafeArrayVar macro.

    I haven't found an example of this type of a dynamic array, unfortunately... Some kind soul would be willing to teach me how to proceed?

    Thank you

    Wolfgang

    In your case, you must use a TSV scalar that contains the pointer is allocated/re-allocated. See the following example of a TSV that mimics a dynamic array of integers. In some cases, a better solution would be to have a TSV scalar that contains a list, say, box tools ListType.

    #include

    DefineThreadSafeVar (int *, DynMem);

    void main (void)
    {
    int * pDynMem, i.;
       
    Initialize the TSV
    InitializeDynMem();
       
    Define HSV 'table' to hold 10 integers
    SetDynMem (malloc (10 * sizeof (int)));
       
    Set and get the 'elements' of TSV
    pDynMem = GetPointerToDynMem();
    for (i = 0; i< 10;="">
    {
    (* pDynMem) [i] = i;
    printf ("DynMem [%d] = %d\n", (* pDynMem) [i], i);
    }
    ReleasePointerToDynMem();
       
    Resize the TSV "array".
    pDynMem = GetPointerToDynMem();
    * pDynMem = realloc (* pDynMem, 20 * sizeof;)
    for (i = 10; I)< 20;="">
    (* pDynMem) [i] = i;
    for (i = 0; i< 20;="">
    printf ("DynMem [%d] = %d\n", (* pDynMem) [i], i);
    ReleasePointerToDynMem();
       
    Free TSV "array".
    pDynMem = GetPointerToDynMem();
    Free(*pDynMem);
    ReleasePointerToDynMem();
       
    Cancel initialization of TSV
    UninitializeDynMem();
    }

  • Where can I get the version 1.2 of the BBM SDK for Java?

    Can anyone share the version 1.2 of the BBM SDK for Java, please?

    I am looking for it because v1.3 is compatible with BB Messenger 6.1 or newer.

    I can't reach the SDK, it is too big. PM me an email address and I will send it.

    I use the SDK 1.2 for the same reason.

  • How to get the BBM Message in our application integrate after BBM SDK in App?

    Hello

    I need help in BBM get message in our application.

    I joined the BBM SDK in app so after that how many message comes in BBM all show message of our application.

    So, it is possible?

    You can call BBM to view a map of BBM chat in your application.  This allows the user to send and receive messages with your application.

    Your application cannot capture and read BBM messages programmatically.

  • BBM SDK problem

    Hello

    I have a small question for everyone. I managed to integrate the BBM SDK in my application and I let the user 'send' photos of their BBM contacts (which works perfectly fine).

    In the message BBM is sent, it bears the name of applications which is clickable (it tries to download the application on the phone to people if they don't have it). When the user clicks the name of applications, it will give me an error message

    "" Application XXX is not installed, download XXX from App World now? ".

    If you press OK will give you another message

    "XXX is not on App World launch App World anyway?"

    The problem is that my request is on App World. How do I register/direct somehow BBM SDK for the correct App World link for my application?

    Any help would be appreciated to greately. Thank you

    You get the ID unique blackberry APP for each & every app, BBM check for your application of peripheral data & if she is not found, then it shows download option that it itself, risk major is that your current application is not live on App world, so when you're clicking on the download link it only shows something. Don't worry about this once your application goes live it automatically redirect to your app to app World page, I also had that concern initially, but have tested the work that & it is very good for our enterprise application.

  • BBM SDK - how to get the simulators to communicate?

    Suffice it to say that I fight with my foray in BlackBerry development. Trying to get the SDK (platformdemo and tictactoe) apps work sample, I'm afraid I took a step back.

    You see, I originally had it in place so that two BlackBerry simulators could message each other using BBM surveys.

    Now, that no longer works, and I can just figure out why. Why BBM communication does not work?

    I am running:

    • BBM SDK Beta 4_03_10_2011
    • BlackBerry_Simulators_6.0.0.313_9800
    • MDS v3.5.3 (I checked that it works correctly, downloaded jars of policy of encryption strength unlimited etc..)
    • V1.6.0_25 Java JDK (v6 JRE)

    For anyone interested, I managed to solve my problem.

    I have no idea why, but previously, I could just add a new contact, put in his BBM pin code and they show up on my list of contacts in BBM, ready to engage me in conversation with them.

    This time, I had to take a screenshot of the Simulator 1QR code, save it on in Photoshop, and then use that image to invite 1 Simulator Simulator 2 .

    For some reason, this allowed contacts to see each other. I don't have a BlackBerry so I have no idea, but I can't really imagine that this is the way it is supposed to work since it requires users to be in the same physical location. However, it's the only way I could make it work and it turns out that the rest of my system (MDS) and so on, is correct.

  • BBM SDK - dependency Checker - proxy package and app together

    Hey guys,.

    I'm looking to implement the auditor BBM SDK dependency as defined in http://us.blackberry.com/developers/blackberrymessenger/ . The main idea is to run a proxy application to verify that the user has BBM6 and basically have open your application. This works well for me in the simulators and debugging on a device, like I can deploy both projects at the same time.

    My question is, when I want to communicate that to App World in itself, how could I go on these two projects into one package so that users would just download an app to launch my application?

    Thank you

    Riley

    To do this, you will need to do as Ebscer said and unzip all the cod in a single folder and zip, save them in a cod/zip file. Update the jad file to contain two cod that you can use the updateJad tool that is packed with the JDE.

  • BBM SDK app - phone support?

    I'm a little confused about the new BBM SDK supported. Bold 9900 with OS 7.0 will support these apps for sure, as BBM 6.0 will be preloaded.

    But what about phones with OS6.0 and OS5.0? According to my understanding, BBM 6.0 could run on OS5.0 and OS6.0.

    How can I detect my application that BBM 6.0 is installed on the device?

    I tried running app BBM SDK torch with BBM 5.0 but got a "net_rim_bb_qm_platform module not found" exception, I built my application with JDE 6.0. Do I have to download this module with my application?

    Any thoughts or ideas would be very appreciated

    So after some brainstorming and beerdrinking, I came to the conclusion to do this:

    -I will release a version for OS7 only

    -OS5.0 and OS6.0 versions the same, except a single cheque - will remain if the phone has BBM6.0 installed, the user will receive a message that upgrade version is available as well as a link for download (from my own server).

        public boolean hasBBM6()
        {
            int moduleHandle = CodeModuleManager.getModuleHandle("net_rim_bb_qm_platform");
            return (moduleHandle != 0);
        }
    

    It sounds a bit complicated but I think it will work

  • BBM SDK sample applications running

    Dear all,

    I downloaded theBBM v1.3 for BlackBerry Java SDK.
    and I tried to launch BBM SDK demo in the sample Apps folder.

    I use eclipse IDE and use 8900 Simulator(\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.36\components\simulator)

    When I try to run it. RUN AS-> Blackberry Simulator. There is a problem of error occur:

    C:\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.36\components\lib\net_rim_bb_qm_platform.jar cannot be exported because some class inside has been gutted (content of a class file has been deleted).

    I don't know how to solve this problem. I hope someone can help me solve this problem.

    Thank you..

    Better subject.

    zinc

    use MDSv3.5.3's get set up to accept the Protocol UDP for BBM Simulator

  • BBM SDK. Send the Invitation.

    Hello!

    I have a problem with a BBMPlatformSession.sendInvitation method.

    BBM SDK API shows a list of contacts with the contacts. Ok.  But I need to know if the user cancels this action. No recall for this.

    Thanks in advance.

    Auto answer:

    BBMPlatformSession.getPendingContactsCount.

    It works!

    Thank you

  • Cannot run example of BBM (SDK) 1.1

    I installed BBM SDK 1.1 following the instuctions to RIM.  Everything seems to work very well.  I can add sim1, sim2 and vice versa and continue a conversation between them about bbm.  But when I try to install and run the example BBMSDKDemo to eclipse one of the simulators running, nothing happens.  The sample is never installed or run.  I use a sample of compiled 5.0 5.0 simulators.  Windows 7 64 bit with 32-bit versions appropriate etc. JRE/jdk java.

    How can I get a bbm app to install and run on simulators.

    So that the simulator that launches eclipse set up with your active BBM set upward, you must add settings in you sim1 or sim2 .bat file in the found in the debug command line-> Configurations Debug-> Simulator-> advanced and select the option custom values exist somewhere in the middle of this Panel. Use the .bat file left to run the simulator of the target.

    And YES, these are the steps I wanted to know.

    I hope you understand that this can be useful. No doubt?

  • BBM SDK 4 - MissingNative error

    I'm looking for a sample program built with Eclipse with the new SDK BBM.  When I load the new Simulator and run it, I get an error "MIssingNative"... ».  I made sure to include the BBM SDK jar file in the build.  Has anyone seen this?  Thank you.

    I thought about it.  I had clicked on the BBM jar file in Export order in generation of Eclipse properties.  Once I unchecked the app works well.

  • How to use API BBM? The BBM SDK or the 'other' BBM API

    Hello

    There seems to be 2 ways to access the BBM. There are api BBM in documentations of BB you can see here:
    http://www.BlackBerry.com/developers/docs/5.0.0api/index.html net.rim.blackberry.api.blackberrymessenger of the package. However, there are also the BBM SDK APIs, which seems to be quite different.

    I searched the hi and low for a comparison of these 2 ways to access the BBM. I'll appreciate your help.

    BTW: I built an application with the BBM API in the documentation of BB (not the BBM SDK docs), but I get nothing when I try to access the session, i.e. MessagerContact.getSession (where MessengerContact is a MessengerContact object). I don't understand the reason for the null value. I run the tests from the emulator.

    Thanks for your help.

    Welcome to the forum.

    BBM API documented in the Javadocs is for the old BBM, which was replaced.  The SDK is so the way forward.

    Good luck

Maybe you are looking for