I’m moving some of our code over to JSONMBS as it is SO much faster than 
anything out there…

Anyway, parsing JSON strings into JSONMBS seems to work fine. But encoding data 
into JSONMBS objects and then creating JSON text from there seems to introduce 
an instability that crashes my app.

I upgraded to 14.3 to see if the problem went away (was on 14.1) but it still 
happens.

What’s interesting is that the app doesn’t crash in the Xojo method that’s 
using JSON, but while exiting from another method that called it. I think that 
the method that crashes is causing stored JSONMBS objects to fall out of scope 
and the destruction crashes the app.

Here’s a bit of the crash report:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib              0x93a87952 __pthread_kill + 10
1   libsystem_pthread.dylib             0x96eb5167 pthread_kill + 101
2   libsystem_c.dylib                   0x981bf29c abort + 155
3   libsystem_malloc.dylib              0x91db4dab free + 419
4   MBS Xojo Util Plugin.xojo_plugin_16.dylib   0x078e51ed 0x78e1000 + 16877
5   MBS Xojo Util Plugin.xojo_plugin_16.dylib   0x078e51d6 0x78e1000 + 16854
6   MBS Xojo Util Plugin.xojo_plugin_16.dylib   0x078e51d6 0x78e1000 + 16854
7   MBS Xojo Util Plugin.xojo_plugin_16.dylib   0x078e51d6 0x78e1000 + 16854
8   MBS Xojo Util Plugin.xojo_plugin_16.dylib   0x078e2c28 0x78e1000 + 7208
9   com.chromix.maxwellClient5          0x0064578a JSONMBS.__exit%%o<JSONMBS> + 
56
10  com.xojo.XojoFramework              0x0142224c 0x1305000 + 1167948
11  com.xojo.XojoFramework              0x01420cdf 0x1305000 + 1162463
12  com.chromix.app     0x00db1015 
cCXclass_methodName.setup%%o<cCXclass_methodName> + 1408

You see the "JSONMBS.__exit” that leads to the crash?

Is there anything I can do about this?

Also, this seems to be isolated to my creation of new JSON nodes using 
AddItemToObject and the like. Other objects in our code that create JSONMBS 
nodes through the parsing of JSON text seem to be destroyed without crashes…

Help!

Also, JSONMBS seems to be based on a library. Can you send a link to the 
documentation for this library. There are a few concepts (like null nodes, etc) 
that the MBS dox just don’t demystify.

Steve


_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to