Hi!

If used in procedur any function of HB_REGEX..()
it work OK, but when return from procedur application GPF.
Sample:
****************
PROCEDURE main
 ? Test()
RETURN

FUNCTION test()
 LOCAL r , aM, t:="SAME TEST TEXT"
 r:=HB_REGEXCOMP(".*(TEST).*")
 aM:=HB_REGEX(r,t)
 IF VALTYPE(aM)=="A"
   ? "FOUND:",aM[2]
 ELSE
   ? "NOT FOUND"
 ENDIF
 ? hb_Version(),HB_BUILDDATE()
 INKEY(0)
RETURN "OK"
***************
Dispaly:
 FOUND: TEST
 Harbour 2.1.0dev (Rev. 14130) Mar 11 2010 12:56:34
and wait for key. I key press aplication GPF and hb_out.log:
Application Internal Error - C:\TEST.EXE
Terminated at: 2010.05.13 14:19:58
Unrecoverable error 6005: Exception error: 

    Exception Code:C0000005
    Exception Address:004788B3
    EAX:006F0748  EBX:00000000  ECX:00000000  EDX:006E0090
    ESI:006F06B8  EDI:00486221  EBP:006CFBEC
    CS:EIP:0187:004788B3  SS:ESP:018F:006CFBE8
    DS:018F  ES:018F  FS:4FAF  GS:0000
    Flags:00010217
    CS:EIP: 89 43 08 89 42 04 8D 51 04 89 14 08 8B 10 8B CA
    SS:ESP: 006F06A8 006CFBF8 004787EC 006F074C 006CFC04 00478109 006F074C
006CFC10 0043CA8F 006F074C 006CFC1C 00477CDC 006F0750 006CFC28 00483B37
006F0750

    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...
    004788B3 006CFBEC   006CFBF8 004787EC 006F074C
    004787EC 006CFBF8   006CFC04 00478109 006F074C
    00478109 006CFC04   006CFC10 0043CA8F 006F074C
    0043CA8F 006CFC10   006CFC1C 00477CDC 006F0750
    00477CDC 006CFC1C   006CFC28 00483B37 006F0750
    00483B37 006CFC28   006CFC34 0041449F 006F06C4
    0041449F 006CFC34   006CFC40 00414EC9 006F06B8
    00414EC9 006CFC40   006CFC54 0043C3C8 006F06B8 00492C30 006CFC80
    0043C3C8 006CFC54   006CFC60 0042A393 006F06B8
    0042A393 006CFC60   006CFC74 00440A38 006EBBAC 00000000 00492C30
    00440A38 006CFC74   006CFC94 00422891 006CFC80 00000001 00000000
00000000 00000000 00000010
    00422891 006CFC94   006CFD98 0041CA60 00000000 00000001 00000001
00493134 006CFCB8 004787EC 006EF894 006CFCD4
    0041CA60 006CFD98   006CFDC0 00401180 00486218 00486184 00422864
00000000 00000000 00000000 00000000 00000002
    00401180 006CFDC0   006CFDDC 0041BD5A 006E0000 81D729C0 00000000
81D729C0 00000000
    0041BD5A 006CFDDC   006CFE00 00443141 00000001 00000000 00486114
81D729C0 004A0000 00000000 005A00AC
    00443141 006CFE00   006CFE30 0047FD3B 00400000 00000000 81D729C0
0000000A 00000000 81D728EC 005C0000 00000000
    0047FD3B 006CFE30   006CFF78 00000000 00486114 BFF8B560 00000000
81D728EC 005C0000 74736554 45584500 81D72800
    00000000 006CFF78   006CFFF4 BFF8B412 81D82490 00000008 81D728EC
00000000 00000000 00000000 00000000 00000000


Modules:
0x00400000 0x0009F000 C:\TEST.EXE
0xBFF50000 0x00011000 C:\WINDOWS\SYSTEM\USER32.DLL
0xBFF20000 0x00026000 C:\WINDOWS\SYSTEM\GDI32.DLL
0xBFE80000 0x00010000 C:\WINDOWS\SYSTEM\ADVAPI32.DLL
0xBFF70000 0x00074000 C:\WINDOWS\SYSTEM\KERNEL32.DLL

