flat assembler
Message board for the users of flat assembler.
Index
> Windows > CreateProcess : DEBUG_PROCESS+DEBUG_ONLY_THIS_PROCESS flags |
Author |
|
decard 07 Oct 2004, 15:11
AFAIR JohnFound had similar problems when he was implementing a debugger in Fresh. I'm not sure, but what I can realise when I look at Fresh sources, is that there is a new thread created ("debug server"), and it waits for debug events. When debugee is terminated, "debug server" is so. Then, when you wan't to load another module, just create new "debug server" thread.
I would recommend to take a look at Fresh source. |
|||
07 Oct 2004, 15:11 |
|
vbVeryBeginner 07 Oct 2004, 15:29
em, i just found out from a VB site :p
i should terminate it using such approach : Code: _300_debug_exit: invoke ContinueDebugEvent,[dbgEvent.dwProcessId],[dbgEvent.dwThreadId],DBG_TERMINATE_THREAD invoke ContinueDebugEvent,[dbgEvent.dwProcessId],[dbgEvent.dwThreadId],DBG_TERMINATE_PROCESS invoke CloseHandle,[proInfo.hProcess] invoke CloseHandle,[proInfo.hThread] jmp wmBYE sincerely, sulaiman chang ps: i will take a look at fresh source |
|||
07 Oct 2004, 15:29 |
|
vbVeryBeginner 07 Oct 2004, 15:38
but this produce some kinda weird scene, it would like the debugee will eat up the debugger window (when u move the debugee window around the debugger)
or mess with the debugger PAINT event? i don't know, i have succeed not to make the debuggee eat up those debugger window (a few minutes before)... em.. but i change my code already the mess debuggggggggeeeeeeerr! the tutorial 19 is debugee and the messy dialog is debugger |
|||
07 Oct 2004, 15:38 |
|
vbVeryBeginner 07 Oct 2004, 20:17
em..., i got another guesss.
i guess the debugee halted the debugger looping message, so until the debugger jmp into _300_debug_exit and jmp wmBYE, or the WM_PAINT would be ignore by the debugger :-: |
|||
07 Oct 2004, 20:17 |
|
vbVeryBeginner 08 Oct 2004, 17:22
em, this is solve as i implement it using a thread
the result could be view here http://board.flatassembler.net/topic.php?p=16587#16587 sincerely, sulaiman chang |
|||
08 Oct 2004, 17:22 |
|
i-don 16 Oct 2004, 12:03
Sulaiman,
I try to compile your tut_28.asm and found the following line failed on compile due to SS_PATHELLIPSIS not defined. Code: dialogitem 'STATIC','',100,27,7,206,11,SS_RIGHT + SS_SUNKEN + SS_PATHELLIPSIS + WS_VISIBLE Whar is the value of SS_PATHELLIPSIS? Btw, I just comment out SS_PATHELLIPSIS from the line and compile it without a problem. Nice tutorial conversion. Keep up the good works. i-don. |
|||
16 Oct 2004, 12:03 |
|
decard 16 Oct 2004, 12:04
SS_PATHELLIPSIS = 000008000h
|
|||
16 Oct 2004, 12:04 |
|
i-don 16 Oct 2004, 12:05
Thanks Decard, cheers.
|
|||
16 Oct 2004, 12:05 |
|
vbVeryBeginner 16 Oct 2004, 13:48
Quote:
thanks you your words make me feel happy :p |
|||
16 Oct 2004, 13:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.