I have the following code in a generalized startup script for GUI applications
FUNCDEF('ListboxLine', '32u, void, 32u, 32u, str[500] stor', 'user32', 'SendMessage')
I just ran into a problem whereby RPC crashed on the following line
DO
bla-bla-bla
listboxline(handle, 393, i - 1, myline)
After a bit, I realized it was because the value in the FUNCDEF (500 in this case) wasn't big enough. Is there some CATCH option that would, well, CATCH such an error ? As it is, RPC simply crashes with no warning or indication of what is incorrect. |