Google Groups Home
Help | Sign in
About TMAS_OEStore::IOEFolderManager ::GetNextFolder function in Windows mail on Vista platform
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
David  
View profile
 More options Mar 28, 1:45 am
From: David <ljhjy...@hotmail.com>
Date: Thu, 27 Mar 2008 22:45:08 -0700 (PDT)
Local: Fri, Mar 28 2008 1:45 am
Subject: About TMAS_OEStore::IOEFolderManager::GetNextF older function in Windows mail on Vista platform
Dears:
    A problem occurs in my application about
IOEFolderManager::GetNextFolder function. My application create 2
threads to get the spam mail folder in Windows mail. The main thread
can get the right spam folder. But another main thread can not get it.
Their code is most same.
     The code in main thread:
      com_ptr<TMAS_OEStore::IOEFolder> spFolder= m_spFolderMgr-
>GetFirstFolder();

      bool bExist= false;
     long lRootId= 0;
     while(!spFolder.is_null()) {
        CString strName= spFolder->Name().t_str().c_str();
        if(strName == SPAMBUSTER_SPAMMAIL_FOLDERNAME) {
            m_spSpamMail= spFolder;
            bExist= true;
           break;
           } else if (strName == "Local Folders") {
               lRootId= spFolder->GetID();
           }
          spFolder = m_spFolderMgr->GetNextFolder();
      }
     if (!bExist) {
        CDebugMsg::Trace("@@@ Creating spam mail folder ...");
        m_spSpamMail= m_spFolderMgr->CreateFolder(lRootId,
SPAMBUSTER_SPAMMAIL_FOLDERNAME);
        CDebugMsg::Trace("@@@ spam mail folder was created.");
     }

     The code in another work thread:
     spMailScanInfSet->spFolderMgr=
TMAS_OEStore::OEFolderManager::create();
    CDebugMsg::Trace("Get the spam folder interface");
    com_ptr<TMAS_OEStore::IOEFolder> spFolder= (spMailScanInfSet-

>spFolderMgr)->GetFirstFolder();

    while(!spFolder.is_null()) {
        CString strName= spFolder->Name().t_str().c_str();
        if(strName == SPAMBUSTER_SPAMMAIL_FOLDERNAME) {
        spMailScanInfSet->spSpamMail= spFolder;
        break;
        }
        spFolder = (spMailScanInfSet->spFolderMgr)->GetNextFolder();

}

    This case just happen in windows mail on vista platform. For
outlook express, it works well. And it seems that
IOEFolder::GetFirstMessage in other thead also has the same
problem(Always get null pointer). could you help me?

BRS
David


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nektra OEAPI Support  
View profile
 More options Apr 1, 5:21 pm
From: Nektra OEAPI Support <oeapi-supp...@nektra.com>
Date: Tue, 01 Apr 2008 18:21:44 -0300
Local: Tues, Apr 1 2008 5:21 pm
Subject: Re: [Nektra OEAPI] About TMAS_OEStore::IOEFolderManager::GetNextF older function in Windows mail on Vista platform
Hi David:

Sorry about the delay but we are still currently making research about
this issue. It could help if you could send us a sample project ready to
compile and test this issue.
We'll contact again when we have any news about it.

Thank you for contacting Nektra's OEAPI Support.

Regards,

Federico

--
Nektra Advanced Computing
http://www.nektra.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nektra OEAPI Support  
View profile
 More options Apr 8, 4:09 pm
From: Nektra OEAPI Support <oeapi-supp...@nektra.com>
Date: Tue, 08 Apr 2008 17:09:13 -0300
Local: Tues, Apr 8 2008 4:09 pm
Subject: Re: [Nektra OEAPI] About TMAS_OEStore::IOEFolderManager::GetNextF older function in Windows mail on Vista platform
Hi David:

Please try creating OEFolderManager/OEFolder/OEMessage in each thread
(instead of, for example, creating an OEFolderManager in the main thread
and calling it from the other threads).

It seems the problem is that under Windows Mail you cannot share objects
across threads. If you need to exchange information across threads you
should use the folderId, messageId, etc.

Thank you for contacting Nektra's OEAPI Support.

Regards,

Federico

--
Nektra Advanced Computing
http://www.nektra.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David  
View profile
 More options Apr 9, 2:06 am
From: David <ljhjy...@hotmail.com>
Date: Tue, 8 Apr 2008 23:06:43 -0700 (PDT)
Local: Wed, Apr 9 2008 2:06 am
Subject: Re: About TMAS_OEStore::IOEFolderManager::GetNextF older function in Windows mail on Vista platform
Dear Federico:
    Sorry to reply it late. Thanks for your information. Actually, i
create the OEFolderManager/OEFolder/OEMessage  in each thread in my
code because the COM thread model is "Apartment". But it still can not
work.

BRs
JunLu

On Apr 9, 4:09 am, Nektra OEAPI Support <oeapi-supp...@nektra.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nektra OEAPI Support  
View profile
 More options Apr 9, 2:07 pm
From: Nektra OEAPI Support <oeapi-supp...@nektra.com>
Date: Wed, 09 Apr 2008 15:07:52 -0300
Local: Wed, Apr 9 2008 2:07 pm
Subject: Re: [Nektra OEAPI] Re: About TMAS_OEStore::IOEFolderManager::GetNextF older function in Windows mail on Vista platform
Hi again David:

If you are already doing that then it should work correctly, there might
be another problem, so we would need you to send us a sample project
(directly to this oeapi-support email address) ready to compile to make
research on this issue.
If you send it, please ask us to confirm that we received it because we
had problems receiving attachments with some customers.

Thank you for contacting Nektra's OEAPI Support.

Regards,

Federico

David wrote:
> Dear Federico:
>     Sorry to reply it late. Thanks for your information. Actually, i
> create the OEFolderManager/OEFolder/OEMessage  in each thread in my
> code because the COM thread model is "Apartment". But it still can not
> work.

> BRs
> JunLu

--
Nektra Advanced Computing
http://www.nektra.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jose leonides tenahua machorro  
View profile
 More options Apr 9, 3:16 pm
From: jose leonides tenahua machorro <leod...@yahoo.com.mx>
Date: Wed, 9 Apr 2008 14:16:16 -0500 (CDT)
Local: Wed, Apr 9 2008 3:16 pm
Subject: Re: [Nektra OEAPI] Re: About TMAS_OEStore::IOEFolderManager::GetNextF older function in Windows mail on Vista platform

ya no me molestes

Nektra OEAPI Support <oeapi-supp...@nektra.com> escribió:  
Hi again David:

If you are already doing that then it should work correctly, there might
be another problem, so we would need you to send us a sample project
(directly to this oeapi-support email address) ready to compile to make
research on this issue.
If you send it, please ask us to confirm that we received it because we
had problems receiving attachments with some customers.

Thank you for contacting Nektra's OEAPI Support.

Regards,

Federico

David wrote:
> Dear Federico:
> Sorry to reply it late. Thanks for your information. Actually, i
> create the OEFolderManager/OEFolder/OEMessage in each thread in my
> code because the COM thread model is "Apartment". But it still can not
> work.

> BRs
> JunLu

--
Nektra Advanced Computing
http://www.nektra.com

---------------------------------

¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
http://correo.yahoo.com.mx/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google