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++ Library : Other (not classified elsewhere) » program hangs [label]
program hangs [label] [message #17628] Sat, 23 August 2008 13:16 Go to previous message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

hello all

why this code hangs

FtpUploader::FtpUploader()
{
	CtrlLayout(*this,"Upload" );
	
	btn_uplaod <<THISBACK (btn_upload_OnClick);
	prog1.SetText(IntStr(client.GetSavePos()));
	prog2.SetText( IntStr(client.GetSaveTotal()));
	client.WhenProgress = THISBACK(pro);
	
	
}
void FtpUploader::btn_upload_OnClick()
{
	status.SetText("Connecting");
	client.Connect("ftp.servage.net","tecno","password");
	
	status.SetText("Connected");
	//client.
	//x = client.WhenProgress ;
	client.Save("testo.txt",LoadFile("D:\\fileupload-class.php"));
}
bool FtpUploader::pro()
{

	//prog1 and prog2 are labels

	//pi.Set(client.GetSavePos(),client.GetSaveTotal());
	prog1.SetText(IntStr(client.GetSavePos()));
	prog2.SetText( IntStr(client.GetSaveTotal()));
	return false;
}


this program hangs then after some time returns to be normal after uploading file
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: friend window
Next Topic: selected text in other application
Goto Forum:
  


Current Time: Tue May 07 02:23:32 CEST 2024

Total time taken to generate the page: 0.02480 seconds