This ZIP file: http://www.xHarbour.net/Test_HRB.zip
Contains a reduced sample that shows a GPF when using HRB files with xHarbour Builder + FWH.
Test.prg try's to run the HRB script 'TestScript.hrb' 20 times. Sometimes the GPF occurs after running the HRB 8 times, sometimes after running it 10 times.
This is what Test.prg contains (Compile to EXE):
- Code: Select all Expand view
#include "fivewin.ch"
PROCEDURE Main
LOCAL oScript,f
FOR f=1 TO 10
? f
oScript:=__hrbLoad( "testScript.hrb" )
__hrbDo( oScript )
__hrbUnload( oScript )
NEXT
RETURN
This is TestScript.prg (Compile to a HRB)
- Code: Select all Expand view
PROCEDURE Test_Static()
LOCAL aTemp, ff
aTemp:={ {1, "111111111"}, ;
{2, "222222222"}, ;
{3, "333333333"} }
ff:=Test_AScan(aTemp)
Alert("Test")
RETURN
STATIC FUNCTION Test_AScan(aTemp)
RETURN AScan(aTemp, {|x| x[ 2]="222222222"})
The compiled 'Test.exe' and 'TestScript.HRB' files are here:
http://www.xHarbour.net/Test_HRB_Binaries.zip
If I compile the exact same files without FWH (simple delete the '#include "fivewin.ch"' line and recompile), the GPF does not happen.
Antonio, can you please take a look at this?
Thanks!
Patrick