Posts: 1,057
Threads: 156
Joined: Aug 2003
i got some screwy programs that dont end if you end process them. so i was thinking is it possible to use poke/peek to look throught the memory and find what block that program is using and write over it so the program chrashes?
Posts: 294
Threads: 9
Joined: Oct 2002
you want to avoid the issue rather than fix it?
show us the program code or something if you cant fix it.
Posts: 1,057
Threads: 156
Joined: Aug 2003
uh well it application not basic that's giving me the trouble
Posts: 838
Threads: 17
Joined: Jan 2002
qbs PEEK and POKE can only access the first 640k of the mem, so that wouldn't help you.
I think there's a shut down app. feature in vb, but I'm not sure. Vb can't directly access memory btw.
url=http://www.copy-pasta.com]CopyPasta[/url] -
FilePasta
Posts: 6,419
Threads: 74
Joined: Mar 2002
Protected mode, guys. Only the system kernel can access a process memory space.
Posts: 1,057
Threads: 156
Joined: Aug 2003
and if i take out the kernel good bye OS. peek poek won't work for ems? at all?
Posts: 309
Threads: 15
Joined: Jul 2003
Have you tried Ctrl+Alt+Del, then selecting the program to terminate?
hrist Jesus came into the world to save sinners, of whom I am first.(I Timothy 1:15)
For God so loved the world, that He gave His only begotten Son,
that whoever believes in Him should not perish, but have eternal life.(John 3:16)
Posts: 1,057
Threads: 156
Joined: Aug 2003
that's what i do. it happens when i'm low on resorces and nothing seams to be working the right way. i thought that i could make a simple program that would over write a section of memory to cause a non responding program to crash. would that just make things worse? i'm on win98 by the by.
Posts: 6,419
Threads: 74
Joined: Mar 2002
Quote:and if i take out the kernel good bye OS. peek poek won't work for ems? at all?
EMS does not exist in Windows. Windows uses a 32 bits flat model. You just have 4 Gigs of
possible memory. You can't make a program that pokes outside its memory area, 'cause you are in protected mode as well. So what you want to do is impossible.
You could try and make a Win32 program that used some API calls to terminate processes, but those API calls are which are used by the task manager, so no use.
Anyhow, if you can't terminate a process using the task manager it means that:
1.- You are using Win9X or WinME.
and / or
2.- Your computer is really screwed.
Posts: 1,057
Threads: 156
Joined: Aug 2003
what about ASM? same senario?