Tobias Boege wrote: > On Fri, 16 Jan 2015, Koko wrote: >> Koko wrote: >> >> >> > That's it. >> > The program starts and begin playing the file. >> > As i push the button, it stops playing and the player window will >> > close, but as soon as i close the main form, the gambas interpreter >> > shows a window saying the program crashed wuth a segmentation fault. >> > >> > This is the kernel message: >> > traps: gbx3[16400] general protection ip:7f17cdb9c824 sp:7fffff2682a0 >> > error:0 in libpthread-2.20.so[7f17cdb93000+17000] >> > >> > Thanks to anyone who can spot a light on this issue. >> >> An update: >> If i switch from gb.qt4 to gb.gtk the issue is gone. >> The same if i use it in a new Task (gb.task) >> > > Does the library create threads behind your back? Because Gambas is > single- threaded and I can imagine that the GUI toolkits don't like being > clone'd without a warning either. Just an idea; I haven't tested. > > Regards, > Tobi >
Yes, it does create several threads, pstree output: gbx3 {mpv/ao} {mpv/demux} 3*[{mpv/playback co}] {mpv/vo} As a side note, playing an audio only file doesn't crash on exit (as expected, i suppose) ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user