XML read, memory allocation error

Post Reply
User avatar
cdmmaui
Posts: 653
Joined: Fri Oct 28, 2005 9:53 am
Location: The Woodlands - Dallas - Scottsdale - London
Contact:

XML read, memory allocation error

Post by cdmmaui »

Hello Everyone,

We are using XML reader to process large amount XML messages. We are receiving the error below, how do I resolve this issue?

/***********************************************
Application Internal Error - C:\winapps\vessel\xmlreader.exe
Terminated at: 2019-06-09 08:54:10
Unrecoverable error 9006: hb_xgrab can't allocate memory
Called from HBXML_DATAREAD(0)
Called from (b)TXMLDOCUMENT(0) in xhb\txml.prg
Called from TXMLDOCUMENT:READ(0) in xhb\txml.prg
Called from TXMLDOCUMENT:NEW(0) in xhb\txml.prg
Called from _STARTUP(133) in xmlreader.prg
Called from (b)MAIN(66) in xmlreader.prg
Called from TWINDOW:ACTIVATE(1034) in .\source\classes\WINDOW.PRG
Called from MAIN(66) in xmlreader.prg
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: XML read, memory allocation error

Post by Antonio Linares »

Darrell,

In the loop, before the END, please place a call to SysRefresh() and another call to hb_gcAll()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
cdmmaui
Posts: 653
Joined: Fri Oct 28, 2005 9:53 am
Location: The Woodlands - Dallas - Scottsdale - London
Contact:

Re: XML read, memory allocation error

Post by cdmmaui »

Dear Antonio,

Thank you! I hope you are well!
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Post Reply