Problems with macro recording

View: New views
2 Messages — Rating Filter:   Alert me  

Problems with macro recording

by mitchell-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have inadvertently come across a problem when recording macros with
Scintilla. I have previously defined code that calls SCI_INSERTTEXT()
when a '(' is typed for example, but when recording, Scintilla passes a
notification with wParam 4294967295. (Out of bounds). (On a side note
interestingly, the notifications have been 'SCI_INSERTTEXT )' and
'SCI_REPLACESEL (' in that order) I have worked around it by doing an
'if (n->wParam + 1)' conditional, but is there a more elegant way around
it? Also, I have found no documentation for what cases Scintilla will
return out of bounds pointer addresses and how to handle them.

Thanks,
-Mitchell;

_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@...
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Re: Problems with macro recording

by Neil Hodgson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

mitchell:

> I have inadvertently come across a problem when recording macros with
> Scintilla. I have previously defined code that calls SCI_INSERTTEXT()
> when a '(' is typed for example, but when recording, Scintilla passes a
> notification with wParam 4294967295.

   For SCI_INSERTTEXT, wParam = -1 indicates insertion at current position.

> it? Also, I have found no documentation for what cases Scintilla will
> return out of bounds pointer addresses and how to handle them.

   Its not a pointer argument, wParam is the position.

   Neil
_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@...
http://mailman.lyra.org/mailman/listinfo/scintilla-interest