[Gambas-user] Wait statements > stack overflow (gb3)

Fabien Bodard gambas.fr at ...626...
Fri May 7 14:02:36 CEST 2010


are you in a timer event ??

look at the doc about this problem it's explained :

http://gambasdoc.org/help/lang/wait

2010/5/7 richard terry <rterry at ...1946...>:
> Hi LIst,
>
> I'm automatically parsing many many thousands of pages of documents, the
> patients are in a listbox, and the documents in another. (with underlying
> collections of course).
>
> The basic code looks like this:
>
> If cvwInboxDocuments.count = 0 Then
>                  '.... do a whole lot of stuff
>      Wait      'make the gui refresh
>  Else
>                   '.... do a whole lot of stuff
>      Wait      'make the gui refresh
>
>     Wait
>  End If
>
> When this runs, it looks at each of the some 1800 pages of documents,
> generated from hl7 files which were previously  parsed into the table by an
> automated process and converts the essential info to html  for display, which
> it resaves and  and does the appropriate linking it needs to do to patient
> names, provider names, test names etc.
>
> Though this could all run 'under the hood -automaed', I put the Wait
> statements in so I could see the lists updating on the screen to watch what
> was happening.
>
> If I run the code, after doing about 1/4 of the work it dies on the Wait
> statement with a 'Stack Overflow' error.
>
> If I comment out the Wait statements > it all runs without a problem.
>
> Anyone know what's happening??
>
> Regards
>
> Richard
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list