Why my program gets a privileged instruction error in fast mode?
Q: I am using the NTPort library. I am getting a privileged instruction error at my application. It seamed to me that the cause of this error, was the use of fast mode on Win2000 operating system. How can I resolve this? A: Please make sure you call EnablePorts function before you read or write the data using Inport or Outport function when your program is running at fast mode. If you didn’t call EnablePorts, you will get a privileged instruction error. When your operations finish, please call DisablePorts function to release the resource. Please refer to our FastMode sample for details. EnablePorts or DisablePorts functions are not required in normal mode.