Eskil,

Try loading the attached class in eclipse and launch it in debug mode.

Now put debug points at initializeConversion(), You will notice that:

For case 1:
You will notice that debug points at InitializeConversion() are never hit and 
the main thread keeps on running.

For case 2:
You will notice that child threads are launched but they too keep on running 
without giving any useful output.

What is the explanation behind all of this? 

With regards
Ashish Sharma


-----Original Message-----
From: Eskil Abrahamsen Blomfeldt [mailto:[email protected]] 
Sent: Monday, July 13, 2009 2:29 PM
To: Sharma, Ashish
Cc: [email protected]
Subject: Re: [Qt-jambi-interest] Html to pdf conversion

Sharma, Ashish wrote:
> I modified your suggested code according to my multithreading needs , but 
> it's not working, please have a look and suggest where am I going wrong.
>   

Hi, I didn't test your code, but from reading it, I see that you are 
running the initializeConversion() method at the end of your main() 
method. This means that you will start the thread as the application is 
about to quit and then immediately shut down the application afterwards 
(when the main() method exits.) That's probably not what you intended to do?

-- Eskil

Attachment: WebFrameInThread.java
Description: WebFrameInThread.java

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to