Search found 35 matches
- Sat Aug 27, 2005 2:32 am
- Forum: C++ Development
- Topic: wxEXEC_SYNC out of sync?
- Replies: 8
- Views: 1621
- Fri Aug 26, 2005 11:55 pm
- Forum: C++ Development
- Topic: wxEXEC_SYNC out of sync?
- Replies: 8
- Views: 1621
Thanks for verifying, asteelef! Yes, I'm writing a console app, and using wxwidgets to ensure portability. When you say Yes it works just fine for me. I'm assuming you didn't compile the identical code but used a variant form, i.e within a wxApp. Does the 'Main' version work for you? I'll take a loo...
- Fri Aug 26, 2005 10:56 pm
- Forum: C++ Development
- Topic: wxEXEC_SYNC out of sync?
- Replies: 8
- Views: 1621
Hi asteelef, Yes, both processes run to completion. As you can see by the output above: (LINE 1) 'countTo100k' begins to count (LINE 2) 'test' breaks in with its message (LINE 3) 'countTo100k' continues to completion I think that the -1 may just be an indication that it's running asynchronously, as ...
- Fri Aug 26, 2005 7:30 pm
- Forum: C++ Development
- Topic: wxEXEC_SYNC out of sync?
- Replies: 8
- Views: 1621
no response as yet, so better maybe to be more explicit: I can't get wxEXEC_SYNC to have any effect on synchronicity of wxExecute, which behaves asynchronously regardless. In the example above, 'test' should wait for 'countTo100k' to complete and then output its message, instead it continues without...
- Thu Aug 25, 2005 6:12 am
- Forum: C++ Development
- Topic: wxEXEC_SYNC out of sync?
- Replies: 8
- Views: 1621
wxEXEC_SYNC out of sync?
Hi All, the following encapsulates my problem: //test.cpp #include <cstdlib> #include <iostream> #include <wx/utils.h> int main(int argc, char *argv[]) { int waited = 123; waited = wxExecute ( "t:\\countTo100k", wxEXEC_SYNC ); cout << endl << "i've waited till "<< waited << "! are you done yet???" <...