>Is there a way to stop a fox DLL once loaded into memory?
>I call my dll from an .ASP file but if I need to change it I
>must close the page that called the DLL but that doesn't even
>work all the time. So if I could stop a DLL in NT4.0 somehow
>it would be the solution.
>
>Another quick one is:
>Can the VFP debugger be ran when running a DLL? So as to
>stop the program like if I was running my program within Fox...
>
>
>Thanks in advance for any help.
>
>Willy
There is a KILL.EXE on the NT 40 CD which takes a program ID (from the task manager) or program name parameter. It runs from the command window. If it is passed the program name, it will kill all the instances of that program. I am assuming a DLL posts a program id in the task manager (under processes).
Also you could build a timer into your DLL which would check for a file in a specified folder. When it finds the file, (you could call it (process).kill where process is the name of your program), it could shut itself down. This would be nice and clean. When you want to update the program, just put the file in that folder.
HTH