-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
Environment:C++ with Visual Studio 2010 on Win XP
Hallo,
I am using Mongo 2.08 with Visual C++ 2010 on Win Xp.
I need to add very large arrays, up to 6400 datapoints to my database. The data contained represent an FFT result which is then stored along with other data. My problem refers to adding such a large array. I worked through the array example but just adding each value with the "<<" operator of C++ is cumbersome and cout allows only 256 values if I remember correctly.
In the array example on mongodb.org the follow lines make an exception
vector<be> a = an_obj["x"].Array();
I am getting as output
"Mon Feb 18 10:03:52 dev: lastError==0 won't report:field not found, expected typ
e 4"
Obviously what is passed to it in the example is not seen as an array.
In the other direction the line (Obj to vector conversion)
bo myarray = an_obj["x"].Obj();
I am getting as output the exception again and error in the command window stating:
"Mon Feb 18 10:08:35 dev: lastError==0 won't report:invalid parameter: expected a
n object ()"
It compiles fine but does not run. I think if this could be made to work I should be able to make some progress again.
Can someone please check that the array example also actually works?