On Mon, 7 Jun 2021, Karthik Iyer via clamav-users wrote: > I keep getting this error when i try to use SendAndScanFileAsync
> "C:\KJ\Work\GEP Demos\...\CloudMersiveDemo.exe (process 22096) exited with code 0.
> To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
> Press any key to close this window . . ."
As has already been mentioned, that does not appear to be an "error",
because an exit code of 0 (usually) means that the previous operation
succeeded. But it does *not* mean that all the operations before that
succeeded! Welcome to computer programming. Probably more than 90%
of it is handling all the thigns that can go wrogn. > This is my code.
> Any ideas ?
You are using tools which are not provided in the ClamAV distribution.
It is not clear to me that the problems you are having are especially
related to ClamAV itself. They appear to be more general programming
issues, which is not really why this mailing list exists. If we spent
a lot of time on such issues here we would run the risk of being asked
by the list owners to desist.
In order for us to give you better help, you would need to provide a
lot more information. For example: How did you obtain and exactly how
did you install ClamAV? Have you verified that you can download the
virus database and keep it up to date with freshclam? Have you looked
at any third-party databases which you might want to use (and figured
out how to keep them up to date too)? Have you verified that you can
run the ClamAV daemon (clamd)? Have you used it to scan files via the
command-line tools supplied with ClamAV?
It might be better for you if you find a good place to get help with
the non-ClamAV tools which you are using, if there is one. Have you
searched for something like that?
Apart from all that I think at this stage it's fair to say that you
need to be able to walk before you can run. It would help us to help
you to avoid falling over in the process if you can tell us (in very
general terms) what you want to achieve with ClamAV.
I don't mean something like "I want to scan a file."
I mean something like "My company is developing a Web application
which permits untrusted users to share files, and we need to ensure
that those files do not contain anything malicious so that we don't
get sued by all the users who were injured by using our service, and
thus go bankrupt instead of making pots and pots of money."
You might also want to ask questions like "What percentage of virus
scans using ClamAV will claim that an infected file is OK?". Some
estimates of mine are in the archives of this list, if you'd like to
search for them.
You're in a minefield. Your move.
clamav-users mailing list
Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml