Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why my program gets a privileged instruction error in fast mode?

0
Posted

Why my program gets a privileged instruction error in fast mode?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.