Attached is a code which generated a Fatal error while in emulator mode.
Please see it and help me solve the issue.
Thanks & Regards,
This is a bit vague to comment on. Several questions:
1> What processor are you using?
2> What are your DCPLBs set to?
3> What is the fault address of the failure, and more importantly, what is the line of assembly code at that location?
The data protection exception is vague because it can be an illegal access due to a bad pointer or due to memory protection settings. You need to go a bit further in the debug to provide some context, as the code itself appears to be trivial. Without the details above, my guess is that your SF_EDGE_DETECT variable is being resolved to memory that has protection enabled.
Retrieving data ...