Debug Assertion Failed! and no obvious Error

Discussion in 'C++' started by Kapt. Boogschutter, Jun 23, 2004.

  1. Does anyone know Why I'm getting this Error???

    Debug Assertion Failed!
    File: daocore.cpp
    Line: 42

    My code:

    CDaoDatabase dao;
    dao.Create("filename");
    dao.Close();

    It's very strange, because I get no errors until the CDaoDatabase object is
    destructed.
    Another strange thing is that if I call dao.IsOpen it returns TRUE even if I
    call dao.Close several times.

    I'm at a los since try and catch didn't help at all.
    Kapt. Boogschutter, Jun 23, 2004
    #1
    1. Advertising

  2. Kapt. Boogschutter

    red floyd Guest

    Kapt. Boogschutter wrote:
    > Does anyone know Why I'm getting this Error???
    >
    > Debug Assertion Failed!
    > File: daocore.cpp
    > Line: 42
    >
    > My code:
    >
    > CDaoDatabase dao;
    > dao.Create("filename");
    > dao.Close();
    >
    > It's very strange, because I get no errors until the CDaoDatabase object is
    > destructed.
    > Another strange thing is that if I call dao.IsOpen it returns TRUE even if I
    > call dao.Close several times.
    >
    > I'm at a los since try and catch didn't help at all.
    >

    OT. CDaoDatabase is not Standard. Look in the MS newsgroups
    (news.microsoft.com or msnews.microsoft.com) for help.
    red floyd, Jun 23, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SorceCode
    Replies:
    2
    Views:
    3,364
    Christian Jan├čen
    Jan 26, 2004
  2. Cormac
    Replies:
    3
    Views:
    2,574
    Kevin Goodsell
    Apr 6, 2004
  3. w3r3w0lf

    debug assertion failed

    w3r3w0lf, Apr 15, 2004, in forum: C++
    Replies:
    2
    Views:
    2,559
    John Harrison
    Apr 15, 2004
  4. Arti Potnis
    Replies:
    2
    Views:
    6,689
    Howard
    Sep 2, 2004
  5. Replies:
    4
    Views:
    507
    Max M.
    Oct 6, 2005
Loading...

Share This Page