[gtkada] Examples global improvement patch proposals.

Pascal p.p14 at orange.fr
Wed Aug 8 22:12:56 CEST 2012


Le 7 août 2012 à 11:25, Emmanuel Briot a écrit :

>> 
>> a) In test_display_switch, I didn't see that the GTK.Main was in a no ending loop, so I've added a flag to quit the loop, see attached file.
>> 
> 
> I do not understand what you are trying to fix it. Can you explain the scenario that leads to an error ?
Properly speaking, it isn't aimed to solve an error. I added some code to which quit the program when user clic on closing window.

> 
> 
>> b) Yes you were right, the message is only concerning My_Destroy2, so I moved exception handler, see attached file and test:
>> $ ./test_handlers.1 
>> My_Destroy
>> My_Destroy2
>> My_Destroy3
>> My_Destroy4
>> My_Destroy2
>> Exception name: CONSTRAINT_ERROR
>> Message: erroneous memory access
> 
> 
> This is actually the expected output of the test as per the comments in test_handlers.adb (we are missing a call to Add_Watch).
> I have changed the label of the button to indicate a crash is expected, but that's the only change that will be done to the test.
Well, it is just to differentiate this "expected exception" from an erroneous behavior.
> 
> 
> Emmanuel

Regards, Pascal.
http://blady.pagesperso-orange.fr




More information about the gtkada mailing list