www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Seg Fault dispoing old editor

reply Tower Ty <towerty msn.com.au> writes:
if (oldEditor !is null) oldEditor.dispose();

The above line in the example in dwt.custom.TableEditor causes a seg fault in
Linux
May 28 2008
parent Tower Ty <towerty msn.com.au> writes:
Tower  Ty Wrote:

 if (oldEditor !is null) oldEditor.dispose();
 
 The above line in the example in dwt.custom.TableEditor causes a seg fault in
Linux
I am not absolutely sure now . I had to retry the code to dispose of the old editor or it would carry forward the text from the previous editor box. On inserting the code it compiled and ran OK. However I have noticed that while editing in these editor boxes tango gives an exception if you backspace to the start of the box ie delete the text in the box back to the start. tango.core.Exception.IllegalArgumentException: Argument cannot be null So it seems what is passed by the ModifyEvent cannot be null. This seems to be a condition in tango but, when editing the table ,you must be able to edit back to the start of the Text
Jun 02 2008