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#
  4. Attempted to read and write protected memory… ActiveX on Vista

Attempted to read and write protected memory… ActiveX on Vista

Scheduled Pinned Locked Moved C#
comperformancequestion
10 Posts 5 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.
  • A Offline
    A Offline
    anderslundsgard
    wrote on last edited by
    #1

    I’ve developed an application that uses a third party ActiveX control for a long time. Now when I run the application on Windows Vista I got the following exception: at System.Windows.Froms.UnsafeMethods.IOleObject.SetClientsite(IOleClientSite pClientsite) at System.Windows.Forms.AxHost.SlowActivate() at System.Windows.Forms.AxHostTransitionUpTo(Int32 state) at System.Windows.Forms.AxHostCreateHandle() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.AxHost.EndInit() at System.Windows.Forms.CortonaControl.InitializeComponent() ... Any idea what’s wrong with Vista?

    _____________________________ ...and justice for all APe

    L P 2 Replies Last reply
    0
    • A anderslundsgard

      I’ve developed an application that uses a third party ActiveX control for a long time. Now when I run the application on Windows Vista I got the following exception: at System.Windows.Froms.UnsafeMethods.IOleObject.SetClientsite(IOleClientSite pClientsite) at System.Windows.Forms.AxHost.SlowActivate() at System.Windows.Forms.AxHostTransitionUpTo(Int32 state) at System.Windows.Forms.AxHostCreateHandle() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.AxHost.EndInit() at System.Windows.Forms.CortonaControl.InitializeComponent() ... Any idea what’s wrong with Vista?

      _____________________________ ...and justice for all APe

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

      d00_ape wrote:

      Any idea what’s wrong with Vista?

      d00_ape wrote:

      uses a third party ActiveX control for a long time

      Not Vista, get an updated ActiveX control.

      xacc.ide - now with IronScheme support
      IronScheme - 1.0 alpha 2 out now

      1 Reply Last reply
      0
      • A anderslundsgard

        I’ve developed an application that uses a third party ActiveX control for a long time. Now when I run the application on Windows Vista I got the following exception: at System.Windows.Froms.UnsafeMethods.IOleObject.SetClientsite(IOleClientSite pClientsite) at System.Windows.Forms.AxHost.SlowActivate() at System.Windows.Forms.AxHostTransitionUpTo(Int32 state) at System.Windows.Forms.AxHostCreateHandle() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.AxHost.EndInit() at System.Windows.Forms.CortonaControl.InitializeComponent() ... Any idea what’s wrong with Vista?

        _____________________________ ...and justice for all APe

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Errm. Why do you think it's a problem with Vista? If a nail punctures your tyre do you think that's a faulty tyre? I would guess that the problem has more to do with the control misbehaving - and Vista's a lot stricter than earlier MS OSes.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        A 2 Replies Last reply
        0
        • P Pete OHanlon

          Errm. Why do you think it's a problem with Vista? If a nail punctures your tyre do you think that's a faulty tyre? I would guess that the problem has more to do with the control misbehaving - and Vista's a lot stricter than earlier MS OSes.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          A Offline
          A Offline
          anderslundsgard
          wrote on last edited by
          #4

          Ok nothing is 'wrong' with Vista but apparently my program that have worked on XP for years does not do that on Vista. Maybe it’s a ‘new feature’ that it does not can use old ActiveX. By the way, I have one Vista computer that my program works on but the other five cups that I have tried it on does not work. I don’t really know where I should start searching for help… I have the same question on http://www.codeguru.com/forum/showthread.php?p=1692586#post1692586

          _____________________________ ...and justice for all APe

          1 Reply Last reply
          0
          • P Pete OHanlon

            Errm. Why do you think it's a problem with Vista? If a nail punctures your tyre do you think that's a faulty tyre? I would guess that the problem has more to do with the control misbehaving - and Vista's a lot stricter than earlier MS OSes.

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            A Offline
            A Offline
            anderslundsgard
            wrote on last edited by
            #5

            Pete O'Hanlon wrote:

            Vista's a lot stricter than earlier MS OSes

            Can I in some way make Vista less stricter on my application?

            _____________________________ ...and justice for all APe

            P 1 Reply Last reply
            0
            • A anderslundsgard

              Pete O'Hanlon wrote:

              Vista's a lot stricter than earlier MS OSes

              Can I in some way make Vista less stricter on my application?

              _____________________________ ...and justice for all APe

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Have you tried to set Vista to run this program as if it were an earlier version of the OS?

              Deja View - the feeling that you've seen this post before.

              My blog | My articles

              A 1 Reply Last reply
              0
              • P Pete OHanlon

                Have you tried to set Vista to run this program as if it were an earlier version of the OS?

                Deja View - the feeling that you've seen this post before.

                My blog | My articles

                A Offline
                A Offline
                anderslundsgard
                wrote on last edited by
                #7

                Yes, I have tried Run this program as: Windows XP (Service Pack 2) and as administrator, but same result.

                _____________________________ ...and justice for all APe

                M 1 Reply Last reply
                0
                • A anderslundsgard

                  Yes, I have tried Run this program as: Windows XP (Service Pack 2) and as administrator, but same result.

                  _____________________________ ...and justice for all APe

                  M Offline
                  M Offline
                  mav northwind
                  wrote on last edited by
                  #8

                  Have you tried turning off UAC? Perhaps the ActiveX has a problem when virtualization is active...

                  Regards, mav -- Black holes are the places where God divided by 0...

                  A 1 Reply Last reply
                  0
                  • M mav northwind

                    Have you tried turning off UAC? Perhaps the ActiveX has a problem when virtualization is active...

                    Regards, mav -- Black holes are the places where God divided by 0...

                    A Offline
                    A Offline
                    anderslundsgard
                    wrote on last edited by
                    #9

                    Now I've tried that but no difference :-(

                    _____________________________ ...and justice for all APe

                    D 1 Reply Last reply
                    0
                    • A anderslundsgard

                      Now I've tried that but no difference :-(

                      _____________________________ ...and justice for all APe

                      D Offline
                      D Offline
                      Devils Priest
                      wrote on last edited by
                      #10

                      try to disable DEP

                      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