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