vptray.exe is failing

hello
during running my mfc application the vptray.exe is failing
what can be the problem
thank you
Oleg
[122 byte] By [verchol] at [2007-11-18 19:16:56]
# 1 Re: vptray.exe is failing
What is vptray.exe? Somehow your MFC application?
marsh_pottaye at 2007-11-11 1:17:59 >
# 2 Re: vptray.exe is failing
vptray.exe is process than running in windows i dont exactly understand his functions i am running application in debug (not release mode)and after sometimes this process show error
somewhere bug in my application cause to vptray.exe fail
and i want to understand why
thanks Oleg
verchol at 2007-11-11 1:18:59 >
# 3 Re: vptray.exe is failing
I have searched all my C-drive and I have not found vptray.exe.
Enter on "groups" page of Google.com and make a search.
There are a lot of topics about it and maybe they can help you to solve the problem.
It seems to be a virus scanner, and this can explain its strange behavior. :)

Good luck!
ovidiucucu at 2007-11-11 1:20:00 >
# 4 Re: vptray.exe is failing
i found the process in C:\Program Files\NavNT
what is this i dont know
and i did not found anything good in google
verchol at 2007-11-11 1:21:05 >
# 5 Re: vptray.exe is failing
So, reformulating:

There is running on your computer a virus scanner program?
Somehow Norton Antivirus?

Close it.
If it's a service, stop it from Control Panel.

Then see if your problem occurs again.
Eventually, if it's a virus scanner's fault, report this to the manufacturer.
ovidiucucu at 2007-11-11 1:22:02 >
# 6 Re: vptray.exe is failing
Possible, your application keeps opened some file in an exclusive sharing mode.
That does not allow another application to open the file even for reading.
If the other application deos not catch this exception, very possible it fails.
ovidiucucu at 2007-11-11 1:23:07 >
# 7 Re: vptray.exe is failing
Did you find what's wrong?
ovidiucucu at 2007-11-11 1:23:59 >
# 8 Re: vptray.exe is failing
hi you was right the process is part of Norton
and if i am disabling norton this falture is not happend as expected
but the main reason of all problem that i have bug in my application :one thread of mine is completely working with com
listening to comport and reading data
and from some reason it is fails (the thread) without exception after 1 hour just the thread there is no memory leaks or something when this happens the vptray.exe if exist failing
so i have to solve the bug
thanks anywhere
Oleg
verchol at 2007-11-11 1:25:03 >
# 9 Re: vptray.exe is failing
One of my colleagues, writting a communication module, needed a thread timer to check something.
He used something like ::SetTimer(NULL, 0, 10000, NULL).
In OnTimer handler, given some condition and for some reason, he set the thread timer again, but forgot to kill the old timer before.
The bug did occur at one client who forgot the application running over the night :D :D (the application froze).

So if you find this, just keep in a member variable the value returned by SetTimer and use it for KillTimer before setting the timer again.
ovidiucucu at 2007-11-11 1:26:03 >
# 10 Re: vptray.exe is failing
hi
Ovidiu
i solved the problem it was something you said
i will explain
as i wrote after 1 hour running one thread in my application dead
and vptray.exe process crashed
i checked all but no idea what happenning
and then i opened task manager and set additional colomns like
io bites ,number of handles etc..
and here i put attantion that number off handler is growing up
i checked the prodecuder of writing and reading to comport
and here the bug
there is line CreateEvent(.....
this func return handle and i did not release it in and of function
thank you for you help it gave me ideas to solution
bye Oleg
verchol at 2007-11-11 1:27:11 >