Home Help Center

Freeze problem

ruzarkruzark Member ruzark ruzarkOrganization: ruzarkProject: ruzark
Hello guys, I'm reading through the ICE documentation doing all the examples, and I'm stuck in the Freeze section because of this problem:

for( p = map.begin(); p != map.end(); ++p )
{
p.set( p->second + 1 );
}

The p.set( p->second + 1 ); instruction makes my program crash, besides if I comment that line so my program can run without crashing, I need to do this: p = map.end(); before clossing the connection to the database if I don't the programs shows an error.

I'm using windows XP with VS.net2k3.


The error I get is this:

Debug Assertion Failed!

Program: bla bla bla.exe
File: dbgdel.cpp
Line: 52

Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)


Can anyone help me with this?

Comments

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    The first thing to check is that you're buiding with /MDd and linking with the "d.lib" Ice and Freeze libraries.

    Cheers,
    Bernard
  • ruzarkruzark Member ruzark ruzarkOrganization: ruzarkProject: ruzark
    Thanks

    I was overlooking those settings, and that fixed the problems I had.

    Thanks a lot Bernard.
Sign In or Register to comment.