Getting null pointer crash 4.1.1

Hi cryptoref,

Are you keeping a reference to the event object outside the event chain? It might be a dead object and can cause your program to crash. (cf. A problem with Event objects)

To find out where the access violation occurs, try the following option:

$ python -Xdev -Xtracemalloc ‘script.py’