Called from TEST(16) in test.prg
Called from MAIN(2) in test.prg
------------------------------------------------------------------------
Application Internal Error - C:\TEST.EXE
Terminated at: 2010.05.13 14:19:59
Unrecoverable error 6005: Exception error: 

    Exception Code:C0000005
    Exception Address:004788B3
    EAX:006F0748  EBX:00000000  ECX:00000000  EDX:006E0090
    ESI:006F06B8  EDI:00486221  EBP:006CFBEC
    CS:EIP:0187:004788B3  SS:ESP:018F:006CFBE8
    DS:018F  ES:018F  FS:4FAF  GS:0000
    Flags:00010217
    CS:EIP: 89 43 08 89 42 04 8D 51 04 89 14 08 8B 10 8B CA
    SS:ESP: 006F06A8 006CFBF8 004787EC 006F074C 006CFC04 00478109 006F074C
006CFC10 0043CA8F 006F074C 006CFC1C 00477CDC 006F0750 006CFC28 00483B37
006F0750

    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...
    004788B3 006CFBEC   006CFBF8 004787EC 006F074C
    004787EC 006CFBF8   006CFC04 00478109 006F074C
    00478109 006CFC04   006CFC10 0043CA8F 006F074C
    0043CA8F 006CFC10   006CFC1C 00477CDC 006F0750
    00477CDC 006CFC1C   006CFC28 00483B37 006F0750
    00483B37 006CFC28   006CFC34 0041449F 006F06C4
    0041449F 006CFC34   006CFC40 00414EC9 006F06B8
    00414EC9 006CFC40   006CFC54 0043C3C8 006F06B8 00492C30 006CFC80
    0043C3C8 006CFC54   006CFC60 0042A393 006F06B8
    0042A393 006CFC60   006CFC74 00440A38 006EBBAC 00000000 00492C30
    00440A38 006CFC74   006CFC94 00422891 006CFC80 00000001 00000000
00000000 00000000 00000010
    00422891 006CFC94   006CFD98 0041CA60 00000000 00000001 00000001
00493134 006CFCB8 004787EC 006EF894 006CFCD4
    0041CA60 006CFD98   006CFDC0 00401180 00486218 00486184 00422864
00000000 00000000 00000000 00000000 00000002
    00401180 006CFDC0   006CFDDC 0041BD5A 006E0000 81D729C0 00000000
81D729C0 00000000
    0041BD5A 006CFDDC   006CFE00 00443141 00000001 00000000 00486114
81D729C0 004A0000 00000000 005A00AC
    00443141 006CFE00   006CFE30 0047FD3B 00400000 00000000 81D729C0
0000000A 00000000 81D728EC 005C0000 00000000
    0047FD3B 006CFE30   006CFF78 00000000 00486114 BFF8B560 00000000
81D728EC 005C0000 74736554 45584500 81D72800
    00000000 006CFF78   006CFFF4 BFF8B412 81D82490 00000008 81D728EC
00000000 00000000 00000000 00000000 00000000


Modules:
0x00400000 0x0009F000 C:\TEST.EXE
0xBFF50000 0x00011000 C:\WINDOWS\SYSTEM\USER32.DLL
0xBFF20000 0x00026000 C:\WINDOWS\SYSTEM\GDI32.DLL
0xBFE80000 0x00010000 C:\WINDOWS\SYSTEM\ADVAPI32.DLL
0xBFF70000 0x00074000 C:\WINDOWS\SYSTEM\KERNEL32.DLL

