APS NZ
asked on
RichEdit access violation
I have a rich edit set to handle more text than would usually fit in that control by setting maxlength to High(Integer)-1024. When I search the text using findtext and it is a long way into the text I get an access violation. I am assuming that is because the search routine for findtext cannot *see* beyond a certain limit, even though it does find the text looked for.
Is there a way to stop the access violations?
Is there a way to stop the access violations?
What is the a/v? Do you what index in the richedit you hit when you a/v'd? Maybe you crossed some 32bit bounds you didn't realize were still there.
ASKER
Thanks for the reply ThievingSix - What is a/v?
ASKER
Sorry - hit button before finished. Violation is
Access Violation at address 00450C4D in module HTML_Tables.exe Read of address 00A93A38
Access Violation at address 00450C4D in module HTML_Tables.exe Read of address 00A93A38
Do you know what line produced that error?
ASKER
The richedit has 4354 lines and 135348 chars in the one I am testing. The violation occurs at random when I search for anything near the end - eg at line 3971. It happens when I close the search dialog after the text has been found.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Geert - I tried that and it says "Invalid address value. Must be a hexadecimal value in the range 00000000 - FFFFFFFF". I checked my typing, and that must be within the range?
ASKER
Looks like I must reluctantly look for another component to avoid the access violations.