dbTalk Databases Forums  

DBXML query: Debug Assertion Failed

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss DBXML query: Debug Assertion Failed in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Silk
 
Posts: n/a

Default DBXML query: Debug Assertion Failed - 06-15-2004 , 10:52 AM






Hi all,

I have the following problem when I do a simple XPath Query:

when executing the program, it says to me


Debug Assertion Failed!
Program: ...\queryDocument.exe
File: dbgheap.c
Line: 1044

Expression: _CrtIsValidHeapPointer(pUserDate)


This is when the program reaches value.asString() in this (only very
simple) example function:


void doQuery( XmlContainer &container, const string &XPath)
{
XmlResults results( container.queryWithXPath(0, XPath, 0 ));
XmlValue value;
results.next(value);
cout << value.asString() << endl;
}


I'm using MVC++ 6.0

Too, when compiling I get the (here translated) debug warning

....\xmlexception.hpp(23) : warning C4275: class 'exception' is no
DLL-interface and was used as a basis class for the DLL-interface
class 'DbXml::XmlException'.
See declaration of 'exception'

0 errors, 1 warning

Is this warning of particular relevance?

Some suggestions?

mfg

Silk

Reply With Quote
  #2  
Old   
George Feinberg
 
Posts: n/a

Default Re: DBXML query: Debug Assertion Failed - 06-21-2004 , 10:30 AM






Silk,

There is a better resource for Berkeley DB XML questions -- the
DB XML mailing list, which is xml (AT) sleepycat (DOT) com. You can sign
up for this list by sending email to xml-subscribe (AT) sleepycat (DOT) com

That said, your problem could be a mismatch of compilation types.
There are 4 modules involved -- your program, BDB XML library, Xerces
library, and Pathan library. All of them should be compiled using
the same debug (or not) settings.

Regards,

George

Quote:
I have the following problem when I do a simple XPath Query:

when executing the program, it says to me


Debug Assertion Failed!
Program: ...\queryDocument.exe
File: dbgheap.c
Line: 1044

Expression: _CrtIsValidHeapPointer(pUserDate)


This is when the program reaches value.asString() in this (only very
simple) example function:


void doQuery( XmlContainer &container, const string &XPath)
{
XmlResults results( container.queryWithXPath(0, XPath, 0 ));
XmlValue value;
results.next(value);
cout << value.asString() << endl;
}

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.