dcsimg
HELP !! FetchProfile is giving 'Out of Memory Error"
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kyeongwon_Kim
Posted On:   Tuesday, March 26, 2002 03:04 PM

Please Help.

I am getting 'Out of Memory' with Error when I use the following code for INBOX that contains about 45000 msgs. How can avoid the error message and still using the FetchProfile ??? or what is the realy purpose of the FetchProfile and can I just not use it ?

			
				
FetchProfile fp = new FetchProfile();
fp.add(FetchProfile.Item.ENVELOPE);
fp.add(FetchProfile.Item.FLAGS);
fp.add("X-Mailer");
folder.fetch(messages, fp);

Re: HELP !! FetchProfile is giving 'Out of Memory Error"

Posted By:   cocia_lin  
Posted On:   Thursday, April 11, 2002 02:29 AM

Why are you getting so many messages?

You can do it by less the messages number.

Message msg[] = folder.getMessages( iStart,iEnd );

not

Message msg[] = folder.getMessages();

About | Sitemap | Contact