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. General Programming
  3. COM
  4. error "The stub received bad data" while calling CreateInstance function

error "The stub received bad data" while calling CreateInstance function

Scheduled Pinned Locked Moved COM
helpc++comsysadminquestion
2 Posts 2 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.
  • S Offline
    S Offline
    Sumesh V V
    wrote on last edited by
    #1

    Hai friends, I am get an error "The stub received bad data" while calling CreateInstance function. But some times its working. I am using a COM Exe as server. I am using a regular dll to call the interface functions of COM Server. I am getting this error in dll.I had registered the COM Exe using regerver. OS installed : WindowsXP Service Pack 2 Platform : VC++6.0 Service Pack 6 Can anybody help me to solve? With regards, appoos

    Known is a drop, unknown is an ocean

    L 1 Reply Last reply
    0
    • S Sumesh V V

      Hai friends, I am get an error "The stub received bad data" while calling CreateInstance function. But some times its working. I am using a COM Exe as server. I am using a regular dll to call the interface functions of COM Server. I am getting this error in dll.I had registered the COM Exe using regerver. OS installed : WindowsXP Service Pack 2 Platform : VC++6.0 Service Pack 6 Can anybody help me to solve? With regards, appoos

      Known is a drop, unknown is an ocean

      L Offline
      L Offline
      lafleon
      wrote on last edited by
      #2

      Hello, 1. Have you initialized all your variables inside com server? Some memory garbage can cause the problem 2. It can be some timing problem with initialization. Try to play with some delays (just use Sleep(…)) inside constructor and FinalConstruct() method of your exe com server. Regards,

      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