Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dump Founding
Message
 
To
10/06/2003 15:31:36
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00798570
Message ID:
00798741
Views:
35
This message has been marked as the solution to the initial question of the thread.
Hi Yh Yau,
Just thought of helping you. The mentioned below contents can help.
My advice.
1. Remove the right of debugging of application in Win2k.
2. Disable the Debug Services in win2k.




You need to read articles by Jeffrey Richter that explains how the whole thing works

Refer to
http://www.microsoft.com/msj/0398/win320398.aspx
Sometimes, when the Internet Explorer or any other application encounters an error, 
the following error pops up and the application hangs. You cannot even end the task.

    'This program cannot be closed. If it is being debugged, please resume it or 
close the debugger first.'

The  CreateProcess Windows API function is used to run a new program. It creates 
a new process and its primary thread. The new process executes the specified executable 
file. 

BOOL CreateProcess( 
  LPCWSTR lpszImageName, 
  LPCWSTR lpszCmdLine, 
  LPSECURITY_ATTRIBUTES lpsaProcess, 
  LPSECURITY_ATTRIBUTES lpsaThread, 
  BOOL fInheritHandles, 
  DWORD fdwCreate, 
  LPVOID lpvEnvironment, 
  LPWSTR lpszCurDir, 
  LPSTARTUPINFOW lpsiStartInfo, 
  LPPROCESS_INFORMATION lppiProcInfo
); 
The fdwCreate has different values.

Value Description 
CREATE_DEFAULT_ERROR_MODE Not supported. 
CREATE_NEW_CONSOLE The new process has a new console, instead of inheriting the parent's 
console. This flag cannot be used with the DETACHED_PROCESS flag. 
CREATE_NEW_PROCESS_GROUP Not supported. 
CREATE_SEPARATE_WOW_VDM Not supported. 
CREATE_SHARED_WOW_VDM Not supported. 
CREATE_SUSPENDED The primary thread of the new process is created in a suspended 
state, and does not run until the ResumeThread function is called. 
CREATE_UNICODE_ENVIRONMENT Not supported. 
DEBUG_PROCESS If this flag is set, the calling process is treated as a debugger, 
and the new process is a process being debugged. Child processes of the new process 
are also debugged. The system notifies the debugger of all debug events that occur 
in the process being debugged. 
If you create a process with this flag set, only the calling thread (the thread that 
called CreateProcess) can call the WaitForDebugEvent function.
 
DEBUG_ONLY_THIS_PROCESS If this flag is set, the calling process is treated as a 
debugger, and the new process is a process being debugged. No child processes of 
the new process are debugged. The system notifies the debugger of all debug events 
that occur in the process being debugged. 
DETACHED_PROCESS Not supported. 
 
If the program is executed with fdwCreate as DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS, 
then if the program comes up with an error it assumes that it has a debugger associated 
with it.
Aashish


>I've just encountered a most dump founding problem.
>We install our VFP6SP5 app runtime on a Win2k server.
>Upon clicking on the exe, the screen froze at the flash screen (a form with a timer).
>We tried to shut it down from the task manager and got this message from windows, "The program is being debugged, please resume the program".
>I'm really baffled as to what this means.
>Any clues would be most helpful.
>Regards
>Yau
--
--
Aashish Sharma
Tele Nos: +1-201-490-5405
Mobile: +91-9821053938
E-Mail:
aashish@aashishsharma.com
write2aashish@gmail.com

You better believe in yourself... if you don't, who else will ?
TODAY is a gift, that's why it's called PRESENT
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform