flat assembler
Message board for the users of flat assembler.

Index > Windows > Pause/Continue option in typical Dialog

Author
Thread Post new topic Reply to topic
DMD



Joined: 05 Jun 2006
Posts: 24
DMD 09 Jun 2006, 09:30
Hi to All!
I have the next question:
How I can make Pause/Continue option in typical Dialog.
I mean if push Start button - some process will be started and I have a possibility to choise Pause mode,
if I push Pause button - process will be stoped and if pushed Continue, process will be continue from current state.
Now I can`t solve this problem...

Best regards.
Post 09 Jun 2006, 09:30
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 09 Jun 2006, 10:05
The question isn't very clear to me, but it seems that the answer you are looking for doesn't exist.
I've tested many applications with OllyDBG and rare cases are when a process can survive a debugging session and continue later.

If you would please describe more accurately the problem you have I think someone on the boards can help, but I think that suspending a process for a while doesn't seem very possible.

Just a quick link here: http://www.sysinternals.com/ProcessesAndThreadsUtilities.html
Maybe it helps.
Post 09 Jun 2006, 10:05
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
DMD



Joined: 05 Jun 2006
Posts: 24
DMD 09 Jun 2006, 10:25
Madis731 wrote:
The question isn't very clear to me, but it seems that the answer you are looking for doesn't exist.
I've tested many applications with OllyDBG and rare cases are when a process can survive a debugging session and continue later.

If you would please describe more accurately the problem you have I think someone on the boards can help, but I think that suspending a process for a while doesn't seem very possible.

Just a quick link here: http://www.sysinternals.com/ProcessesAndThreadsUtilities.html
Maybe it helps.

I spoke about algorithm Pause\Continue inside Dialog procedure or main programm.
Of course, using Olly as "button Pause" is possibile but not best choice.
Best way is somekind program`s algorithm. Smile
Post 09 Jun 2006, 10:25
View user's profile Send private message Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 09 Jun 2006, 10:45
try this toy. shoolib can be found in projects&ideas.
--
oi! Smile
--
new ver below

_________________
UNICODE forever!


Last edited by shoorick on 10 Jun 2006, 06:31; edited 2 times in total
Post 09 Jun 2006, 10:45
View user's profile Send private message Visit poster's website Reply with quote
DMD



Joined: 05 Jun 2006
Posts: 24
DMD 09 Jun 2006, 10:49
2Shoorick

Thanks Alot!

Will test it!
Post 09 Jun 2006, 10:49
View user's profile Send private message Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend 09 Jun 2006, 11:58
DMD: Use threads. Windows as a multithreaded OS allows you to use several at once. It means that at one time you can execute more than one code.
For your purpose, create normal dialog as always. Every calculations (or whatever you want to pause/continue) place in other procedure (named eg. ThreadProc). Then you create a new thread with it's starting address as ThreadProc. You save the returned thread handle, and having it - you can easily suspend/resoume that calucaltions thread. You'll have to use such APIs: CreateThread, SuspendThread, ResumeThread - all info about them is in win32 reference.
Post 09 Jun 2006, 11:58
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 10 Jun 2006, 06:31
this is new version: without shoolib Smile and saves data also on system shutdown


Description:
Download
Filename: FTHREAD.1.1.zip
Filesize: 3.27 KB
Downloaded: 223 Time(s)


_________________
UNICODE forever!
Post 10 Jun 2006, 06:31
View user's profile Send private message Visit poster's website Reply with quote
DMD



Joined: 05 Jun 2006
Posts: 24
DMD 13 Jun 2006, 11:22
2shoorick

Simply there are no words...

Best regards!
Post 13 Jun 2006, 11:22
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.