Edit: This seems to be related to a PB5.40 crash with similar symptoms:An Error has been detected in the IDE!
Error: Invalid memory access
IDE build on 10/27/2014 [13:38] by Fred
Branch: v5.30 Revision: 1667
http://www.purebasic.fr/english/viewtop ... =4&t=63796