Touseefelahi / GigeVision

Simple GigeVision implementation, GVSP, GVCP protocol implemented
97 stars 31 forks source link

Error connecting the camera #95

Closed vo1s closed 6 months ago

vo1s commented 6 months ago

Using GigeVisionLibrary.Test.Console example to test camera stream. getting this error "Update from Library: Object reference not set to an instance of an object.". Camera is found. Nothing in code changed by me. Screenshot_11

Touseefelahi commented 6 months ago

I believe the library is not able to get the decode the xml file properly. Check if the registers are being read properly

vo1s commented 6 months ago

I believe the library is not able to get the decode the xml file properly. Check if the registers are being read properly

How do I check it? Please help

Touseefelahi commented 6 months ago

https://github.com/Touseefelahi/GigeVision/blob/master/GigeVision.Core/Services/Gvcp.cs#L812

Go to this function and step in line by line while debugging. Let me know if this function is working fine or not?

vo1s commented 6 months ago

this line (byte[], string) valueTuple1 = await this.GetRawXmlFileFromCamera(ip).ConfigureAwait(false); is setting xmlFile to null and it doesnt go any further. And this line gets ip from camera, so it is not the problem

Touseefelahi commented 6 months ago

so it is not reading the XML properly, It would require more information to know the issue, share your email ID or contact me @ touseefelahi@ymail.com, I'll contact you when I get time.

vo1s commented 6 months ago

voisechannel@gmail.com