Hello,

What's wrong with this code?

int main
(
    int   argc,
    char* argv[]
) {
    if (rt_uniresource.re_magic != RESOURCE_MAGIC)
        rt_init_resource(&rt_uniresource, 0, NULL);

    db_i*   inmemDb   = db_create_inmem();
    rt_wdb* targetWdb = wdb_fopen("new.g");

    db_dump(targetWdb, inmemDb);

    wdb_close(targetWdb);
    db_close(inmemDb);

    return 0;
}

It crashes on Windows inside db_dump.


Daniel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BRL-CAD Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-users

Reply via email to