Called from TEST(16) in test.prg
Called from MAIN(2) in test.prg
------------------------------------------------------------------------
Application Internal Error - C:\TEST.EXE
Terminated at: 2010.05.13 14:20:00
Unrecoverable error 6005: Exception error: 

    Exception Code:C0000026
    Exception Address:BFFC04D4
    EAX:00000000  EBX:00000000  ECX:006CFA38  EDX:006CFAF0
    ESI:006CF928  EDI:81D82490  EBP:006CF9FC
    CS:EIP:0187:BFFC04D4  SS:ESP:018F:006CF9EC
    DS:018F  ES:018F  FS:4FAF  GS:0000
    Flags:00000202
    CS:EIP: 5D 5F 5E 5B 8B E5 5D C3 8B 4C 24 04 F7 41 04 06
    SS:ESP: 006CF9FC BFF79138 00000000 006CFF68 006CFA20 BFFC0613 006CFF68
006CFA20 006CFAF0 81D82490 006CFF68 006CFAF0 006CFB0C 006CFA44 BFF76849
006CFAF0

    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...
    BFFC04D4 006CF9FC   006CFA20 BFFC0613 006CFF68 006CFA20 006CFAF0
81D82490 006CFF68 006CFAF0 006CFB0C
    BFFC0613 006CFA20   006CFA44 BFF76849 006CFAF0 006CFF68 006CFB0C
006CFAC8 006CFE28 BFF76855 006CFF68
    BFF76849 006CFA44   006CFAD8 BFF87FE9 006CFAF0 006CFF68 006CFB0C
006CFAC8 BFFC05B4 00486221 006F06B8 00000000
    BFF87FE9 006CFAD8   006CFBEC FFECBAD7 006CFB0C 006CFAF0 0000000D
00000000 C0000005 00000000 00000000 004788B3
    FFECBAD7 006CFBEC   006CFBF8 004787EC 006F074C
    004787EC 006CFBF8   006CFC04 00478109 006F074C
    00478109 006CFC04   006CFC10 0043CA8F 006F074C
    0043CA8F 006CFC10   006CFC1C 00477CDC 006F0750
    00477CDC 006CFC1C   006CFC28 00483B37 006F0750
    00483B37 006CFC28   006CFC34 0041449F 006F06C4
    0041449F 006CFC34   006CFC40 00414EC9 006F06B8
    00414EC9 006CFC40   006CFC54 0043C3C8 006F06B8 00492C30 006CFC80
    0043C3C8 006CFC54   006CFC60 0042A393 006F06B8
    0042A393 006CFC60   006CFC74 00440A38 006EBBAC 00000000 00492C30
    00440A38 006CFC74   006CFC94 00422891 006CFC80 00000001 00000000
00000000 00000000 00000010
    00422891 006CFC94   006CFD98 0041CA60 00000000 00000001 00000001
00493134 006CFCB8 004787EC 006EF894 006CFCD4
    0041CA60 006CFD98   006CFDC0 00401180 00486218 00486184 00422864
00000000 00000000 00000000 00000000 00000002
    00401180 006CFDC0   006CFDDC 0041BD5A 006E0000 81D729C0 00000000
81D729C0 00000000
    0041BD5A 006CFDDC   006CFE00 00443141 00000001 00000000 00486114
81D729C0 004A0000 00000000 005A00AC
    00443141 006CFE00   006CFE30 0047FD3B 00400000 00000000 81D729C0
0000000A 00000000 81D728EC 005C0000 00000000


Modules:
0x00400000 0x0009F000 C:\TEST.EXE
0xBFF50000 0x00011000 C:\WINDOWS\SYSTEM\USER32.DLL
0xBFF20000 0x00026000 C:\WINDOWS\SYSTEM\GDI32.DLL
0xBFE80000 0x00010000 C:\WINDOWS\SYSTEM\ADVAPI32.DLL
0xBFF70000 0x00074000 C:\WINDOWS\SYSTEM\KERNEL32.DLL

Called from TEST(16) in test.prg
Called from MAIN(2) in test.prg
------------------------------------------------------------------------

Compile with BCC551 on Windows98SE

Adam
-- 
View this message in context: 
http://harbour-devel.1590103.n2.nabble.com/Error-with-hb-regex-tp5045832p5045832.html
Sent from the harbour-devel mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to