Category : C Source Code
Archive   : BCPPTECH.ZIP
Filename : TI648.ASC

Output of file : TI648.ASC contained in archive : BCPPTECH.ZIP

PRODUCT : Turbo Debugger NUMBER : 648
DATE : March 3, 1992 PAGE : 1/1

TITLE : Common Causes of General Protection Faults in TDW

The following are common causes for General Protection faults
while debugging a Windows application under Turbo Debugger for
Windows (TDW.EXE):

a) ram has called a Windows API function with incorrect arguments.
For example, passing WndProc a handle which is invalid.

b) The segment part of a pointer the program is using is invalid.
In protected mode it is an index into the selector table which
has the actual segment address. If that index references a spot
in the table which it shouldn't, or goes outside the bounds of
the table, it can cause a GP.

c) The user's WndProc function uses a handle between function calls
which has not been declared static, so the value has changed.

d) The CreateWindow API function calls your WndProc function with 3
messages. If WndProc is not debugged, it can cause problems
(like a GP).

  3 Responses to “Category : C Source Code
Archive   : BCPPTECH.ZIP
Filename : TI648.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: