home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / 1118.ZIP / 1118 next >
Text File  |  1993-10-05  |  21KB  |  460 lines

  1.                      WordPerfect Corporation
  2.                 InfoShare Information Fax Service
  3.                          (800) 228-9960
  4.  
  5. Title:    General Protection Fault Guide
  6. Product:  WordPerfect 5.2 for Windows
  7. Number:   1118-10/93
  8.  
  9.  
  10.  
  11. This document is divided into two sections.  The first section
  12. will discuss the basics of General Protection Faults in the
  13. Windows program.  The second section outlines some
  14. troubleshooting questions for WordPerfect 5.2 for Windows.
  15.  
  16. These are the major topics covered in this document:
  17.  
  18. What Is a General Protection Fault Error?
  19.  
  20. What Is a System Integrity Violation?
  21.  
  22. How Does Windows 3.1 Handle a GPF Error? 
  23.  
  24. GPF Troubleshooting Options for WordPerfect for Windows
  25.  
  26. Other Troubleshooting Possibilities
  27.  
  28. What Is a General Protection Fault Error?
  29. A General Protection Fault error (GPF) occurs in Standard and 386
  30. Enhanced mode in Windows 3.1.  (It is referred to as an
  31. Unrecoverable Application Error [UAE] in Windows 3.0.)  A GPF
  32. error signifies that something unexpected has happened within the
  33. Windows environment.  Most often, it is an improper memory
  34. access, or in other words, something running within the Windows
  35. environment has made a call to a location in memory that it did
  36. not have access to, therefore potentially overwriting and
  37. damaging other program code in that area of memory.  More
  38. specifically, an application or Windows component might read or
  39. write to a memory location that it has not been pre-allocated, or
  40. memory that it does not "own".  All memory management within
  41. Windows is handled by the Windows environment itself, and when
  42. applications and Windows components directly access memory, the
  43. result is often a GPF error.
  44.  
  45. A General Protection Fault error may also occur when parameters
  46. are passed between applications and the Windows environment. 
  47. Invalid parameters affect the performance of Windows and its
  48. applications by forcing an invalid instruction.  This is usually
  49. the result of an application's internal program code incorrectly
  50. passing specific data that could not be correctly interpreted for
  51. Windows or another Windows application, thereby causing a GPF.  
  52.  
  53. What Is a System Integrity Violation?
  54. The message referring to the violation of system integrity
  55. indicates a general protection violation, or the equivalent of a
  56. GPF error that is caused by an MS-DOS based application.  Similar
  57. to the GPF, the system integrity violation indicates that an MS-
  58. DOS application is accessing memory that does not belong to that
  59. specific application.  Since Windows is managing memory in this
  60. situation, the MS-DOS application's memory access will often
  61. damage Windows program code or vital data.  The result is an
  62. application execution error generated from Windows reporting that
  63. the "application has violated system integrity due to an invalid
  64. general protection fault and will be terminated".  This message
  65. can also occur when an MS-DOS-based application has tried to
  66. directly access a system's hardware component.
  67.  
  68. How Does Windows 3.1 Handle a GPF Error? 
  69. Parameter Validation is a new feature of Windows 3.1 which allows
  70. Windows to check for invalid parameters which are passed between
  71. Windows and other applications running in the Windows
  72. environment.  Windows 3.1 is also designed to better manage and
  73. maintain which applications "own" specific memory locations and
  74. system resources.  As a result, Windows 3.1 is more capable of
  75. recovering a particular application's RAM memory and system
  76. resources.  If you do get a GPF error message while running
  77. Windows 3.1, the message will provide specific information about
  78. which applications and Windows components were running at the
  79. time of the error, and where the error occurred.  Depending on
  80. the severity of the GPF error, Windows 3.1 can continue to run
  81. the application that caused the fault, allowing you to save your
  82. work before exiting the application.  You can also use Dr.
  83. Watson, a program provided with Windows 3.1, to learn more about
  84. the cause of the GPF error.
  85.  
  86. GPF Troubleshooting Options for WordPerfect for Windows
  87. The questions and answers that follow are the same questions that
  88. WordPerfect technicians will ask you when you call for help with
  89. a General Protection Fault error.  By using these responses, you
  90. should be able to correct the problem without having to call a
  91. technician.  However, if you find that the GPF error still
  92. occurs, a technician may be able to further help you.
  93.  
  94. Is the General Protection Fault error caused by a "known"
  95. problem?  What is the exact error message?
  96. Several "known" problems give specific error messages.  Before
  97. contacting a WordPerfect Customer Support technician, note the
  98. exact error message you receive when a GPF occurs.  The exact
  99. message can be an important clue in resolving the conflict
  100. quickly.
  101.  
  102. Is a 256 Color VGA driver being used?  If so, is the /FL option
  103. being used to start WPWin? 
  104. To check the display type:
  105.  
  106. 1    Open the Main group.  
  107.  
  108. 2    Click on WINDOWS SETUP and check the Display field.
  109.  
  110. To start WordPerfect for Windows with the /FL option:
  111.  
  112. 1    Click once on the WPWin icon.  
  113.  
  114. 2    Click on FILE and then PROPERTIES.  
  115.  
  116. 3    Add a space and then /FL in the Command Line field.  For
  117.      example, the Command Line field could read
  118.      C:\WPWIN\WPWIN.EXE /FL.  NOTE:  The   /FL option was added
  119.      with the 04/30/92 interim release of WordPerfect 5.1 for
  120.      Windows.  It is also available in WPWin 5.2.  It is not
  121.      available on the 11/04/91 release of WPWin 5.1.
  122.  
  123. What were you doing when the General Protection Fault error
  124. occurred?  
  125. The answer to this question will often give clues about what
  126. troubleshooting steps to try, as it can help determine if the
  127. problem is related to the system configuration, the Windows
  128. environment, or if it is a problem with the application.  Knowing
  129. what feature was being used when the error occurred will often
  130. lead to a quick solution to the problem.
  131.  
  132. Can you duplicate the error at will, or is the error message
  133. random?
  134. Troubleshooting is easier if you can cause the error to occur at
  135. will.  The cause of the error can be more quickly isolated, and
  136. you will also be able to tell when the problem has been found.
  137.  
  138. If the errors are sporadic and completely random, troubleshooting
  139. often consists of just looking over your system configuration and
  140. making adjustments to the environment.  Check things such as
  141. commands in the CONFIG.SYS and AUTOEXEC.BAT files, TSRs, memory
  142. issues, network configuration files, etc.  Keep in mind that
  143. hardware devices (network cards, video cards, etc.) use locations
  144. in the upper memory area to operate.  If you are loading TSRs and
  145. device drivers into the upper memory areas, these programs may
  146. conflict with the hardware devices.  Loading one or more of the
  147. conflicting programs into conventional memory and/or rearranging
  148. the order in which the programs are loaded can help to reduce or
  149. remove the conflicts.  (NOTE:  If you are unsure about checking
  150. your system's configuration, contact WordPerfect's Customer
  151. Support.)
  152.  
  153. Do you ever experience the errors in other applications?
  154. If you experience General Protection Fault errors in other
  155. Windows applications, it is highly probable that the problem lies
  156. within the Windows environment.  Further troubleshooting of the
  157. Windows environment may be needed to find the exact cause. 
  158. Removing and reinstalling Windows to clean out the environment is
  159. necessary in cases where the exact cause cannot be determined.
  160.  
  161. Have the errors always occurred, or have they just started?
  162. If other programs have been recently added to the system, check
  163. to see what modifications these programs made to the system
  164. configuration files (AUTOEXEC.BAT, CONFIG.SYS, WIN.INI, and
  165. SYSTEM.INI).  Watch for changes to any of the default Windows
  166. .DRV files listed in the [boot] section of SYSTEM.INI and also
  167. changes made to the Load= or Run= lines in the [Windows] section
  168. of WIN.INI.
  169.  
  170. Do the problems only occur with a specific file?
  171. If a file has become damaged, General Protection Fault errors
  172. could occur when retrieving or working with the file.  Damaged
  173. files can be examined by a WordPerfect document specialist to
  174. determine the nature of the damage and, in some cases, point to a
  175. possible cause. 
  176.  
  177. In what mode is Windows running?
  178. If you are running Windows in 386 Enhanced mode, try running in
  179. Standard mode.  Often GPF errors are a result of a conflict in
  180. the upper memory area.  If running Windows in Standard mode
  181. eliminates the errors, you may need to use an EMMExclude
  182. statement in the SYSTEM.INI file to prevent Windows from
  183. accessing certain sections of upper memory.  Conflicts in the
  184. upper memory area are very common causes for General Protection
  185. Fault errors.  Often, these errors are extremely random in nature
  186. and cannot be readily duplicated.
  187.  
  188. If running Windows in Standard mode corrects the GPF problem,
  189. another option is to try starting Windows in Enhanced mode by
  190. typing WIN /d:x at the DOS prompt.  This is the same as using an
  191. EMMExclude=A000-EFFF in the SYSTEM.INI file.  If the errors do
  192. not occur, the problem is being caused by a conflict in the upper
  193. memory area.  Refer to the Getting Started with
  194. Microsoft Windows manual for more information on using
  195. EMMExclude.
  196.  
  197. Are system resources extraordinarily low?
  198. System resources are fixed areas of memory set aside by Windows
  199. to handle certain operations such as graphical displays,
  200. printing, and copying and pasting text.
  201.  
  202. To determine the amount of resources available:
  203.  
  204. 1    Go to the Program Manager.
  205.  
  206. 2    Choose HELP, then ABOUT PROGRAM MANAGER.  The system
  207.      resources will be listed as a percentage remaining.
  208.  
  209. If performance becomes noticeably slow or if you have accessed
  210. Windows for an extended period of time before getting a GPF
  211. error, check the system resources.  There is not a specific
  212. recommendation regarding how low system resources can be. 
  213. However, if you can get system resources into the 70-80 percent
  214. range and the errors still occur, then this is not the cause of
  215. the errors.  If resources are low, exiting and restarting Windows
  216. should return the resources.
  217.  
  218. Is free memory excessively low in Standard mode?
  219. The free memory reported in 386 Enhanced mode is deceptive
  220. because Windows reports both available RAM memory and also
  221. virtual memory (hard disk space allocated to a swap file) as free
  222. memory.
  223.  
  224. A good guideline is to try to get at least 2000K free memory. 
  225. However, many users can run WPWin successfully with as low as
  226. 1000K free.  If you have between 1000K and 1500K of free memory,
  227. try freeing more memory to see if the errors still occur.  You
  228. can do this by running fewer programs resident.
  229.  
  230. It is possible that you are accessing some of the system's
  231. extended memory as expanded memory.  It is also possible that
  232. SMARTDrive (SMARTDRV.EXE) is taking up too much of the available
  233. extended memory or that other programs or TSRs are using up the
  234. memory.  Please refer to the Microsoft Windows User's Guide for
  235. information regarding parameters for SMARTDRV.EXE.
  236.  
  237. Are there any abnormalities with your CONFIG.SYS file?  Do you
  238. have sufficient FILES and BUFFERS allocated?  Is HIMEM.SYS being
  239. loaded before any other device drivers?
  240. As a general rule, you should have between 40 and 60 files
  241. specified in the CONFIG.SYS file.  If a disk-caching program such
  242. as SMARTDrive (SMARTDRV.EXE) is being used, BUFFERS should be in
  243. the 10-15 range.  If you are not using a disk-cache, BUFFERS
  244. should be in the 20-30 range.  Also, HIMEM.SYS should be loading
  245. at the beginning of the CONFIG.SYS file, before any other device
  246. drivers.
  247.  
  248. Does CHKDSK (check disk) reveal any lost clusters, bad sectors,
  249. or cross-linked files?
  250. These problems could cause Windows and Windows applications to
  251. behave erratically.  If a CHKDSK reveals problems with the hard
  252. drive, refer to either the DOS manual or a third-party disk
  253. maintenance program for information on correcting these problems.
  254. After correcting the problems with the hard disk or the files on
  255. the hard disk, you should probably try reinstalling Windows and
  256. any applications that seem to be related to the problem. 
  257.  
  258. Is the hard disk running out of available disk space?
  259. There is no set rule as to how much disk space should be
  260. available to run Windows and Windows applications. 
  261. Recommendations range between 2MB and 10MB.  Because Windows and
  262. Windows applications must open several temporary files during a
  263. Windows session, you should have at least 2MB of free hard disk
  264. space, and more if possible.  Also, the free disk space should be
  265. as contiguous as possible.  If the files on your hard drive are
  266. highly fragmented and if the available disk space is not
  267. contiguous, Windows may behave erratically.  A disk optimization
  268. utility would be helpful in this situation.
  269.  
  270. Do the files in the WINDOWS and WINDOWS\SYSTEM directories
  271. reflect the most correct dates? 
  272. Occasionally, Windows Setup does not update all of the files in
  273. these directories when Windows 3.1 is installed in the same
  274. directory that contained Windows 3.0.  This can result in Windows
  275. 3.1 trying to use Windows 3.0 files.  If this is the case, you
  276. should either install Windows 3.1 to another directory, or delete
  277. all of the Windows files and reinstall.
  278.  
  279. Does the SET TEMP command in the AUTOEXEC.BAT file point to a
  280. valid directory?
  281. If the SET TEMP command points to a directory that does not
  282. exist, Windows can behave erratically, especially when printing
  283. within Windows.
  284.  
  285. Do you have any TSRs or device drivers loading which may cause a
  286. conflict?  Have you tried "booting vanilla?"
  287. "Booting vanilla" in Windows is tricky because there are so many
  288. places where programs and devices can load.  A clean (vanilla)
  289. boot-up in Windows would meet the following requirements:
  290.  
  291. The CONFIG.SYS file should only contain the HIMEM.SYS   driver,
  292. FILES and BUFFERS commands, and device drivers which are critical
  293. to your configuration (e.g., disk compression devices like
  294. Stacker and SuperStor).  If you are unsure about a device
  295. driver, leave it in.  It is much safer to boot from a floppy
  296. disk than it is to modify the CONFIG.SYS and AUTOEXEC.BAT on the
  297. C: drive.
  298.  
  299. An AUTOEXEC.BAT file is not really necessary, but it could
  300. contain a PROMPT command, a PATH command which includes the
  301. Windows directory, and a SET TEMP command which specifies the
  302. temporary directory for Windows.
  303.  
  304. The Startup group in Windows 3.1 should not contain any icons.
  305.  
  306. The Load= and Run= lines of the WIN.INI file should not have any
  307. programs listed.  Semicolons can be placed in front of these
  308. lines to disable them.
  309.  
  310. Any font programs which load when Windows starts should be turned
  311. off.
  312.  
  313. The following statements in the [boot] section of SYSTEM.INI file
  314. should be set to the Windows default settings as listed below:
  315.  
  316. [boot]
  317. SHELL=PROGMAN.EXE
  318. SYSTEM.DRV=SYSTEM.DRV
  319. KEYBOARD.DRV=KEYBOARD.DRV
  320. MOUSE.DRV=MOUSE.DRV
  321. DISPLAY.DRV=VGA.DRV (or another Windows .DRV file)
  322.  
  323. Third-party programs may make modifications to the above lines
  324. which potentially could cause the errors to occur.
  325.  
  326. Have you tried WPWin's startup options (/FL and /X)?
  327. The /FL option corrects many GPF problems which are related to
  328. display on high-resolution monitors.  This option sometimes
  329. corrects GPF errors which are related to Print Preview.
  330.  
  331. The /X option bypasses the .SET file.  The .SET file contains
  332. user-defined options such as location of files and custom screen
  333. defaults.  If using /X corrects the problem, the .SET file can be
  334. renamed.  However, it will be recreated with WordPerfect's
  335. default settings the next time WPWin is started.  If using the /X
  336. startup option corrects the GPF errors, contact WordPerfect
  337. Customer Support so that this information can be given to the
  338. Problem Resolution group.
  339.  
  340. Are the most current versions of HIMEM and SMARTDrive being used?
  341. Use the versions of HIMEM.SYS and SMARTDrive that came with
  342. Windows 3.1 if you are using a DOS version prior to 6.0.  Users
  343. with MS-DOS 6.0 should use the versions that came with the
  344. operating system.  It is possible that other versions of these
  345. files could be found in other directories or in the root
  346. directory.
  347.  
  348. Is the most current release date of WPWin being used?
  349. Some GPF problems in WPWin 5.1 were corrected with the 04/30/92
  350. interim release.  Also, some problems in WPWin 5.2 were corrected
  351. with the 04/23/93 interim release.  Contact a WordPerfect
  352. Customer Support technician to see if an interim is applicable in
  353. your situation.
  354.  
  355. If the errors occur when printing, are you selecting a Windows
  356. driver with reported problems?  
  357. Contact a WordPerfect Customer Support technician to determine if
  358. your particular printer driver is known to cause problems.
  359.  
  360. If the error occurs when printing from WPWin, have you tried
  361. renaming the .WRS file (located in the WPC directory)?
  362. When the .WRS file is renamed, (e.g., HPLASIII.WRS renamed to
  363. HPLASIII.OLD) WPWin will create a new .WRS file.  Creating a new
  364. .WRS file has solved several problems related to GPF errors when
  365. printing.  
  366.  
  367. Note:  Custom paper sizes are stored in the .WRS files.  You will
  368. need to recreate the paper sizes after renaming the .WRS file. 
  369. If recreating the .WRS file does not resolve the GPF errors, the
  370. original .WRS file can be restored to avoid having to recreate
  371. the paper sizes.  This procedure involves deleting WPWin's newly
  372. created .WRS file and then renaming the original file (e.g.,
  373. HPLASIII.OLD renamed to HPLASIII.WRS) back to the .WRS filename. 
  374.  
  375. Is Windows using 32-bit access (FastDisk)?
  376. To check for 32-bit access (only available in 386 Enhanced mode):
  377.  
  378. 1    Double-click on Control-Panel, then double-click on the 386
  379.      Enhanced icon.
  380.  
  381. 2    Click on VIRTUAL MEMORY, then click on CHANGE.  
  382.  
  383. 3    Make sure that the 32-bit access box is not checked.  Some
  384.      controller cards are not compatible with FastDisk.
  385.  
  386. Do the errors occur if Windows is started with the command WIN
  387. /D:xvsf?
  388. The /X option excludes the upper memory area and is equivalent to
  389. placing the command EMMExclude=A000-EFFF in the SYSTEM.INI file.
  390.  
  391. The /V option gives the hard drive, rather than Windows 386
  392. Enhanced mode, control over how hard disk interrupts are
  393. processed.
  394.  
  395. The /S option makes the System ROM Break Point = False.
  396.  
  397. The /F option turns 32-bit access (FastDisk) off.
  398.  
  399. Have you tried reinstalling both Windows and WordPerfect for
  400. Windows?
  401. Reinstalling Windows and WPWin has been known to correct GPF
  402. problems on several occasions and can be very effective in
  403. clearing up random or unknown GPF errors.  However, this step is
  404. recommended only after all other troubleshooting options have
  405. been exhausted.
  406.  
  407. Other Troubleshooting Possibilities:
  408.  
  409. Have you recently optimized the hard drive?
  410. Optimizing the hard drive on a regular basis helps prevent files
  411. from becoming fragmented and also makes the available disk space
  412. contiguous.  A highly fragmented hard drive could cause Windows
  413. applications to behave unpredictably, especially if disk space is
  414. getting low.  There are several third- party utilities that can
  415. be used to optimize your hard drive.  Contact your dealer for
  416. further information regarding these utility programs.
  417.  
  418. Is the correct version of DOS being used on the machine? 
  419. A machine should have the proper MS-DOS version for its hardware
  420. type.  Original equipment manufacturer (OEM) versions of MS-DOS,
  421. such as COMPAQ MS-DOS or IBM PC-DOS, should be used only on their
  422. respective OEM platforms.
  423.  
  424. Did you encounter any problems during the installation of
  425. Windows?
  426. If the machine locked up during Windows installation, it is
  427. possible that Windows Setup identified your hardware
  428. configuration incorrectly.  If you manually identified the
  429. hardware configuration and did not identify it correctly, Windows
  430. will behave erratically.
  431.  
  432. Does a machine switch need to be used with HIMEM.SYS?
  433. Refer to the Windows User's Guide for information on HIMEM's
  434. switches.
  435.  
  436. Is the Windows swap file damaged?
  437. If the physical location of the swap file contains bad sectors,
  438. an error can occur.  Windows will assume the data area of the
  439. swap file is valid.  However, if code is swapped to a damaged
  440. area, the data will also be damaged.  If you suspect that this
  441. may be the problem, change the swap file to a temporary swap file
  442. and restart the machine.  Refer to your Windows User's Guide  for
  443. information on changing virtual memory settings for the swap
  444. file.
  445.  
  446.  
  447.  
  448.  
  449.  
  450. For more information, please call Information Services at  (800)
  451. 451-5151 (US) or (800) 321-2318 (Canada).
  452.  
  453. WordPerfect Corporation 1993
  454.  
  455. WordPerfect Corporation  
  456. 1555 N. Technology Way  
  457. Orem, UT 84057-2399
  458.  
  459. WordPerfect is a registered trademark of WordPerfect Corporation
  460. within the United States and other countries.