473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Convert Async design to Sync

344 100+
Hello,

Invoking DrawToBitmap of WebBrowser, the WebBrowser fires an event when it is done.

Now, I'm inside a sequential executing of a pre-implemented system; big do-while which contains do#1, do#2, ...., do#n. The big do-while executes on a separated Thread (not the main one of the application).
In do#4 I invoke DrawToBitmap then I've to get the bitmap (response of WebBrowser) to continue.

I tried to make while depending on a boolean (isCompleted) - also sleep the Thread inside the while - but all the CPU time is taken for the while and the event never fire!

Too abstract:
Module A sequential (Sync), module B Asyn. B is a subset of A!

Any one has an idea?
Please, think with me!

Thanks in advanced!
Oct 1 '10 #1
0 1142

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Passynkov, Vadim | last post by:
I am using Asynchronous Query Processing interface from libpq library. And I got some strange results on Solaris My test select query is 'SELECT * from pg_user;' and I use select system...
1
by: Kevin C | last post by:
When designing an asynchronous service-based system, generally speaking whose responsibility is it to determine when a duplicate request is sent - the system hosting the service or the feeding...
14
by: Stuart | last post by:
I need to write a socket server that accepts around 100 connections, but this could grow to a 1000, or more in time. The data throughput will be minimal, mostly in short random bursts, but it's...
10
by: Shawn Meyer | last post by:
Hello - I am trying to write a class that has an async BeginX and EndX, plus the regular X syncronous method. Delegates seemed like the way to go, however, I still am having problems getting...
4
by: iwdu15 | last post by:
hi, this should b a simple question...does the socket class use async? like in vb u have to tell it to use async, but in c++ i cant find either, its just "listen" or "connect"...is it async or...
1
by: OpticTygre | last post by:
How can I make the following code synchronous? TIA. Public Sub ValidateXMLAgainstSchema(ByVal XSchema As XmlSchema, ByVal XData As String) Dim XSchemaset As XmlSchemaSet = New XmlSchemaSet ...
6
by: Shak | last post by:
Hi all, Three questions really: 1) The async call to the networkstream's endread() (or even endxxx() in general) blocks. Async calls are made on the threadpool - aren't we advised not to...
3
by: Sundar | last post by:
how d you classify a serial com port application as a asynchronous or a synchronous operation...Meaning if i hve a handshakeing protocol t b implemented then is it async or sync?
15
by: JJ | last post by:
I asked this question before, but I suspect that I worded it badly. Its time to update my software, so I am wondering what others use to design the 'look' of their web pages (i.e. prior to coding...
10
by: Frankie | last post by:
It appears that System.Random would provide an acceptable means through which to generate a unique value used to identify multiple/concurrent asynchronous tasks. The usage of the value under...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.