FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XML read, memory allocation error
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
XML read, memory allocation error
Posted: Thu Jun 20, 2019 05:43 PM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: XML read, memory allocation error
Posted: Thu Jun 20, 2019 06:21 PM

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
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Re: XML read, memory allocation error
Posted: Thu Jun 20, 2019 06:37 PM

Dear Antonio,

Thank you! I hope you are well!

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com

Continue the discussion