Yes, try that. We can probably pull it out of the ctor and just use the global until/unless it is refactored away.
On Mon, Apr 8, 2019 at 3:19 PM Jeff Young <j...@rokeby.ie> wrote: > I see there are other places where it’s constructed with the > global g_ConnectionGraph. Do I just need to add that? > > On 8 Apr 2019, at 20:18, Jeff Young <j...@rokeby.ie> wrote: > > It’s in the cross-probing code. The init looks like this: > > NETLIST_OBJECT_LIST* net_atoms = BuildNetListBase(); > NETLIST_EXPORTER_KICAD exporter( this, net_atoms ); > STRING_FORMATTER formatter; > > exporter.Format( &formatter, GNL_ALL ); > > payload = formatter.GetString(); > > > > On 8 Apr 2019, at 20:12, Jon Evans <j...@craftyjon.com> wrote: > > The graph should be updated before netlisting even if real-time is turned > off. What is the call stack where you get the assert? I'm not a build > machine now so I will be of limited use, but it sounds like somehow the > exporter is being constructed without setting the pointer to the global > connection graph object. > > -Jon > > On Mon, Apr 8, 2019 at 3:07 PM Jeff Young <j...@rokeby.ie> wrote: > >> Hi Jon, >> >> When we try to build a netlist for Update PCB from Schematic we get an >> assert in NETLIST_EXPORTER_GENERIC::makeListOfNets() because m_graph is >> null. Is this because real-time updating is turned off? Is there a call >> to build it that we should be making in the meantime? >> >> Cheers, >> Jeff. >> _______________________________________________ >> Mailing list: https://launchpad.net/~kicad-developers >> Post to : kicad-developers@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~kicad-developers >> More help : https://help.launchpad.net/ListHelp >> > > _______________________________________________ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp > > >
_______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp