Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Marshaling And Unmarshaling of IXMLNODEList

Marshaling And Unmarshaling of IXMLNODEList

Scheduled Pinned Locked Moved IT & Infrastructure
comxmlhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NITINPATIL_UK
    wrote on last edited by
    #1

    I am developing multi-threaded system and I m using xml in it. What I m doing is passing MSXML2::IXMLDOMNodeList Node to each worker thread. While passing this node I m doing marshalling of the node and then sending the stream pointer to the thread. When I unmarshal the pointer it doesn’t unmarshal it properly It gives “error while reading the disk” Here is the code Marshalling LPSTREAM pStreamQueryItem; pVoid=pStreamQueryItem=0; xmlQueryItems->QueryInterface (IID_IXMLDOMNodeList,(void**)&pVoid); CoMarshalInterThreadInterfaceInStream(IID_IXMLDOMNodeList,(MSXML2::IXMLDOMNodeList*)pVoid,&pStreamQueryItem); pThreadInfo->m_xmlQueryItems = pStreamQueryItem; pThreadInfo->m_hThreadHandle = _beginthreadex(NULL,0,CWebCrawler::ExecuteComplexCrawler,(void*)pThreadInfo,CREATE_SUSPENDED,&(pThreadInfo->m_dwThreadID)); Unmarshalling LPVOID pvQueryItems=0; // pThreadInfo->m_xmlQueryItems it’s the stream object CoGetInterfaceAndReleaseStream(pThreadInfo->m_xmlQueryItems,IID_IXMLDOMNodeList,(LPVOID*)&pvQueryItems); xmlQueryItems.Attach((MSXML2::IXMLDOMNodeList*)pvQueryItems); can you please let me know why it is going wrong. Do you have any alternatetive idea for above matter Thanks in advance Nitin Patil http://www.igentica.com

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups