dbTalk Databases Forums  

Can't run DbXml sample code

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


Discuss Can't run DbXml sample code in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ryoungdev@gmail.com
 
Posts: n/a

Default Can't run DbXml sample code - 03-05-2006 , 01:19 AM






Hello All,

I'm running Windows 2003, VS 2005.

I've got a Win32 console app with the code from:
http://www.sleepycat.com/xmldocs/int...ogramming.html

line for line. It builds fine. Running it I get this error:

HEAP[XmlDb.exe]: Invalid allocation size - CCCCCC10 (exceeded 7ffdefff)
First-chance exception at 0x77e55dea in XmlDb.exe: Microsoft C++
exception: std::bad_alloc at memory location 0x0012f904..
HEAP[XmlDb.exe]: Invalid allocation size - CCCCCC01 (exceeded 7ffdefff)
First-chance exception at 0x77e55dea in XmlDb.exe: Microsoft C++
exception: std::bad_alloc at memory location 0x0012f2bc..
First-chance exception at 0x77e55dea in XmlDb.exe: Microsoft C++
exception: [rethrow] at memory location 0x00000000..
Unhandled exception at 0x77e55dea in XmlDb.exe: Microsoft C++
exception: std::bad_alloc at memory location 0x0012f2bc..
The program '[864] XmlDb.exe: Native' has exited with code 0 (0x0).

Stepping through the code and the error is thrown on the second line of
execution:

int main( ... )
{
try
{
XmlManager mgr;
// error occurs here
XmlContainer cont = mgr.createContainer("phone3.dbxml");
...

Any help resolving this is much appreciated.

Thank you,
Ron Young


Reply With Quote
  #2  
Old   
John Snelson
 
Posts: n/a

Default Re: Can't run DbXml sample code - 03-06-2006 , 04:26 AM






Hi Ron,

I don't know that I've seen errors like this before. Have you got all
of the correct DLLs in your PATH variable? Could there be other
versions of DB XML or Berkeley DB installed on your system? Are you
using the windows installer version of DB XML? If so, could you try
building it from the source distribution, to see if that helps?

John


Reply With Quote
  #3  
Old   
ryoungdev@gmail.com
 
Posts: n/a

Default Re: Can't run DbXml sample code - 03-07-2006 , 11:05 AM



John,

The PATH variable points to the DB XML install bin directory. On a
clean system (Win2003), I downloaded/installed dbxml-2.2.13.msi.
I can follow along with the samples at
http://www.sleepycat.com/xmldocs/intro_xml/running.html, where it uses
the dbxml command prompt to interact with the system. When I try to run
any of the dbxml_example programs though, I get that same error.

I'm going to try building from the source and see how that goes.

Thanks for the reply,
Ron


Reply With Quote
  #4  
Old   
ryoungdev@gmail.com
 
Posts: n/a

Default Re: Can't run DbXml sample code - 03-07-2006 , 04:18 PM



John,

Building the source per the documentation has resolved the errors. I
can build working apps now.

Thanks again,
Ron


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 - 2012, Jelsoft Enterprises Ltd.