[Ktechlab-devel] Sorry, Zoltan, u were right.

Alan Grimes agrimes at speakeasy.net
Sat Oct 17 07:52:32 UTC 2009


When I was in my bath, I realized that Zoltan's version of
electronicConnector was the correct one even though it was segfaulting.

Electronicconnector MUST be able to delete its wires.

(If you knowingly induce a segfault, notify the list first and put
enough comments around it so that people don't go blaming you). (seems
you didn't, my comment was not clear in that it was bypassing a segfault
either..)

The underlying issues are these:

1. We want to be able to delete a wire for several different reasons.

2. Many different classes keep separate, redundant, lists of wires,
(some of which out of genuine necessity.)

3. When these lists get out of sync, segfaults occour.

If we can't fix this the normal way, we'll have to go back to using
qGuardedPointers. =((((

Go ahead and revert my reversion of electronicconnector with the
appropriate comment.

The next step on this problem is to complete the suggested refactoring
of connector.h/cpp. -- Yes, I know it will be tricky. =( At least that
will reduce the number of classes involved with this bug.

-- 
New president: Here we go again...
Chemistry.com: A total rip-off.
Powers are not rights.





More information about the Ktechlab-devel mailing list