Search "SBCrash" on the SBsource website. What the program does is load some kind of invalid memory thing. It should be easy to implement in your code.