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. doubt on Activex control

doubt on Activex control

Scheduled Pinned Locked Moved COM
helpcomtutorialquestionannouncement
4 Posts 3 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
    sunita ramesh
    wrote on last edited by
    #1

    Hello all, I have an activex control,which is a video player plays .cam files.I run this activex control using IE by giving its class id in tag. So whenever the IE page is opened,the activex control will be downloaded and player starts playing cam files.All camfiles uses same version of player unless until new version is updated. Everything is working good. The problem is, if i open two windows(IE) at a time,one player is crashing and showing error.how to overcome this problem.. 1.Can i play two .cam files at a time? 2.do i need to change any code in Activex control Plz help me..give me some suggestions.. Thanks in advance Sunita

    M 1 Reply Last reply
    0
    • S sunita ramesh

      Hello all, I have an activex control,which is a video player plays .cam files.I run this activex control using IE by giving its class id in tag. So whenever the IE page is opened,the activex control will be downloaded and player starts playing cam files.All camfiles uses same version of player unless until new version is updated. Everything is working good. The problem is, if i open two windows(IE) at a time,one player is crashing and showing error.how to overcome this problem.. 1.Can i play two .cam files at a time? 2.do i need to change any code in Activex control Plz help me..give me some suggestions.. Thanks in advance Sunita

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      You probably have some kind of concurrency issue. You should learn about threading in COM, the apartment models, and how to handle these. Internet Explorer uses one thread per frame, which are Single Threaded Apartment [STA] threads. You may not experience the same problem if you launch another instance of Internet Explorer from the Start menu, Quick Launch, or a shortcut, since these actions create a new IEXPLORE.EXE process. What exactly is the displayed error message? Stability. What an interesting concept. -- Chris Maunder

      W 1 Reply Last reply
      0
      • M Mike Dimmick

        You probably have some kind of concurrency issue. You should learn about threading in COM, the apartment models, and how to handle these. Internet Explorer uses one thread per frame, which are Single Threaded Apartment [STA] threads. You may not experience the same problem if you launch another instance of Internet Explorer from the Start menu, Quick Launch, or a shortcut, since these actions create a new IEXPLORE.EXE process. What exactly is the displayed error message? Stability. What an interesting concept. -- Chris Maunder

        W Offline
        W Offline
        William Wang
        wrote on last edited by
        #3

        I don't think the reason is from COM apartment models, ActiveX controls r working in their own apratment witch initilized by IE . what is the error message? life is like a box of chocolate,you never know what you r going to get.

        S 1 Reply Last reply
        0
        • W William Wang

          I don't think the reason is from COM apartment models, ActiveX controls r working in their own apratment witch initilized by IE . what is the error message? life is like a box of chocolate,you never know what you r going to get.

          S Offline
          S Offline
          sunita ramesh
          wrote on last edited by
          #4

          thanks for ur reply while opening two players in two IE,one player is crashing and showing error.i got error in add-ons. The error description is like this.. "The following addons was running when the problem was occured.and it showed details of the player dll" Any solution for this.. i posted the same question in vc++ forum and got suggetions.they said the probelm might be due to sound resources in player.since both the player using same sound resources ,one is crashing.. I tested it by removing sound resources from Activex control(player) and ran it..but that time also i got the crashing problem. plz help me and give some suggestions. Thanks in advance Sunita

          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