|
That's kind of strange.. I've started Processes using an NT Service before and it has worked just fine. What if you try and put the pcs.exe in another location (perhaps VS has issues [for some reasons] here). Copy the pcs.exe file to D:\temp and change the path
@"D:\COEIA Projects\Parental Control System\bin\Debug\PCS.exe"
to
@"D:\temp\pcs.exe".
Does that work?
|
|
|
|
|
If it's a GUI app, you may need to set your service to interact with the desktop. There's a property for it, but I don't remember exactly what it's called. I think you may need to see it in the installer too, but I'm not sure about that.
I've executed commandline apps from a service with no problem, but GUI apps generally require a user to actually be logged on, hence the requirement for enabling interaction with the desktop..45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Actually i resolved that issue...the problem was that both the windows service and the app were using same BLL.dll (windows libarary) in which i had some common code. Since they were in the same solution,thats why it was giving me a problem. I have solved that now.
But the next problem is if i start a process for user A , user B , user C in my service i can see the processes started against there names in the Task Manager.
But when i log in as user A or user B i cannot see my process from Task Manager this means that processes are not running for these users.
The whole architecture is that i have a windows service which will run when the system is on regardless of who ever is logged in. This service should kick a process(win app) for the user who is currently logged in. But i am struggling with starting this win app process for users when i log in as them.
Any help would be much appreciated.
|
|
|
|
|
Instead of doing it that way, why don't you :
0) Write a system tray app that runs when the user logs in
1) Make the systray app communicate with the service that notifies it when the app starts up
2) Let the service communicate with the running instance of the systray app..45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Thanks John for your suggestion. I would definitely give it a go. For the part(0) of your suggestion, is there any windows event of user logging which i can capture in my .NET code. I mean when the user logs in, some event is fired which i can capture.
Thanks in advance
|
|
|
|
|
John's suggestion is a good one - try it out. The main issue though is to launch a process on the Administrator account (your parental countrol app) when a user log's on the system (a user with ony User right's) because then they're not able to kill that process using the Task Manager.
|
|
|
|
|
I googled "C# user logon event" and found this:
http://technet.microsoft.com/en-us/library/cc721961%28WS.10%29.aspx[^]
You can google too. .45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
hi friends & all contributers!!
i am using a pathgradient brush. i am using a loop to add a single ellipse to add to path and filling that ellipse with path gradient brush and resetting the path.. when the points are too many the application slows down..
Is there any way to make this faster??
Thanks in Advance
Samir
|
|
|
|
|
Basically: No.
The only things you can do are
1) Use a solid brush instead. This may bring some improvement as the color for each pixel does not have to be interpolated
or
2) Use less points in your path. You wrote that performance degrades when too many points are used. This sounds like your graphics path has far too many points. How many are we talking about here? 100? 1000? Especially a curved path can be defined with far less points and still look good.A while ago he asked me what he should have printed on my business cards. I said 'Wizard'.
I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.
|
|
|
|
|
Are you drawing directly to the screen or to the memory? I have found out that it is a lot quicker to draw to the Image, then draw that image to screen
|
|
|
|
|
Hey guys,i need some help for vehicle recognition system progject, using AForge. i am new in using AForge.
Thanks.
|
|
|
|
|
can you elaborate your question?
Means, from where you want to recognize vehicle?
Is it static image, video or what?
Life's Like a mirror. Smile at it & it smiles back at you.- P Pligrim
So Smile Please
|
|
|
|
|
jokerleo wrote: Hey guys,i need some help for vehicle recognition system progject, using AForge.
Please read point #2 in the guidelines[^]:
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
hmm, sorry bout that, the objective is to identiy different types of vehicles based on certain paremeters like size,etc. Static image.
|
|
|
|
|
It sounds difficult
Beacause Images are not taken from same view and you are using size as parameter so there calibration is not match.
its better if you can give image link
Life's Like a mirror. Smile at it & it smiles back at you.- P Pligrim
So Smile Please
|
|
|
|
|
hmm. alright, but what if the parameter is car plate. is there any ways?
|
|
|
|
|
Yes, of course there is. The police use this system, and have done for quite a while.
You may have guessed there is no CarRegistration.Read method just yet in the framework, so for now you'll be wanting to look up image processing, character recognition and half a dozen other things that im sure you'll need but i'll leave as an exercise for you to work out.
|
|
|
|
|
yes,agreed. i will look up the infomation of the few points you mention and try to work soemthing out.Thanks.If i encounter any problems, i will post again.
|
|
|
|
|
I refer you to the answer I gave here[^]."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
i have recently edited the software. useing a camera take a photo of the side view of the car and background, use the background to subtract the car in the background using AForge method getting the car image, the car will be measured in pixels. i will repeat this step for lorry and motorcycle. than use switch case method to determine which vehicle has entered the gantry.
any ways to improve it?
thanks.
|
|
|
|
|
what is the control code that press start menu. i wanna do it by using voice. by the way i can store the voice. and it is in now text form. when i will say start, it will press the start button... please help me...
|
|
|
|
|
|
i need only for start button.... it was shift and tab...
|
|
|
|
|
Hi,
I need to ask once you have created an List how do you compare each of the values within the List against another number?modified on Wednesday, March 10, 2010 12:03 AM
|
|
|
|