Link to home
Start Free TrialLog in
Avatar of APS NZ
APS NZFlag for New Zealand

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?
Avatar of ThievingSix
ThievingSix
Flag of United States of America image

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.
Avatar of APS NZ

ASKER

Thanks for the reply ThievingSix - What is a/v?
Avatar of APS NZ

ASKER

Sorry - hit button before finished.  Violation is

Access Violation at address 00450C4D in module HTML_Tables.exe Read of address 00A93A38
Do you know what line produced that error?
Avatar of APS NZ

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
Avatar of torimar
torimar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of APS NZ

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?
Avatar of APS NZ

ASKER

Looks like I must reluctantly look for another component to avoid the access violations.