Home » U++ Library support » U++ Library : Other (not classified elsewhere) » program hangs [label]
| program hangs [label] [message #17628] |
Sat, 23 August 2008 13:16  |
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
|
|
|
|
Goto Forum:
Current Time: Fri Nov 06 12:27:53 GMT+1 2026
Total time taken to generate the page: 0.00582 seconds
|