Ddb needs a maintainer

Rory McGuire via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Apr 12 02:52:53 PDT 2016


On Tue, Apr 12, 2016 at 11:30 AM, Suliman via Digitalmars-d-announce <
digitalmars-d-announce at puremagic.com> wrote:

> This code compile and run:
>
> try {
>        auto result = cmd.executeQuery;
>
>            foreach (row; result)
>            {
>                 writeln(row[0]);
>                 x = row[1].get!(ubyte[]);
>            }
>
>     }
>     catch (ServerErrorException e) {
>         // Probably table does not exist - ignore
>     }
>
>
>
>
> But I am getting error:
>
> core.exception.OutOfMemoryError at src\core\exception.d(679): Memory
> allocation failed
>
> Is there any hack that can prevent this error?
>

Would need to see the full exception stack trace that was printed out.
Could you perhaps have an infinite recursion bug in there somewhere?
You should be able to see if you are getting the right type out of the
Variant by using something like:
writeln(row[1].type);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20160412/43712f1b/attachment-0001.html>


More information about the Digitalmars-d-announce mailing list