NullReferenceException WIA C#

前端 未结 1 986
情歌与酒
情歌与酒 2021-01-28 08:01

When I run the code below I get this error

NullreferenceException was unhandled..

below is my code

private void showScannerDialog()
        {
            


        
相关标签:
1条回答
  • 2021-01-28 08:47

    this.scanner is set to null when you pass it to dialog.ShowSelectItems(). The function may be trying to use it without checking if it is null.

    0 讨论(0)
提交回复
热议问题