Page 1 of 1

XML read, memory allocation error

Posted: Thu Jun 20, 2019 5:43 pm
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

Re: XML read, memory allocation error

Posted: Thu Jun 20, 2019 6:21 pm
by Antonio Linares
Darrell,

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

Re: XML read, memory allocation error

Posted: Thu Jun 20, 2019 6:37 pm
by cdmmaui
Dear Antonio,

Thank you! I hope you are well!