HsHslRunControl2: Error Opening File for Checksum Verification

Hello,

I’m encountering a runtime error that I’ve never seen before and wonder if the community has any insights on the root cause?

The error from the trace file is:

2025-01-10 15:35:58> SYSTEM : Execute method - error; An error occurred while running Vector. The error description is: Error opening file ‘MethodNameHere.med’ for check sum verification. System error: “An unknown error occurred while accessing C:\Program Files (x86)\HAMILTON\Methods\MethodNameHere.med.” (0x37 - 0x0 - 0x12)

The error message reads like it the instrument lost access to the .med file during the run, but the file is stored locally on the instrument PC. I have successfully run the method without the error occurring, and what’s also weird is the error occurs at different points in the method for the same run setup configuration.

Any insights from this community would be much appreciated!

Hello @KennyT and welcome to the forum!

Based on the information provided, my best educated guess would be that the method in question contains various custom dialogs which include images of a large file size. At runtime, run control reads in all custom dialog data from the .med file at the time the custom dialog is called. For embedded images, all of their respective image data are included in the custom dialog’s data package.

Attempting to use numerous large embedded images over the course of the run can/will eventually cause application memory issues when opening the .med, where you receive the error you are experiencing. In this case, the checksum verification error is a result of the the root error, but not the root cause itself.

If this sounds relevant to your scenario, then I would recommend embedding lower resolution images and see if your issue goes away. Best practice is to keep embedded images under 100kb.

Hope this helps to resolve your issue.

-Nick

1 Like