Persistent [store and String]

I am fairly new to the BlackBerry development but have a vast experiece in c# so I understand the syntax, but I'm having a hard time getting an array of String to save in the persistent store.

Here's a piece of my constructor code:

pObjet = PersistentStore.getPersistentObject (key);
 
If (pObject.getContents () is nothing)
{
sFriendList = new String() {"no friends added"};
pObject.setContents (sFriendList);
}
on the other
{
sFriendList = (String []) pObject.getContents ();
}
  
Add (olfList);

olfList.set (sFriendList);

Here is the custom method that is called the closure of my custom screen:

public void AddFriendCallback (String sFriend)
{
String [] NewArray;
  
If (sFriendList [0] .equals ('no friends added"))
{
NewArray = new String() {sFriend};
}
on the other
{
NewArray = new String [sFriendList.length + 1];
   
for (int i = 0; i)< sfriendlist.length;="">
{
NewArray [i] = sFriendList [i];
}
   
NewArray [NewArray.length - 1] = sFriend;
}
  
sFriendList = NewArray;
olfList.set (sFriendList);
}

And here is my saving method:

public void save() throws IOException
{
pObject.commit ();
}

Everything works fine until I try to write the data to store and reopen the form. When I open it the screen is like nothing has been added to the store. He said still "no added friend. Anyone know what I am doing wrong?

Thanks in advance!

I thought about it. Just after the olfList.set (sFriendList); line in my callback method, that I had to do the following:

Tags: BlackBerry Developers

Similar Questions

  • Clustering of JMS vs distributed Destinations / persistent stores and failover

    Hi again,

    I got a bit confused while working my way through the WebLogic documentation and hoped that someone could delete a few things for me.

    Is there a difference between the "JMS Clustering' and"Distributed destinations"? As far I knew "JMS Clustering" simply uses "Distributed of Destinations" to spread the JMS load through the complete cluster more using Affinity server configuration options and load balancing. Or is there something beyond that?

    I was also wondering is, what happens in persistent stores of "Distributed Destinations" in the case of a server failure. Future message will not be sent to this destination, but rather to other destinations defined in the "distributed" Destination But what happens in the persistent store that is associated with the destination and messages persisted in it? It seems to me that they are lost, unless the server failed or a replacement instance is reduced upward migration of the server migrates the entire instance to another machine, in which case the destination must always be available and functioning correctly. Is this correct? Or are there other ways to retrieve stored messages? Or several destinations share the same persistent, as store using the same data source configuration?

    Thank you
    Chris

    You are basically correct. JMS clustering is implemented by distributed Destinations.

    When a managed server goes down, messages JMS if stored locally will be put on hold until you raise your server again. If you want to implement server or the migration of service shops of persistence must be on some type of SAN, so messages will be consumed once the migration is complete.

    Hi again,

    I got a bit confused while working my way through the WebLogic documentation and hoped that someone could delete a few things for me.

    Is there a difference between the "JMS Clustering' and"Distributed destinations"? As far I knew "JMS Clustering" simply uses "Distributed of Destinations" to spread the JMS load through the complete cluster more using Affinity server configuration options and load balancing. Or is there something beyond that?

    I was also wondering is, what happens in persistent stores of "Distributed Destinations" in the case of a server failure. Future message will not be sent to this destination, but rather to other destinations defined in the "distributed" Destination But what happens in the persistent store that is associated with the destination and messages persisted in it? It seems to me that they are lost, unless the server failed or a replacement instance is reduced upward migration of the server migrates the entire instance to another machine, in which case the destination must always be available and functioning correctly. Is this correct? Or are there other ways to retrieve stored messages? Or several destinations share the same persistent, as store using the same data source configuration?

  • How to use QSettings and TextField/TextArea with persistence stores a string?

    I'm trying to store a string of data that the user enters in a TextField or TextArea.  I want this channel to be persistent in memory whenever the user opens the application.

    The Startshi sample application shows how this is done, but not with text in a TextField/TextArea.

    The sample application shows:

    Checkbox {}
    ID: uranuscanner
    text: "URANUS SCANNER.
    objectName: "uranuscanner."
    checked: _starshipApp.getValueFor (objectName, 'yes')
    onCheckedChanged: {}
    _starshipApp.saveValueFor (uranuscanner.objectName, verified)
    }
    }

    Data is retrieved with the bold line.  Are there no property equivalent qml who does the same thing for a TextField/TextArea?

    Thanks in advance,
    Ross

    It's easy

    I do it this way:

    TextField {
        id: server
        text: odssettings.getValueFor("server/url","")
        hintText: qsTr("Server URL") + Retranslate.onLanguageChanged
        inputMode: TextFieldInputMode.Url
        textStyle {
            base: SystemDefaults.TextStyles.BodyText
        }
        onTextChanged: {
            odssettings.saveValueFor("server/url",server.text)
        }
    }
    
  • How to store and retrieve long values in the store persistent

    Hello

    In my application I want to store and retrieve long values in the persistent store that I used with Longvector and all is well, but LongVector is supported for operating system > = 4.6

    I need to work my request in 4.5 also, can any one infrom me what are the other alternatives, I have to get my pls any abstract requirement...

    Vector v = new Vector();
    fill vector
    Long premierElement = (Long) v.firstElement ();
    myLong long = firstElement.longValue ();

  • Persistent data and uninstall an app problem.

    Hello

    I'm checking the storage of persistent data with a very silly application, but maybe I'm do sth wrong as that it does not work as I supposed it should.

    My application only checks if there is some content in the store persistent and if not, it creates. I want to check that when the application is uninstalled, these persistent info will be deleted, but as I just test, it is not.

    This is my code:

     public TestP(){
            String info = "nothing";
            synchronized(store) {
                String currentinfo = (String)store.getContents();
                if(currentinfo == null) {
                    //we create it
                    String contents = "something";
                    store.setContents(contents);
                    store.commit();
                } else {
                    //we retrieve it
                    info = currentinfo;
                }
            }
    
            MainScreen ms = new MainScreen();
            ms.add(new LabelField("Testing Persistance..."));
            ms.add(new LabelField(info));
            ms.add(new LabelField("That's all..."));
    
            pushScreen(ms);
        }
    

    And that's how I create the store

    'com.app.test.TestP' at long---> 0xcdbcc77c2e7ecf8cL
    Bank private static PersistentObject = PersistentStore.getPersistentObject (0xcdbcc77c2e7ecf8cL);

    The first time I run my application, the display will return to "nothing" and the text next time 'something '. It's ok, but when I uninstall my application, the first time also shows 'something', which according to me, that he should not be allowed.

    I do something wrong?

    How persistent store information can be removed on an uninstall of the application?

    Concerning

    Your persistent data are of type String, which is a common object of the rim.  It is not necessary for the BB to delete your data - another application can use it.

    However, if you used one of your own classes - even if it comes extends the string and does nothing else - then it will be deleted when your Application is removed, because with your driveway application, there's nothing on the device which includes that Object.

  • issue of chain vacuum persistent store

    Hello

    I have an application that uses data from a persistent store location. These data are stored in an array of strings. Unfortunately, I made the mistake of allowing a user to save a blank. When this happens, I get an error al load time "empty string eception exception" as always, the application waits for an entry to be present.

    Is it possible to revisit loadtime if one of the persistent object fields is empty and default highlight? I tried the following code, but it does not work:

    protected void GetLocation(){
    
            synchronized(perStore) {
    
                String[] currentinfo = (String[])perStore.getContents();
                if(currentinfo == null) {
                return;
                }
                if(currentinfo[0] == ""){
                        currentinfo[0] = "0";
                    }   
    
                else{
                    edtLong.setText(currentinfo[0]);
                    edtLat.setText(currentinfo[1]);
                    edtTZ.setText(currentinfo[2]);
                    rbgLong.setSelectedIndex(Integer.parseInt(currentinfo[3]));
                    rbgLat.setSelectedIndex(Integer.parseInt(currentinfo[4]));
                    rbgTZ.setSelectedIndex(Integer.parseInt(currentinfo[5]));
                    rbgHemisphere.setSelectedIndex(Integer.parseInt(currentinfo[6]));
                }
                }
    
        }
    

    Any help appreciated.

    "it does not work: '-in what it does not work?

    Here's a suggested code:

    Object o = perStore.getContents ();

    If (o == null) {}

    ...

    } else

    If (!) o instanceof (String [])))) {}

    .....

    } else {}

    String [] currentinfo = o (String []);

    If (currentinfo.length! = 7) {}

    ...

    } else {}

    for (int = 0; i< currentinfo.length;="" i++="" )="">

    FIR (currentInfo [i] == null) {}

    CurrentInfo [i] = "";

    }

    }

    }

    }

  • Problem of persistent store

    Hi I saved an integer as a persistence store. My code is something like this-

                Integer encryptedSettings = new Integer(value);
                synchronized(store)
                {
                    store.setContents(encryptedSettings);
                    store.commit();
                }
    

    And I can get this value using this code

            store = PersistentStore.getPersistentObject( some_long_value );
            int encryptedSettings = 0;
    
            if(store != null)
            {
                Integer content = (Integer)store.getContents();
                if (content != null)
                {
                    encryptedSettings = content.intValue();
                }
            }
    

    But when I reinstalled my request, I want that it is happy = null, but it doesn't happen, I got the previous value of facilities registered in latest installation. How can I solve this problem. Please help me.

    You must create a wrapper class for this instance of the class Integer.

    For example:

    class MyWrapper implements {Persistable

    int value;

    }

    and this instance of the store/load class.

    And if you uninstall the app, this instance of the class is removed from the persistent store.

    For cases, when you store instances built from the classes of native java (not your own) such as Integer, String, vector directly, they remain in the store persistent after uninstalling.

    Allows you to compose your own classes and objects of Bank and they will be deleted.

  • For 2 days were not able to access the App Store and regular a few adds on my iPad, but can be downloaded on my iPhone. I have reset the router, iPads, etc... No change. Help, please

    I can't access AppStore and some other operations ordinary adds on my iPad. Have reset and all routers. All updates current. I can do on iPhone. Is it me or Apple or what? Help, please

    Hello there jacquelinefrombburg,

    Welcome to the communities of Apple Support! It is a great place to get help with connection problems to the App Store and access other applications on your iPad. I know that there are some applications that I rely on every day, so I'll do my utmost to help find a solution.

    As point of departure, we will you force him to close all open applications on your iPad. Once you've done that, go ahead and reboot your iPad. Once it is up and running, test on the App Store to see if you are able to access. Here are some useful resources to guide you through the process described above:

    Force a nearby application on your iPhone, iPad or iPod touch

    Restart your iPhone, iPad or iPod touch

    If you still have questions, see the steps in this article. Even though the title says iTunes Store, the recommendations would still apply to the App Store.

    If you cannot connect to the iTunes Store

    As a step in isolation, it would be wise to check if you have problems with the App Store and other applications while using a Wi - Fi connection and cell phone. If the problem persists with the two types of connection, try resetting the network settings on your iPad. Please note that you erase all the stored passwords and Wi - Fi networks. To complete this step, go to settings > general > reset > reset network settings. After you restart your iPad, test the apps again.

    Take care!

  • iCal - * terminating app due to an untrapped exception 'NSInternalInconsistencyException', reason: 'this NSPersistentStoreCoordinator has no persistent store (unknown).  He is unable to perform a backup operation

    About a month after moving to OS X 10.11.3 calendar application does not load. I thought that ~/Library/Containers/com.apple.iCal deletion would empty it. I no longer get the error earlier, even if it also started with the ApplicationSpecificInformation:

    * End app because of the untrapped exception 'NSInternalInconsistencyException', reason: 'this NSPersistentStoreCoordinator has no persistent store.  He is unable to perform a backup operation

    Don't know what to do next to timing of recovery. Can someone give me some pointers?

    Thank you

    Process: Calendar [980]

    Path: /Applications/Calendar.app/Contents/MacOS/Calendar

    ID: com.apple.iCal

    Version: 8.0 (2092.2)

    Generation information: iCal-2092002000000000 ~ 70

    Code type: X 86-64 (Native)

    Parent process:? [1]

    Manager: Calendar [980]

    User ID: 501

    Date/time: 2016-02-13 21:05:17.964-0700

    OS version: Mac OS X 10.11.3 (15 d 21)

    Report Version: 11

    Anonymous UUID: EFEF6C45-F9F8-9E0B-6C80-8622F8520537

    Time since started awake: 410 seconds

    Integrity of system protection: enabled

    Crashed thread: 0 dispatch queue: com.apple.main - wire

    Exception type: EXC_CRASH (SIGABRT)

    Exception codes: 0 x 0000000000000000, 0 x 0000000000000000

    Note the exception: EXC_CORPSE_NOTIFY

    Request for clarification:

    Reason for termination due to an untrapped exception 'NSInternalInconsistencyException' app,: ' this NSPersistentStoreCoordinator has no persistent store (unknown).  He is unable to perform a backup operation. »

    ending with an exception uncaught of print type

    Abort() called

    Specific application Backtrace 1:

    0 CoreFoundation 0x00007fff84644ae2 __exceptionPreprocess + 178

    1 libobjc. A.dylib 0x00007fff8a95bf7e objc_exception_throw + 48

    CoreData 0x00007fff8c524fd3 2-[NSPersistentStoreCoordinator _coordinator_you_never_successfully_opened_the_database_so_saving_back_to_it_is _kinda_hard:] + 51

    3 CoreData 0x00007fff8c5251ed-[NSPersistentStoreCoordinator _introspectLastErrorAndThrow] + 77

    4 CoreData 0x00007fff8c5253b1 __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:] _block_invoke + 321

    5 CoreData 0x00007fff8c530b63 gutsOfBlockToNSPersistentStoreCoordinatorPerform + 179

    6 libdispatch.dylib 0x00007fff86f4b33f _dispatch_client_callout + 8

    7 libdispatch.dylib 0x00007fff86f4c926 _dispatch_barrier_sync_f_invoke + 74

    8 CoreData 0x00007fff8c51f662 _perform + 194

    9 CoreData 0x00007fff8c4635c5-[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 533

    10 CoreData 0x00007fff8c4635f4-[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 580

    11 CoreData 0x00007fff8c48e6da-[NSManagedObjectContext save:] + 890

    12 CalendarPersistence 0x00007fff9090ba47-[CalManagedObjectContext save:] + 71

    13 CalendarPersistence 0x00007fff90ab9221 + [CalPersistence createBirthdayCalendar:error:] + 251

    Calendar calendar 14 0x00000001021a5f66 + 278374

    15 calendar 0x00000001021a5852 + 276562

    Calendar calendar 16 0x00000001021a56f3 + 276211

    Calendar calendar 17 0x00000001021a54ef + 275695

    18 libdispatch.dylib 0x00007fff86f56871 _dispatch_call_block_and_release + 12

    19 libdispatch.dylib 0x00007fff86f4b33f _dispatch_client_callout + 8

    20 libdispatch.dylib 0x00007fff86f5ec1d _dispatch_main_queue_callback_4CF + 1685

    21 0x00007fff8458acd9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 CoreFoundation

    22 CoreFoundation 0x00007fff84545d3d __CFRunLoopRun + 1949

    23 CoreFoundation 0x00007fff84545338 CFRunLoopRunSpecific + 296

    24 HIToolbox 0x00007fff85f26935 RunCurrentEventLoopInMode + 235

    25 HIToolbox 0x00007fff85f2676f ReceiveNextEventCommon + 432

    26 HIToolbox 0x00007fff85f265af _BlockUntilNextEventMatchingListInModeWithFilter + 71

    27 AppKit 0x00007fff892a60ee _DPSNextEvent + 1067

    28 AppKit 0x00007fff89672943-[NSApplication _nextEventMatchingEventMask:untilDate:inMode: dequeue:] + 454

    AppKit 29 0x00007fff8929bfc8-[NSApplication run] + 682

    30 AppKit 0x00007fff8921e520 NSApplicationMain + 1176

    Calendar calendar 31 0 x 0000000102164027 + 8231

    32 libdyld.dylib 0x00007fff81d985ad start + 1

    Thread 0 crashed: Dispatch queue: com.apple.main - wire

    0 libsystem_kernel.dylib 0x00007fff8c43f002 __pthread_kill + 10

    1 libsystem_pthread.dylib 0x00007fff8fea85c5 pthread_kill + 90

    2 libsystem_c.dylib 0x00007fff952726e7 demolition + 129

    3 libc ++ abi.dylib 0x00007fff833d6f81 abort_message + 257

    4 libc ++ abi.dylib 0x00007fff833fca47 default_terminate_handler() + 267

    libobjc 5. A.dylib 0x00007fff8a95e6ae _objc_terminate() + 103

    6 libc ++ abi.dylib 0x00007fff833fa19e std::__terminate (void (*) ()) + 8

    7 libc ++ abi.dylib 0x00007fff833fa213 std::terminate() + 51

    8 libdispatch.dylib 0x00007fff86f4b353 _dispatch_client_callout + 28

    libdispatch.dylib 9 _dispatch_main_queue_callback_4CF + 1685 0x00007fff86f5ec1d

    10 com.apple.CoreFoundation 0x00007fff8458acd9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9

    11 com.apple.CoreFoundation 0x00007fff84545d3d __CFRunLoopRun + 1949

    12 com.apple.CoreFoundation 0x00007fff84545338 CFRunLoopRunSpecific + 296

    13 com.apple.HIToolbox 0x00007fff85f26935 RunCurrentEventLoopInMode + 235

    14 com.apple.HIToolbox 0x00007fff85f2676f ReceiveNextEventCommon + 432

    15 com.apple.HIToolbox 0x00007fff85f265af _BlockUntilNextEventMatchingListInModeWithFilter + 71

    16 com.apple.AppKit 0x00007fff892a60ee _DPSNextEvent + 1067

    17 com.apple.AppKit 0x00007fff89672943-[NSApplication _nextEventMatchingEventMask:untilDate:inMode: dequeue:] + 454

    18 com.apple.AppKit 0x00007fff8929bfc8-[NSApplication run] + 682

    19 com.apple.AppKit 0x00007fff8921e520 NSApplicationMain + 1176

    20 com.apple.iCal 0 x 0000000102164027 0 x 102162000 + 8231

    21 libdyld.dylib 0x00007fff81d985ad start + 1

    Thread 1:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Thread 2: Dispatch queue: com.apple.libdispatch - Manager

    0 libsystem_kernel.dylib 0x00007fff8c43fff6 kevent_qos + 10

    1 libdispatch.dylib 0x00007fff86f51099 _dispatch_mgr_invoke + 216

    2 libdispatch.dylib 0x00007fff86f50d01 _dispatch_mgr_thread + 52

    3 wire:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Thread 4:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Wire 5:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Line 6:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Line 7:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Thread 8:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Wire 9:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Thread 10:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Wire 11:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    12 wire:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Line 13: com.apple.NSEventThread

    0 libsystem_kernel.dylib 0x00007fff8c439386 mach_msg_trap + 10

    1 libsystem_kernel.dylib 0x00007fff8c4387c7 mach_msg + 55

    2 com.apple.CoreFoundation 0x00007fff84546624 __CFRunLoopServiceMachPort + 212

    3 com.apple.CoreFoundation 0x00007fff84545aec __CFRunLoopRun + 1356

    4 com.apple.CoreFoundation 0x00007fff84545338 CFRunLoopRunSpecific + 296

    5 com.apple.AppKit 0x00007fff89365065 _NSEventThread + 149

    6 libsystem_pthread.dylib 0x00007fff8fea6c13 _pthread_body + 131

    7 libsystem_pthread.dylib 0x00007fff8fea6b90 _pthread_start + 168

    8 libsystem_pthread.dylib 0x00007fff8fea4375 thread_start + 13

    Thread 14:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Thread 15: com.apple.appkit - heartbeat

    0 libsystem_kernel.dylib 0x00007fff8c43f206 __semwait_signal + 10

    1 libsystem_c.dylib 0x00007fff95293d17 nanosleep + 199

    usleep libsystem_c.dylib 2 0x00007fff95293c0a + 54

    3 com.apple.AppKit 0x00007fff894ff6f4-[NSUIHeartBeat _heartBeatThread:] + 2181

    4 com.apple.Foundation 0x00007fff92cbdc6f __NSThread__start__ + 1351

    5 libsystem_pthread.dylib 0x00007fff8fea6c13 _pthread_body + 131

    6 libsystem_pthread.dylib 0x00007fff8fea6b90 _pthread_start + 168

    7 libsystem_pthread.dylib 0x00007fff8fea4375 thread_start + 13

    Thread 0 crashed with X 86 State of Thread (64-bit):

    Rax: 0 x 0000000000000000 rbx: 0000000000000006 rcx 0 x: 0x00007fff5da9be28 rdx: 0 x 0000000000000000

    RDI: 0x000000000000160b rsi: 0 x 0000000000000006 PBR: RER 0x00007fff5da9be50: 0x00007fff5da9be28

    R8: 0 x 0000000000000003 r9: 0x00007fff833fda7c r10: 0 x 0000000008000000 r11: 0 x 0000000000000206

    R12: 0x00007fff5da9bfb0 r13: 0x0000000103001b40 r14: 0x00007fff746a1000 r15: 0x00007fff5da9be90

    RIP: 0x00007fff8c43f002 rfl: 0 x 0000000000000206 cr2: 0x00007fff7554a008

    Please, back up all data. If you have iCloud calendars, archive them by following the instructions on this page under the heading "download a calendar of iCloud.com." all you need is a web browser, not the calendar application. Do the same with the other calendars of network you have, if possible.

    Before taking each of these steps, quit (leave by force if necessary) application. After taking stage, recovery and test. When the problem is solved (or when you have completed step 3 without resolving), stop and close the library folder.

    Step 1

    Hold down the option key and select

    Go ▹ library

    in the Finder menu bar. In the folder that opens, move these items (some may not exist) to the trash, leaving the open library folder:

    Calendars/calendar Cache

    Calendars/calendar Cache-shm

    Calendars/calendar Cache-wal

    Step 2

    Move these files to the library folder on the desktop (even once, some cannot exist):

    Containers/com.apple.CalendarAgent (and all others with a start of name in 'com.apple.Calendar')

    Containers/com.apple.iCal (and all others with a name in 'com.apple.iCal' beginning)

    Preferences/com.apple.CalendarAgent.plist

    Preferences/com.apple.iCal.plist

    If the problem is resolved, you may be able to put some of the items you have moved in this stage, recovery and testing after each of them. Finally, you can find the one that caused the problem; Delete it. Re-create your settings if necessary.

    If the problem is not yet solved, put back to each of the points you have moved in this step, crushing the that may have been created in its place. Do not put the files that you moved in step 1.

    Step 3

    Move this folder on the desktop:

    Calendars

    Note: you do not move the application to calendars; you move a folder named "calendars". If there is no change, put the folder back where he was.

    If the problem is resolved after you move the calendars folder, the event database is corrupted. You have these choices:

    Restore the snapshot folder Time Machine or another backup prior to corruption.

    Use a third party application like "Calendar cleaner" (not tested by me) to try to repair the database.

    For the calendar network accounts, such as iCloud, all you need to do is re-enter the preferences. For subscribed calendars, simply re - subscribe.

  • can we save the bitmap to persistent store?

    City previous forums:

    Smiley

    Messages: 29
    From: Canada
    Join date: May 2008

    can we save the bitmap to persistent store?
    Posted the: July 14, 2008 12:41
    Response
    I am trying to save a bitmap in Bank persistence and get an error msg saying Bitmap is not persistent.

    is it possible to save a bitmap?

    Thank you

    Yes it is possible.  You can use the Bitmap.getARGB method to get an array of bytes of the Bitmap image.  Then store its contents in a ByteVector.

    I am aware of the problem and would use a solution like that set up by MiuTunes.  Basically, generating thumbnails on the front and store them on the SD card.

    As neil says, there is a small performance lag, compared, but I find personally unacceptable in this application.  Don't know what you develop, and perhaps there are moments where in memory is better.  I'm also assuming (wrongly?) that you were going to leave them in the persistent store after your application ends.  Anyway, Neil knows more about what I do.

  • Persistent Store - is this good or bad idea?

    Currently, I have setup an application with a vector of objects that I store, works great!  For my next request, I want to save more information and thought of different ways to do this.  This first one saves a whole bunch of a single type of object...

    I want to create 3 vectors over other types of objects I created... I thought I could store each vector with id different, maybe I could make a vector of vectors, or maybe make another object that has inside and just vectors that store... examples below:

    the idea of vectors vector

    Vector vectorOfAObjects;

    Vector vectorOfBObjects;

    Vector vectorOfCObjects;

    Vector vectorOfDObjects;

    Vector storeMyVectors;

    storeMyVectors.insertElementAt (vectorOfAObjects, 0);

    storeMyVectors.insertElementAt (vectorOfBObjects, 0);

    storeMyVectors.insertElementAt (vectorOfCObjects, 0);

    storeMyVectors.insertElementAt (vectorOfDObjects, 0);

    and then to get my stuff back, I would use storeMyVectors.elementAt (0) to return vectorOfAobjects...

    I thought I could do as an object that contained the four vectors as fields... like

    class relatedVectors implements {persistable

    Vector vectorOfAObjects;

    Vector vectorOfBObjects;

    Vector vectorOfCObjects;

    Vector vectorOfDObjects;

    relatedVectors (vector a, vector b, vector c, vector d) {}

    vectorOfAObjects = a;

    vectorOfBObjects = b;

    vectorOfCObjects = c;

    vectorOfDObjects = d;

    }

    }

    Finally, could I simply store different types of objects in the same vector, keeping the tack of indexing point?  For some reason any I have in my head a vector must be of the same type of object, but I don't think it's true...  In this case, I could do a vector and the index 1, 5, 9, etc... Once object type and 2, 6, 10 other etc...

    What idea is the best?

    Thank you!

    Vector objects are not the same.  Mix them as you like.

    Re have one or several store ID persisting, I actually don't think it's important.  I have found that if you update some of the vector, then commit, it does not take too long - I think that only the modified part commits again.  Replacement of the entire vehicle with a completely new would have more load.

    The design basically your data store around the needs of your application, rather than worrying about the consequences this will have on the device.

    BUT, a big concern.

    Remember that the objects that you save in the persistent store must remain the same to be accessible, if persist you an object with 2 integer values, then change this class so that there are three integer values, then your persistent object becomes illegible.  So try to future proof your persistent objects or design a path for them.

  • Editing an object that I stored in the persistent store

    I store a custom object in the store persistent and would like to add a new Member.  Someone knows how can I do this?  I'd rather not delete it and store an object in its place because what happens if I need to add more members in the future.  This would encourage me to juggle all versions of my object.  Is there a kind of model for version control that I can apply to my objects stored persistently?

    I don't think it will work.  The link that you say talk us too much serialization, but the persistent object is not serialized as part of persistence.  If you want to serialize her, you should do it yourself.

    I'm guessing that you did not design your class being "expandable". And I'm guessing that you do not want your users to have to recreate these data.

    So I investigate an approach to migration.  In the code that gets the persistent store, got it get the object persistent, then check that it is indeed a picture of your old items.  If it is, convert it to an object type, store it in a collection (vector or Hashtable as suggested, for example) and keep the result, by replacing your old array of persistent storage object.  So your new application includes the old class of objects, exactly as it was, which means that you can install it on top of your existing application.  But once your request is used at the same time, the old persistent object is no longer used.

    Does make sense?

  • Update the persistent store

    Hi all

    I am a soft developer for BB. I need a little clarification. Is it possible to update the data stored in the persistent store? Pls answer...

    Thank you in advance...

    Welcome on the support forums.

    If you commit something to the store, you replace the existing value. of course, you can read the existing value and change it before you engage again, or commit any other thing.

  • store an entire class in persistent store?

    I need to store a set of many parameters in the persistent store. I wonder if it is possible to create a class that contains all the settings and get an instance of the class into the store, instead of putting every parameter in the store separately. The questions are:

    1 is it possible?

    2. If so, are there performance issues with the storage of an instance of the class, or any other concers?

    Thank you

    1 Yes its possible, you must make sure that your class extends the persistable interface

    2. Yes, there are performance concerns and limitations in number of handles object that you could use on some operating systems... see these articles for a more detailed explanation:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/7979/1181821/832210/Memory_b...

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800431/What_Is...

  • increase the size of an array stored in the persistent store

    Hello

    I have a question.  I use the persistent store to store the data.

    When there is a new medium, I need to add it in this table.

    The problem is the size of the table is fixed, how do I re - set the size of the array? and save the persistent store return?

    Thank you

    Yes, vector will be better because you can't copy items.

    If you use the simple table of data types would be more effective, I think, you can take a look at Arrays.fill, then.

    No referenced objects are captured by garbage collection.

Maybe you are looking for

  • Effects of e-mail in IOS 10

    I downloaded the new OS and now I can't send a message without adding a kind of effects as balloons and confetti. How to disable this option?  It's really annoying!

  • Maximum supported version macOS on MC270LL/A

    How high a Mac mini MC270LL/A can be improved?  I am looking to buy a used on Amazon, but I assure you it won't be stuck in the past.  I vaguely remember saying them something during the WWDC keynote on most 2010 Macs supporting Sierra... is it one o

  • Satellite P300 - conflict of resources on how to start

    Hiya All, I am eager to see if someone could help me eventually. My father brought this laptop about 2 years ago, but disappeared since then but my young brother, the computer guru said stuffed that we think! Anyway, these are mistakes that we get on

  • Qosmio G30-161: how to put in double screen under Vista

    Hello, I've tried loads but do not get the case, I can get the other screen to work by stopping and starting the system but I only ever get a screen at work is simple step by steb guides for dual screen my work machine is a G30-161 under Vista Ultima

  • Alphabet key on my keyboard, typing special characters

    Hi, I wanted to ask you if you know about this feature, because it does not work on my PC, but I don't want it. When I want to write "" a "I need to press ['] [space] [a], and at least that I do not support on the space between the two I'm 'a'." Simi