Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-12-2006, 09:46 AM
Junior Member
 
Join Date: Jul 2006
Posts: 9
Default pop.onRecv causes crash...

I tried to receive pop3 e-mails, and when I add "pop.onRecv", an application stops working (and there is also a debug error).
I tried like this using sample:

pop=new RecvMail();
pop.server="popserver.com";
pop.username="username";
pop.password="password";
var old_p = 0, p, size;
pop.onRecv = function on_recv(type, msg)
{
if (type == 0) trace(msg);
else if (type == 3)
{
p = parseInt(msg) * 100 / size;
if (p - old_p > 10)
{
trace("recieved: " + p + "%");
old_p = p;
}
}

if (!processMsg()) return false;
return true;
}
trace(pop.connect());
size = parseInt(pop.list(1));
trace(size);
m = pop.retr(1);
pop.quit();
pop.close();
m.save("c:\\emails\\aaa.eml");

Any suggestion or solution?
Thanks
Reply With Quote
  #2 (permalink)  
Old 07-17-2006, 03:48 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:pop.onRecv causes crash...

We will test it and get back to you.
Reply With Quote
  #3 (permalink)  
Old 07-19-2006, 04:03 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:pop.onRecv causes crash...

A small bug is found and fixed. Please wait for swfkit v3 in which the bug is fixed. We will release it in 1 to 2 days.
Reply With Quote
  #4 (permalink)  
Old 07-19-2006, 10:16 PM
Junior Member
 
Join Date: Jul 2006
Posts: 9
Default Re:pop.onRecv causes crash...

Thanks
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:47 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.