XML read, memory allocation error

XML read, memory allocation error

Postby cdmmaui » Thu Jun 20, 2019 5: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
User avatar
cdmmaui
 
Posts: 693
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: XML read, memory allocation error

Postby Antonio Linares » Thu Jun 20, 2019 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: XML read, memory allocation error

Postby cdmmaui » Thu Jun 20, 2019 6:37 pm

Dear Antonio,

Thank you! I hope you are well!
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
 
Posts: 693
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests

cron