When I debug the code it is not even taking me to the next line after it calls scan.
It directly exits. On Mon, Jun 7, 2021 at 10:15 PM Ralph Seichter via clamav-users < clamav-users@lists.clamav.net> wrote: > * Karthik Iyer via clamav-users: > > > I keep getting this error when i try to use SendAndScanFileAsync > > > > "C:\KJ\Work\GEP Demos\CloudMersive Virus Scan > > Demo\CloudMersiveDemo\bin\Debug\netcoreapp3.1\CloudMersiveDemo.exe > > (process 22096) exited with code 0. > > What error are you referring to? By convention, exit code 0 signals "no > error". > > > This is my code. > > At a quick glance, your code exits with code 0 no matter what value > scanResult.Result has, even in the case when no test condition matches, > which might not be what you want. > > -Ralph > > _______________________________________________ > > clamav-users mailing list > clamav-users@lists.clamav.net > https://lists.clamav.net/mailman/listinfo/clamav-users > > > Help us build a comprehensive ClamAV guide: > https://github.com/vrtadmin/clamav-faq > > http://www.clamav.net/contact.html#ml >
_______________________________________________ clamav-users mailing list clamav-users@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml