| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Are miracles possible |
JD> Is it possible to determine at runtime whether a
JD> program is being run under an
JD> OS/2 debugger (Watcom's)? Not for copy protection :-)
JD> but rather to disable hardcoded breakpoints if there's
JD> nothing there to trap them.
I have not tried this yet, but I was recently told this:
Anyway, what I do to get round the problem (and you're going to HATE
this) is to add this to the end of each thread:
while (__WD_Present) {
DosSleep (10000);
}
'__WD_Present' is an 'int' and assigned TRUE when the debugger loads.
--- Maximus/2 2.02p1
* Origin: Sol 3/Toronto (905)858-8488 (1:259/414)SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 712/407 515 SEEN-BY: 712/628 704 713/888 800/1 7877/2809 @PATH: 259/414 400 99 250/99 3615/50 396/1 270/101 105/103 42 712/515 711/808 @PATH: 711/809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.