Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Code before Thread.Run() nor executed
Code before Thread.Run() nor executed [message #48661] Mon, 14 August 2017 13:23 Go to previous message
rafiwui is currently offline  rafiwui
Messages: 105
Registered: June 2017
Location: Stuttgart, Germany
Experienced Member
I have these methods:
void StartGeneration()
{
	// Disable buttons
	buttonBar.generate.Enable(false);
	buttonBar.next.Enable(false);
	buttonBar.previous.Enable(false);
	
	// Switch page
	displayLayouts[buttonBar.pageIndex].Show(false);
	generationProgress.Show(true);
	
	// Setup main progress bar
	generationProgress.progressMain.Set(0, 3);
	
	// Start thread
	generationThread.Run(THISBACK(Generate));
	//Thread::Start(THISBACK(Generate));
	
	return;
}


It is called from a button click event.
My problem is that nothing but the Run()-method of the thread is executed or at least there is now visual change in my application but there should be a layout change.
Also it is kinda not started as a thread because the application "freezes" while the thread is running.
Any ideas how I can fix this?

EDIT: Because I was asked for in this thread: Here is an example application to reproduce the problem.
  • Attachment: Bugtester.7z
    (Size: 1.00KB, Downloaded 70 times)


Greetings
Daniel

[Updated on: Tue, 15 August 2017 09:06]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to use TLS over SMTP
Next Topic: HttpRequest ignores server errors
Goto Forum:
  


Current Time: Mon Jun 01 17:27:48 CEST 2020

Total time taken to generate the page: 0.01151 seconds