On Oct 8, 2007, at 3:05 PM, Paul McNett wrote:

> I just tried "Add Controls from DE" using HEAD of Dabo and DaboIDE,  
> and
> wxPython 2.8.6.0 on GTK and get a segmentation fault after about a 7
> second delay.

        OK, so you get the context menu, make a selection, and before  
anything else shows up, there is a delay and then a segfault. Here's  
a quick and dirty way of finding out where in the process it's  
getting hosed: replace ClassDesignerFormMixin.onRunLayoutWiz() with  
the following:

        def onRunLayoutWiz(self, evt):
                """Run the QuickLayoutWizard, using the form's named
                connection. If none exists, ask the user to select one.
                """
                x = 0
                print x; x += 1
                if self.UseSizers:
                        pnl = self.Controller.getActivePanel()
                        print x, pnl; x += 1
                        if pnl is None:
                                dabo.ui.stop(_("Please right-click on the 
target slot"),
                                                _("No target"))
                                return
                        elif not isinstance(pnl, LayoutPanel):
                                dabo.ui.stop(_("Please select a target slot 
before running the  
wizard"),
                                                _("No Slot Selected"))
                                return
                print x; x += 1
                wiz = QuickLayoutWizard(self)
                print x; x += 1
                wiz.ConnectionFile = self.CxnFile
                print x; x += 1
                wiz.ConnectionName = self.CxnName
                print x; x += 1
                wiz.callback = self.addQuickLayout
                print x; x += 1
                wiz.start()
                print x; x += 1
                if wiz:
                        wiz.release()

        This will at least narrow down the possibilities. Let me know what  
the highest number that gets printed is.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to