Dermot,
Try it like this. I couldn't figure out exactly what was wrong, so I rewrote
the vi...
Be carefull with the input name. If you just type "a", all processes with a
"a" anywhere in any of the module paths are killed. Also, be aware that the
"\" has a different meaning in the match pattern function.
Regards,
Wiebe.
"Dermot1000" wrote in message
news:506500000008000000D7F90000-1079395200000@exchange.ni.com...
> Hallo,
> I need a VI that kills a running process that does not have a window
> under windows 2000. I am using LabVIEW 6.i.
> I tried to convert a VB code that works to LabVIEW but the program I
> generated crashes LabVIEW all the time at different places. I used the
> Kernel32.dll and Psapi.dll in that VI.
> The Message says
that an Area of memory could not be read. I am really
> interessted why that happened and why LabVIEW crashes, because I want
> to use Windows dlls in the future.
> But first priority is to get a VI that terminates a running process. I
> would be very thankful for that.
> Greetings Dermot
> I appended my code. It is a bit chaotic - sorry. Did not have much
> time.
[Attachment Close Process.vi, see below]