Consultor Eletrônico



Kbase P92323: GPF when running program: _prchar.exe caused acess violation
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/01/2005
Status: Unverified

FACT(s) (Environment):

Windows NT 32 Intel/Windows 2000

SYMPTOM(s):

GPF when running program: _prchar.exe caused acess violation

No messages in the database log file

PROCESS EVENTS is not being used in the application code

The environment variables are correctly set

The user running the program has permissions to the datbase files

The command string includes -basekey "INI" with -ininame inifile.ini

Dr Watson Stack Back Trace on Windows for _progres shows:
_prchar!stlen
_prchar!drSetBaseKey
_prchar!drScanIni
_prchar!drpresetup
_prchar!drsetup
_prchar!drmain
_prchar!main
_prchar!mainCRTStartup
kernel32!GetProcessPriorityBoost
_prchar!<nosymbols>

CAUSE:

_prchar.exe is the default name used for the _progres.exe character client.
When we get the Dr Watson, the PID shown points to an _progres.exe which has produced this Access Violation.
The Dr Watson shows that _progres.exe is crashing because the -basekey parameter does not have an argument.

FIX:

The problem is either in the string of the path to the .ini file being too long for the buffer, or in the ini file itself.

If this program is being run from a script or icon, run the following tests from the command prompt first:

1.) Copy the .ini file to the local work directory and run the program again with a shortened sting on the command line (ie no path to ini file needed).
2.) Map the drive and use a drive letter instead of an UNC name
3.) Make sure that all of the parameters and arguments are correct and have spaces (no tabs) between them.
4.) If this program can run from the command (cmd) line but not run from a script or icon, then check the differences.