Re: [Cppcms-users] Strange memory corruption during copy construction of cppdb::result
Brought to you by:
artyom-beilis
|
From: Petr J. <ele...@ex...> - 2013-05-14 10:15:32
|
Ok, wrong again. i've found out whats happening.
The reason the loop was hanging is because inside the loop I was calling
result::get<string>("colname") but colname is NULL in the database.
It still seems like there is something wrong.
Accessing a null column via result::get should either throw() or return
an empty string. Not hang the application.
On 14/05/2013 7:02 PM, Petr Janda wrote:
> An update:
>
> Well it seems like it's not a memory corruption, but this is the symptoms:
>
> when calling result::next() it hangs after the 1st iteration. It happens
> only after the copy-construction.
>
> Petr
>
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
>
>
>
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Please use PGP to encrypt your email to ensure our privacy is respected.
|