Run State change Callbacks are discussed in our CVI manuals and our Knowledgebase
here. I couldn't really say why your application is getting a protection fault in the callback, but you must be using the CVI run-time engine. The callback was used in the CVI envinronment for determining the run-state in debugging.
Hope that information helps,
Chris Matthews
National Instruments