Click here to Skip to main content
15,914,500 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionMissingManifestResourceException Pin
Ralph A. Moritz14-Mar-07 23:27
Ralph A. Moritz14-Mar-07 23:27 
AnswerRe: MissingManifestResourceException Pin
Ralph A. Moritz15-Mar-07 2:00
Ralph A. Moritz15-Mar-07 2:00 
QuestionHow Can I Get Text From Other Application ? Pin
ngooduwcs14-Mar-07 17:05
ngooduwcs14-Mar-07 17:05 
AnswerRe: How Can I Get Text From Other Application ? Pin
Christian Graus14-Mar-07 18:11
protectorChristian Graus14-Mar-07 18:11 
QuestionAMX Pin
klutez12314-Mar-07 16:30
klutez12314-Mar-07 16:30 
AnswerRe: AMX Pin
Christian Graus14-Mar-07 18:11
protectorChristian Graus14-Mar-07 18:11 
GeneralRe: AMX Pin
klutez12315-Mar-07 2:45
klutez12315-Mar-07 2:45 
QuestionUI Freeze during multithreading. Driving me crazy!!! :) Pin
fharkness14-Mar-07 11:12
fharkness14-Mar-07 11:12 
Hi all,
I'm having trouble with my multithreading. I am doing video capturing so have and infinite loop in which frames are captured, unfortunately while the thread is running the class (containing the loop) the UI freezes.
I'm wondering if anyone knows how i am able to create a simple worker thread which executes the class and keeps the UI responding?

Here is the code that executes the class. I have attempted to create what i thought was a worker thread, with no avail.


	<br />
private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {<br />
				<br />
    ThreadStart^ t1 = gcnew ThreadStart(this, &FYProjV4::Form1::detectThreadStart);<br />
    Thread^ recogThread = gcnew Thread(t1);<br />
<br />
    recogThread->IsBackground = true;<br />
    recogThread->Start();<br />
			 <br />
			 <br />
}<br />
		 <br />
private: System::Void detectThreadStart() {<br />
<br />
    if(reportBox1->InvokeRequired == false)<br />
    {<br />
<br />
        FaceRecognition recogTools;<br />
        recogTools.StartRecognition(reportBox1, faceBox1);<br />
    }<br />
    else<br />
    {<br />
				 <br />
        this->BeginInvoke(gcnew DetectThreadStartDelegate(this, &FYProjV4::Form1::detectThreadStart));<br />
        this->EndInvoke(result);<br />
				 <br />
    }<br />
<br />
}



I am in a real rush to get this sorted so any suggestions would be greatly appreciated.
Also, Removing the loop is not an option and it must be in managed c++.
Thanks for your time
QuestionRe: UI Freeze during multithreading. Driving me crazy!!! :) Pin
fharkness15-Mar-07 2:27
fharkness15-Mar-07 2:27 
AnswerRe: UI Freeze during multithreading. Driving me crazy!!! :) Pin
Daniel Grunwald16-Mar-07 2:03
Daniel Grunwald16-Mar-07 2:03 
QuestionGetting #include to work Pin
Stick^14-Mar-07 10:56
Stick^14-Mar-07 10:56 
AnswerRe: Getting #include to work Pin
Christian Graus14-Mar-07 12:16
protectorChristian Graus14-Mar-07 12:16 
GeneralRe: Getting #include to work Pin
Stick^14-Mar-07 13:11
Stick^14-Mar-07 13:11 
QuestionVisual Studio 2005 with Mobile 5.0 sdk Pin
shoguntx14-Mar-07 8:24
shoguntx14-Mar-07 8:24 
AnswerRe: Get users names list Pin
Christian Graus14-Mar-07 9:27
protectorChristian Graus14-Mar-07 9:27 
QuestionBringing application's main form to foreground. Pin
Bartosz Bien13-Mar-07 10:59
Bartosz Bien13-Mar-07 10:59 
AnswerRe: Bringing application's main form to foreground. Pin
User 58385213-Mar-07 16:45
User 58385213-Mar-07 16:45 
AnswerRe: Bringing application's main form to foreground. Pin
Christian Graus14-Mar-07 9:28
protectorChristian Graus14-Mar-07 9:28 
GeneralRe: Bringing application's main form to foreground. Pin
Bartosz Bien15-Mar-07 1:56
Bartosz Bien15-Mar-07 1:56 
QuestionQuery Regarding Duplication Prevention Pin
Subramaniam s.V.13-Mar-07 3:52
Subramaniam s.V.13-Mar-07 3:52 
AnswerRe: Query Regarding Duplication Prevention Pin
led mike13-Mar-07 5:20
led mike13-Mar-07 5:20 
GeneralRe: Query Regarding Duplication Prevention Pin
Subramaniam s.V.13-Mar-07 5:27
Subramaniam s.V.13-Mar-07 5:27 
GeneralRe: Query Regarding Duplication Prevention Pin
led mike13-Mar-07 5:47
led mike13-Mar-07 5:47 
GeneralRe: Query Regarding Duplication Prevention Pin
Subramaniam s.V.13-Mar-07 5:53
Subramaniam s.V.13-Mar-07 5:53 
GeneralRe: Query Regarding Duplication Prevention Pin
Subramaniam s.V.13-Mar-07 5:30
Subramaniam s.V.13-Mar-07 5:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.