Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
BSON date field error on ARM CPU
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
sptrakesh  
View profile  
 More options May 22 2011, 1:57 pm
From: sptrakesh <rakesh.vidyadha...@gmail.com>
Date: Sun, 22 May 2011 10:57:13 -0700 (PDT)
Local: Sun, May 22 2011 1:57 pm
Subject: BSON date field error on ARM CPU
Hi,

I have been successfully using BSON as the primary model for a few iOS
applications (extracted from MongoDB 1.8.1 C++ sources).  I am
currently working on a BSON structure that includes multiple date
types.  Everything works fine on the simulator, but crashes on the
device with an unknown function error.  The following screen captures
show the debugger window with (hopefully) enough information.

http://sptci.com/uploads/mongodb/date1.png
http://sptci.com/uploads/mongodb/date2.png
http://sptci.com/uploads/mongodb/date3.png

Thanks for any help in resolving this issue.

(Posted originally on MongoDB forum
http://groups.google.com/group/mongodb-user/browse_thread/thread/9737...)

Rakesh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Kou  
View profile  
 More options May 22 2011, 2:19 pm
From: Martin Kou <bitana...@gmail.com>
Date: Sun, 22 May 2011 11:19:16 -0700 (PDT)
Local: Sun, May 22 2011 2:19 pm
Subject: Re: BSON date field error on ARM CPU
Maybe you can try my Obj-C codec instead: https://github.com/martinkou/bson-objc

On May 22, 10:57 am, sptrakesh <rakesh.vidyadha...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Hernandez  
View profile  
 More options May 22 2011, 2:19 pm
From: Scott Hernandez <scotthernan...@gmail.com>
Date: Sun, 22 May 2011 14:19:46 -0400
Local: Sun, May 22 2011 2:19 pm
Subject: Re: [bson] BSON date field error on ARM CPU

There is also another project geared towards iOS dev (Objective C) here:
http://github.com/martinkou/bson-objc
I don't do iOS dev but I understand that it is mostly done in objective-c.

Also, the c-driver bson impl. might be something to look at as well since it
is very light-weight and used in other drivers:
http://github.com/mongodb/mongo-c-driver/tree/master/src In fact, I think
the obj-c project just ported the version from the python source (which
should be mostly the same).

Here is a date test:
http://github.com/mongodb/mongo-c-driver/blob/master/test/all_types.c...

On Sun, May 22, 2011 at 1:57 PM, sptrakesh <rakesh.vidyadha...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sptrakesh  
View profile  
 More options May 22 2011, 5:10 pm
From: sptrakesh <rakesh.vidyadha...@gmail.com>
Date: Sun, 22 May 2011 14:10:55 -0700 (PDT)
Local: Sun, May 22 2011 5:10 pm
Subject: Re: BSON date field error on ARM CPU
Thanks for the replies.  Since I am developing a cross-platform core
library, Objective-C is not an option.  I will check out the c
library.  That should be perfect for my needs.

Rakesh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sptrakesh  
View profile  
 More options May 23 2011, 8:27 am
From: sptrakesh <rakesh.vidyadha...@gmail.com>
Date: Mon, 23 May 2011 05:27:55 -0700 (PDT)
Local: Mon, May 23 2011 8:27 am
Subject: Re: BSON date field error on ARM CPU
The issue has been resolved, although I am not sure what the real
problem was.  I found quite accidentally that I can safely use the
BSONElement.date() method without any issues on the device.
Attempting to use the Date() function still causes a crash, but since
date() things are good.  Probably some Objective-C++ flakiness.

Rakesh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »