trichview.com

trichview.support




Re: AVs every time I try to change style


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/27/2003 17:54:01


If tags-are-pchars, you can use as tags only:

- return value of StrNew ( AddNLWTag(..., Integer(StrNew('tag'))) )

- 0 (that is nil - empty string)

Do not use -1, error will be any time when editor will try to access a tag

string.


> That was it! rvoTagsArePChars was true. What threw me was that the AV

> didn't occur when adding the text using AddNLWTag; it only occurred

> later when I tried to assign a style to selected text. Perhaps passing

> -1 avoids an AV in AddNLWTag, but stores up trouble for later?

>

> Cheers,

> Martin

>





Powered by ABC Amber Outlook Express Converter