I need to add some code that will crash my Flex application if certain conditions are met. I need it to work whatever state the Flex application is in (maybe it’s not fully initialized, maybe some components are still being loaded, etc.)
What is the most reliable way to accomplish that?
Try one of unresolved crash bugs, e.g. this one: