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. C / C++ / MFC
  4. WM_COPYDATA

WM_COPYDATA

Scheduled Pinned Locked Moved C / C++ / MFC
performancehelpquestion
5 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.
  • D Offline
    D Offline
    Dave_
    wrote on last edited by
    #1

    I'm still having trouble with this. I have a dll that uses the WM_COPYDATA to send a struct to a mainframe window. The struct has some longs (4 I think) and a char[256]. This has been working and does work on about 90% of PC's. A few customers and some in-house people do not see the text that is being passed. After checking into it, I have found that the pointer to the lpCopyDataStruct is not correct on the machines that have the problem. I can see where my struct begins by doing a memory dump starting at the erroneous pointer and it is there but much further down the line (maybe 40-50 bytes?)than where the pointer says it should be. Can anyonne think of a reason why this works most of the time but fails on certain PC's? I have reports that some NT, 2000, and XP machines have this trouble but not everyone with those OS's have the problem. Uuugh!! Thanks, Dave

    L 1 Reply Last reply
    0
    • D Dave_

      I'm still having trouble with this. I have a dll that uses the WM_COPYDATA to send a struct to a mainframe window. The struct has some longs (4 I think) and a char[256]. This has been working and does work on about 90% of PC's. A few customers and some in-house people do not see the text that is being passed. After checking into it, I have found that the pointer to the lpCopyDataStruct is not correct on the machines that have the problem. I can see where my struct begins by doing a memory dump starting at the erroneous pointer and it is there but much further down the line (maybe 40-50 bytes?)than where the pointer says it should be. Can anyonne think of a reason why this works most of the time but fails on certain PC's? I have reports that some NT, 2000, and XP machines have this trouble but not everyone with those OS's have the problem. Uuugh!! Thanks, Dave

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      is it possible they have those fancy clipboards running where u can have many virtual clipboards and select between them? u prolly thought of that already right?


      "there is no spoon"
      biz stuff   about me

      D 1 Reply Last reply
      0
      • L l a u r e n

        is it possible they have those fancy clipboards running where u can have many virtual clipboards and select between them? u prolly thought of that already right?


        "there is no spoon"
        biz stuff   about me

        D Offline
        D Offline
        Dave_
        wrote on last edited by
        #3

        I'm not sure what that is. I'll see if I can find more info on it. Does that affect how the WM_COPYDATA message works?

        L 1 Reply Last reply
        0
        • D Dave_

          I'm not sure what that is. I'll see if I can find more info on it. Does that affect how the WM_COPYDATA message works?

          L Offline
          L Offline
          l a u r e n
          wrote on last edited by
          #4

          yes it can check to see if they have any non-standard or enhanced clipboards utilities or anything like it


          "there is no spoon"
          biz stuff   about me

          D 1 Reply Last reply
          0
          • L l a u r e n

            yes it can check to see if they have any non-standard or enhanced clipboards utilities or anything like it


            "there is no spoon"
            biz stuff   about me

            D Offline
            D Offline
            Dave_
            wrote on last edited by
            #5

            Here's what fixed the problem: We noticed that two copies of Rundll32.exe were running and when they were killed, things worked. We looked into what was causing the Rundll32 to be executed and found that the tray application for the NVidia software was responsible. Once that was removed from the startup, things worked fine on both PC's where the trouble was reported. Those people can no longer use the tray app for the video card but they didn't need it. So, do you think it's something NVidia is doing, RunDll32, or just Windows that is at the root of the problem? Why would my pointer being passed in WM_COPYDATA get corrupt due to this app running? Thanks for your help, Dave.

            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