Very strange AV when using TRegexEngine and Datasets together
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
I've found a very strange Access Violation when using TRegexEngine and Datasets together, although they don't use each other.
It is sufficient to open a Dataset (TSQLQuery) successfully (?) to get an AV inside TRegexEngine.MatchString.
Steps to reproduce:
Attached example application shows this issue.
Running the application without an argument produces this output:
Connecting to database
Connected
Searching string
Match not found
Executing query
Query done
Searching string
Match not found
Opening the dataset (with "open" as parameter) results in this output:
Connecting to database
Connected
Searching string
Match not found
Executing query
Query done
Searching string
Error: Access violation
$08085B32
$0808528F
$080482F8 DOREGEX, line 24 of strangebug.lpr
$080485BC main, line 70 of strangebug.lpr
Additional information:
Revision of my compiler source is 14085, but I also tested with a compiler from around April (don't know the revision anymore, sorry) and there the error happens, too.
2.2.4 does not have this error.
Mantis conversion info:
- Mantis ID: 15028
- OS: Linux
- OS Build: 2.6.31
- Platform: i386
- Version: 2.5.1
- Monitored by: » clauslack (Claudio Romero)