Similar Threads:
1.wxThread->Delete hangs, is there a work around?
wxWidgets 2.4.2
MSW 2000
MSVC 6
Checking the archives and all, I saw there is a problem with the
thread delete command.. I was wondering if there is a work around for
it?
For me, the thread delete is hanging. If I don't call the delete and
let the detached thread finish normally, all is fine, but when I try
to prematurely stop it, the delete command hangs..
Is there a work around for my wx version? I tried posting an event
before deleting the existing thread, but the delete invariably hangs.
I am calling delete from the dialog that launches the thread, it is
launched in response to a button press. Another button press also
allows the user to terminate the thread early..
Any help is appreciated..
Randall Fox
---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM
2.Re[2]: wxThread->Delete hangs, is there a work around?
On Tue, 29 Jun 2004 13:02:01 -0700 Randall Fox < XXXX@XXXXX.COM > wrote:
RF> Tried 2.5.2, and no luck.. It doesn't hang anymore, but it won't
RF> delete either.. The thread keeps going as evident from the wxGauge,
RF> and the dialog pops a"unhandled exception" box...
This means there is a problem somewhere and if you set your debugger to
break on all exceptions (instead of only on unhandled ones) you should be
able to find out where and what it is.
Regards,
VZ
---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM
3.wxThread::Wait and wxThread::Delete on Windows
Hello,
i'm trying to "gently" terminate a worker thread near the end of the
application.
unfortunately, Wait/Delete systematically revert to Kill when the end of app
happened (because the quit message is in the pump) :(
it prevents proper end of any thread when ending the app...
Regards
Armel
4.wxThread::Delete hanging
On Wed, 04 Jun 2003 19:07:43 GMT Ben Redman < XXXX@XXXXX.COM > wrote:
BR> I'm using wxWindows 2.4.0, and I'm having a problem when shutting down my
BR> application. When I attempt to shut it down, the application hangs until it
BR> receives another event e.g. I click in the applications window. This doesn't
BR> always happen, and I believe, depends on timing.
BR>
BR> I've tracked it down to within Thread.cpp, wxThread::Delete(ExitCode *pRc)
BR>
BR> This calls:
BR> result = ::MsgWaitForMultipleObjects
BR> (
BR> 1, // number of objects to wait for
BR> &hThread, // the objects
BR> FALSE, // don't wait for all objects
BR> INFINITE, // no timeout
BR> QS_ALLINPUT | // return as soon as there are any
BR> events
BR> QS_ALLPOSTMESSAGE
BR> );
BR>
BR> to wait until there is an object. The problem comes later on, when there is
BR> a result of WAIT_OBJECT_0 + 1
BR>
BR> // new message arrived, process it
BR> if ( !wxTheApp->DoMessage() )
BR> {
BR> // WM_QUIT received: kill the thread
BR> Kill();
BR>
BR> return wxTHREAD_KILLED;
BR> }
BR> break;
BR>
BR> within DoMessage, there is a blocking call:
BR>
BR> BOOL rc = ::GetMessage(&s_currentMsg, (HWND) NULL, 0, 0);
BR>
BR> is made. In the instances when the application is hanging, this is blocking.
BR> With a bit of experimentation, I've added in a check using ::PeekMessage
BR> just before the call to ::Getmessage, to make sure there is something there
BR> that ::GetMessage can get.
I've added a very similar but slightly different workaround, could you
please try the current cvs HEAD and check if it fixes your problem?
Thanks,
VZ
---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM
5.>>>>>>>>>>>>Index.dat
On my computer there is a file called index.dat which is
uses by IE so when i try to delete it it says that you
can't. I know that i can delete it if i go into DOS but
if i do delete it what would happen?
Yhe reason i want to delete is that i read somewhere that
i has all your browsing history in it. Could you also
tell me what the file is used for. if that is not what it
is used for.
6. work around hung welcome screen
7. >>>>>>>>>>>>>>>>>>>
8. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>