Null Reference Exception

Null Reference Exception

I'm getting this exception:

System.ArgumentNullException: Value cannot be null.
Parameter name: format
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Intel.Healthcare.Device.Buttons..ctor(IntPtr windowHandle)
at xxx.frmScan..ctor()

My code at that point looks like:

using Intel.Healthcare;
using Intel.Healthcare.Device;
using Intel.Healthcare.Exception;

Buttons btn;
EventHandler mRfidScannedHand = null;

public frmScan()
btn = new Buttons(this.Handle);
mRfidScannedHand = new EventHandler(mBtn_RfidScanned);

Any ideas on what I'm doing wrong?

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.


There is not enough detail here to understand root casue of your issue. Can you please provide the following

1. Version of PD
2. Version of SDK
3. Full test code for us to evaluate the issue.


John C

The PD is version

Intel.Healthcare version:

Intel.Healthcare runtime version: v2.0.50727

A C# project demonstrating this error is attached.


Downloadapplication/zip TestDT.zip37.67 KB


You are running two different version of your PD and SDK. They need to be the same.

I suggest that you upgrade to the most current versions for both.
Uninstall both the SDK and PD and then download and install the latest versions.

For the SDK you can get it from Intel at

You can get the PD from your hardware vendor.


John C


Leave a Comment

Please sign in to add a comment. Not a member? Join today