Sysinternals' Portmon: Error 2

2019-02-04 04:18发布

When I try to connect to local ports, Computer -> Connect local, using Portmon v. 3.02, I'm getting an error message, Error 2, in a small error dialog box:

Enter image description here

I run the tool as an administrator (if not, I get error 6).

By the way this is a Windows 7 x64. On 32-bit, in Windows 7 x86, it works fine. How can I fix this problem?

标签: serial-port
8条回答
Anthone
2楼-- · 2019-02-04 04:51

If you run Portmon in compatibility mode, it will work.

Check Make older programs run in this version of Windows.

It says:

To run the Program Compatibility troubleshooter:

  1. Open the Program Compatibility troubleshooter by clicking the Start button Picture of the Start button, and then clicking Control Panel. In the search box, type troubleshooter, and then click Troubleshooting. Under Programs, click Run programs made for previous versions of Windows.
  2. Follow the instructions in the troubleshooter.

The above is a public explanation from Microsoft for a common situation when running older applications in Windows.

But, I can say it briefly;

  1. Right click on portmon.exe
  2. Select menu about "troubleshooting compatibility problem" or something like that (I'm using a foreign version of Windows, so I don't see correct name of that menu in English.)
  3. Select automatic mode
  4. It will detect the problem and recommend Windows XP (SP2) mode
  5. Select it and execute Portmon again.

I hope it works!

查看更多
放荡不羁爱自由
3楼-- · 2019-02-04 04:55

I haven't tried it yet, but this question mentions com0com. It creates two virtual serial ports and emulates a null modem cable between them. It claims to be able to run on 64 bit Windows. I'm not sure whether it comes with software that lets you just pipe input from a real port into one of the virtual ports. One of the FAQ's says that you can turn on logging.

I guess in the worst case, you could write your own small program that pipes data from a real port to one of the virtual ports and logs it all.

There's also this question on open-source alternatives that mentions a couple of projects.

查看更多
登录 后发表回答