2011/10/15 Carsten Haitzler <[email protected]>: > On Fri, 7 Oct 2011 02:55:19 +0200 Leif Middelschulte > <[email protected]> said: > >> 2011/10/6 Christopher Michael <[email protected]>: >> > On 10/06/2011 10:10 AM, Leif Middelschulte wrote: >> >> >> >> Dear ladies and gents, especially devilhorns (as I was told) >> >> >> >> as many of you know, I'm writing the display configuration dialog for >> >> randr>=1.2 stuff. >> >> >> >> While doing so, I wrote an evas smart object, for the monitor arrangement. >> >> >> >> Now, I face an issue which seems to happen as follows: >> >> 1.) e: smart resize events are queued >> >> 2.) user: dialog closes dialog >> >> 3.) e: free dialog data >> >> 4.) e: resize callback gets executed >> >> 5.) CRASH! >> >> >> >> I am not sure about the queuing theory, but am sure that data is freed >> >> and resize callback is called afterwards. >> >> >> >> Am I missing something here? Do I have to destroy the smart object my >> >> self within free_data callback? >> >> >> > >> > In theory you should not have to. If you can provide some code for your >> > smart object and dialog, I'll take a look. >> So is there any chance of non-canceled events beeing called? >> I'll provide the code, as soon as I have talked to raster and did some >> 'final' adjustments. I don't want to bisect the smart object, so I'll >> just send you the patch (once it's 'ready') and gdb will guide you to >> the crashing part ;-) > > being very vague there. ecore-events never get cancelled. callbacks arent > queued. they get called inline. edje signals are queued in a message queue and > called in callbacks when processing the queue. can't say much without code + > gdb/valgrind :) See the evas smart object stuff in the code of the arrangement part of the randr dialog patch. Had gdb running with breakpoints and indeed data free callback was called before resize callback. I hope this helps to sort out this issue so I can finish of the TODO list of the dialog. It's very annoying to debug things with this segv happening whenever the dialog is closed. > > -- > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > The Rasterman (Carsten Haitzler) [email protected] > >
-- Leif ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Ciosco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
