|
Boost : |
From: Tiago da Silva (besbatti_at_[hidden])
Date: 2008-07-15 11:34:04
I tried all the combinations available, and mylibs require me to use a
Multithreaded DLL runtime...
still getting the Access violation writing location when I try to
instantiate a
[code]
boost::archive::text_oarchive oa(ofs)
[/code]
(ofs being a ofstream)...
one thing i noticed is that if I do this:
[code]
stringstream archbuf;
boost::archive::text_oarchive *oa = new
boost::archive::text_oarchive(archbuf, 3 );
*oa << VerticesKeeper::getConst( vkeeper );
archbuf.flush();
delete oa;
[/code]
I don't get the error, but the file is not written ( that is, the
archbuf.flush() has no effect at all).
Any other ideas?
Thanks in advance,
Tiago
On Wed, Jul 16, 2008 at 12:17 AM, Tiago da Silva <besbatti_at_[hidden]> wrote:
> Thx for answering, Joaquín.
>
> Currently I'm using a Multi-threaded Debug DLL (/MDd) runtime, without
> optimizations, and all of them work perfectly. No warnings.
>
> So, do you think that, by changing the runtime options, it might work?
>
> Tiago
>
>
> On Tue, Jul 15, 2008 at 10:58 PM, <joaquin_at_[hidden]> wrote:
>
>> Tiago da Silva escribió:
>>
>>> I am linking to the following libs in my project:
>>>
>>> glut32.lib glu32.lib opengl32.lib odbc32.lib odbccp32.lib cv.lib
>>> cxcore.lib
>>> highgui.lib
>>>
>>> basically OpenGL and OpenCV.
>>>
>>> Are there any imcompatibility issues? I simply CANNOT instantiate an
>>> output
>>> file!!!.
>>>
>>>
>>
>> Hi Tiago,
>>
>> Have you made sure that all the libs your're using, as well as the main
>> program, are built to work
>> with the same version of the C runtime library (dynamic/static,
>> multi/single-threaded)?
>>
>> Joaquín M López Muñoz
>> Telefónica, Investigación y Desarrollo
>> _______________________________________________
>> Unsubscribe & other changes:
>> http://lists.boost.org/mailman/listinfo.cgi/boost
>>
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk