WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
Pages (2) [1] 2   ( Go to first unread post )

How To Prevent App From Freezing While Thinking, I want to prevent my app from freezing while doing a long process.

BlackGear
Quote Post


New Member
*

Group: Members
Posts: 9
Member No.: 20852
Joined: 5-April 09


Hi All laugh.gif

I want to prevent my app from freezing while doing a long process.

Ex : Proc is Counting From 1 to 9999999 ,my app will freeze until it finishes counting ,i want to prevent this freeze.

Thnx In advance

biggrin.gif
PMEmail Poster
Top
Jupiter
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 732
Member No.: 773
Joined: 10-November 04


use CreateThread API do all calculation in separate thread, so your UI will be updated when required. Also keep 'Stop' or 'Break' button active to let user break execution if he don't want to wait anymore wink.gif
PMEmail Poster
Top
shoorick
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 2303
Member No.: 160
Joined: 22-June 04


fasm templates have ready FTHREAD template - can be used as example.
PMEmail PosterUsers Website
Top
BlackGear
Quote Post


New Member
*

Group: Members
Posts: 9
Member No.: 20852
Joined: 5-April 09


@Jupiter i did what u said but still freezing .
@shoorick i will try that thnx.
PMEmail Poster
Top
BlackGear
Quote Post


New Member
*

Group: Members
Posts: 9
Member No.: 20852
Joined: 5-April 09


@Jupiter oooh i forgot something Now it is Working 99999 Thnx laugh.gif
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages (2) [1] 2  Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google