Mwwaahaaaa! Such a hideous looking error from such a simple typo !?!

Check the manual after checking the line
my.event = my_event();

Click to reveal..
you want to be setting the my.event to a POINTER to the my_event function,
not to the RESULT of the my_event functin being executed...

my.event = my_event; that is...



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial