Hi Pritpal,

[ Which Harbour version / compiler / platform BTW? ]

Current SVN with BCC55 (-DUNICODE -v -y) gives me this
after 32698 iterations:
--
Unrecoverable error 9009: hb_xrealloc can't reallocate memory
Called from AADD(0)
Called from MAIN(23) in stress.prg
--
This happened when the app was using about 3GB
(1GB + 2GB paged) of memory according to the
Task Manager.

This message was also put into hb_out.log, maybe
you have it too, and you can check why it failed.

Memory consumption seems a bit high to me too.

Brgds,
Viktor

On 2008.08.22., at 20:59, Pritpal Bedi wrote:


Hello

Function Main()
  Local i
  Local a_:={}
  Local aRecs := {}

  for i := 1 to 100000
     a_:= RetArray()
     aadd( aRecs, a_ )
     ? i
  next

  Return nil

Static Function RetArray()

  Return afill( array( 76 ), '2134565424' )



At about 20000 iterations (appx 1/5th) application terminates without
showing
up any error.

The same code executes fine in xHarbour and .

What I am missing? Compilation switch or it is a bug ?
I suspect mem reallocation issue.

Regards
Pritpal Bedi

--
View this message in context: 
http://www.nabble.com/AADD%28%29---tilts-under-stress-test-tp19113619p19113619.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to