1. Re[4]: Illegal operation
- Posted by aku at inbox.as Mar 19, 2001
- 510 views
thanks! >> I just trying mts sugestion to use type as procedure. D> Try this minor change to your example. I use two edittext fields.... D> ----------------- D> include win32lib.ew D> constant D> win = create(Window,"WOW",0,50,50,300,400,0), D> tx = create(EditText, "", win, 100,100,100,100,0), D> tx2 = create(EditText, "", win, 100, 200, 100, 100, 0) D> type ttx(sequence st) D> setText(tx2, st) D> return 1 D> end type D> global ttx txt D> procedure tx_onClick() D> txt = sprintf("%d", rand(1000)) D> end procedure D> onChange[tx] = routine_id("tx_onClick") D> WinMain(win, Normal) D> ----------------------- >> But can't the error caught by win32lib and show an error >> message, or if cannot, maybe euphoria run-time error, instead of >> kernel illegal operation. D> The problem, for the general case, is trying to determine what exactly is D> the error. There is no easy way to know that a problem is happening until D> Windows crashes. For this specific situation, I can get Win32lib to detect a D> potential recursive descent into the pit and handling it a bit more D> gracefully. D> ----------- D> Derek Parnell D> Melbourne, Australia D> "To finish a job quickly, go slower."