QucikTime ActiveX Control in C# application

Hi,
Hope someone can help. I am using the QuickTime Active Control within a C# .NET 2.0 application. I have noticed that after the control has been running for a long period of time ( a number of hours) it crashes, bizarly always at the same point within one of the movies. This movie has been played numberous times prior to the crash, so i know that the file is not corrupted.
Any help would be much appreciated.
MB

0049 wrote:
Hello everybody,
I am trying to read and write FileGlobals with TestStand ActiveX control in C#.
I have tried with:
SequenceContext contextOfTraceMsg = e.thrd.GetSequenceContext(0, out frameId);
var filepara = contextOfTraceMsg.FileGlobals.GetSubProperties("ProjectParameter.NestIsTested", 0).GetValue(1); (NestIsTested is a boolean array)
but with no success.
Can anyone tell me how to do it right?
Thank you in advance!
Regards
Try this:
bool nestIsTested = contextOfTraceMsg.FileGlobals.GetValBoolean("ProjectParameter.NestIsTested", 0);
Hope this helps,
-Doug

Similar Messages

  • Using ActiveX controls in GUI application, which uses TestStand API

    When using ActiveX controls in TestStand Operator Interface GUI,
    CVI reports User Interface Library error no.-143:
    "ActiveX control Error" on attempt to load panel, which contains ActiveX controls.
    The same code, which takes care of user interface, but not references
    TestStand ActiveX API (i.e. not creates TS Engine), works properly.
    What's wrong?

    Hello again Misha,
    Sorry about my previous answer, I overlooked the fact that you were saying this error was caused by placing ActiveX controls in your Operator Interface (OI) GUI (as my example shows I thought the problem was with GUIs displayed from step code modules).
    Nevertheless, the problem is still being caused by the same issue, and is solved in a similar fashion. The source for the CVI OI initializes the TestStand engine before it loads/displays the UI panels. The calls to initialize the engine seem to be CoInitializing the main GUI thread as multithreaded apartment (MTA) mode whereas you will need it to be single threaded apartment (STA) mode in order for the ActiveX control container to work properly. The TestStand engine is compatible with either modes, but only one can be in place at a given time. If we CoInitialize the OI's main GUI thread as STA this will solve the problem (the subsequent attempts of setting it to MTA will fail, but again this is ok since the engine is compatible with STA).
    In order to perform this functionality you will need to put a call to CoInitializeEx in the main function of the CVI OI source (this will also require that you #include the "windows.h" file at the top of the source also). Here is what the main function in your main.c file for the CVI OI will look like once you have done this:
    int main(int argc, char **argv)
    int retval = -1;
    sArgc = argc;
    sArgv = argv;
    if(InitCVIRTE(0, argv, 0) == 0) /* Initialize CVI libraries */
    goto Done; /* out of memory */
    // Intialize main GUI thread as STA to prevent other attempt to make it
    // MTA, which will not allow ActiveX controls to be used.
    CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
    /* initialize the test engine */
    if(!InitEngine())
    goto Done;
    if(!InitErrorDialogStrings())
    goto Done;
    if(!InStandaloneExecutable() && !DisplayRunningInEnvironmentWarning())
    goto Done; // get out now
    if(!ProcessPreLoginCmdlineArgs())
    goto Done;
    if(!CfgFile_Load())
    goto Done;
    if(!CfgFile_RestoreOptionSettings())
    goto Done;
    if(LoadGUIPanels() < 0)
    goto Done;
    if(!InitFileQuickList())
    goto Done;
    /* set initial gui state */
    if(!InitGUI())
    goto Done;
    RunUserInterface();
    retval = 0; /* normal exist status */
    Done:
    /* cleanup */
    SeqFileList_DeleteAllSequenceFileRecords();
    ExeList_DeleteAllRecords();
    IconList_DeleteIconList();
    SaveAndCleanupFileQuickList();
    CfgFile_SaveOptionSettings();
    CfgFile_WriteAndCleanupForExit();
    AdaptList_DeleteAdapterList();
    DestroyToolMenus();
    CloseEngine();
    FreeErrorDialogStrings();
    return retval;
    Note: Remember to #include "windows.h" at the very top of the main.c file and to include ole32.lib in your project file list in order to link in the definition for CoInitializeEx.
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • How do I use a LabView control element as ActiveX Control in another application?

    I am was trying to include some simple ActiveX Controls(sliders, buttons) in my VBScript. It worked with other ActiveX Components from the web, however I wasn't able to include the LabView ActiveX Controls because I was missing the necessary IDs. Moreover I was able to test the LabView control by inserting it into the VC++- Test Container. But I still can't find the necessary IDs...

    I don't believe that any of the LabVIEW controls (except for 3D Graphs) are ActiveX controls so I'm not sure what control you were able to insert into the VC++ container. What's the exact name of the control? NI does have ActiveX controls that are part of Measurment Studio so maybe it's one of those that you're using?

  • Calling ActiveX Control in Oracle Developer 2000 - Forms 5

    Hi All,
    I am looking for sample code to call an ActiveX control from my application.
    I have a data input form once i submit the data, the ActiveX control is called and the data is transmitted to a 3rd party application. Could you kindly provide me some pointer here please.
    Thanks

    You're using a very old version of forms and also of SQL*Net.
    to be sure that the problem is forms/sql*net related and not due to other reasons (e.g. network), you could install the current version (forms 10g) and just see if the connect is any faster. If it is, you could try to run Forms 5 with a newer version of the oracle-client /Sql*net to see if that works better.
    hope this helps.

  • ActiveX control is not working with windows NT

    I've have a stand alone application which uses an activeX control.  The application was compiled using Labview 7.1 on a Windows XP machine.  The application will run without any problems on Windows XP and Windows 2000, however the activeX control will not work with Windows NT 4.0.  The activeX control is registered, and I have also compiled the application on a Windows NT 4.0 machine.  I do not receive any error messages, the application will start but will not communicate with the activeX control.  Does anyone have any suggestions?  

    Hello,
    Have you tired running the VI by itself (not exe) on the NT machine? Make sure you are doing adequate error checking in your code. It could be possible that the application is generating an error which in not handled appropriately. Also which service pack do you have installed on the NT machine? Please look at the release notes for LabVIEW 7.1 here.  
    Regards,
    Chetan K
    Application Engineer

  • Intermittent QuickTime ActiveX control crash

    I embeded QT ActiveX control into .Net application. I call "axQTControl.QuickTimeInitialize();" when my form is loaded. Then I point QT ActiveX to a URL:
    axQTControl.URL = "http://location of my movie clip";
    Depending on the network load it either plays the movie or crashes with the following COM exception: "Oops! An error occurred." It is very sensitive to the network conditions: it fails when there are only 2 users hitting the URL. We tested Mac version of our application with 13 simultanious users with no problem. It also never fails if the clip is located on my local drive.
    Is there any workaround? Some settings to try? Please help.

    > Does anyone know how I may obtain developer assistance with this issue?
    Log a case with Adobe Acrobat Developer Support.

  • I like to be able to control an external application (Specifically ICQ)

    I like to control ICQ, a web based massaging application. (Http://www.ICQ.com). My knowledge of ACTIVE X is very limited so if some one can recommend a web page that explains ACTIVE X at a very beginner�s level I will appreciate it. Also if some one could mention what sort of information I need from ICQ to enable me to do that it will be very helpful.

    There are some applications which are designed to be controlled from other programs and systems (Microsoft Office is a good example for me). On the Windows Platform, the method of control is ActiveX.
    The ActiveX functionality must be part of the program design. If an application is not designed and written to allow ActiveX control from external applications, you cannot use ActiveX for controlling this application.
    The lowest common denominator for controlling applications which offer NO interface for external control is simulation of keypresses through the System. Needless to say this is extremely awkward and problematic.
    Bottom line: Not all applications can be "within reason" controlled by an external program. If ICQ does not offer
    an interface for external control, then maybe there is a similar product which has the same functionality as ICQ which DOES have an ACtiveX interface.
    Shane
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • Integrating custom ActiveX control with SapGUI

    Hi everybody
    I'm in the process of writing a custom MFC based ActiveX control written in C++ that we want to use in a product. I am currently at the point where I can instantiate the control and interact with the various methods that it exposes but I have a problem integrating the control more tightly with the SapGUI e.g. change of colors, fonts etc.
    I want to make the control to reflect the user changes when the user modifies any settings of the SapGUI. I've tried catching various events that are exposed by some of the dictionary classes such as cl_gui_props_consumer=>color_change/global_prop_change and cl_gui_resources=>resources_changed but these events only fire in my control once the PAI of the client program that encapsulates the control fires which is hardly appropriate since it means that the control will have to wait for user input before it will change reflect any changes in user settings.
    I've written a test program for my control and when I change my SapGUI colors the rest of the controls etc on the screen do change color but my control only change color once I've performed some action that fires the PAI. Personally I think the controls written by SAP intergrates with the SapGUI through some interface that is called behind the scenes by the SapGUI since the GUI will have some way of knowing the set of ActiveX controls instantiated inside it  and I cannot find any event in the ABAP controls framework (e.g. CL_GUI_OBJECT, CL_GUI_CONTROL) that will allow this type of integration. I'll be digging for the answer but any suggestions will by greatly appreciated.
    Thank you in advance for any help.
    Kind regards
    Ettienne Hugo

    Hello Ettienne Hugo,
    To get the SAP GUI Theme or font changes events you need to add your MFC application or ActiveX MFC dll into u201CSAP Configuration->Application Tab->Addu201D and u need to call the functions SapHookInit and to stop getting the change events u need to call SapHookExit.(sapfhook.dll provides these functions)
    I tried with exe, never tried with ActiveX MFC dll/ocx. With EXE it works.
    Thanks and Regards,
    Ashwini

  • Unable to print crystal report over web using ActiveX Control

    Post Author: jimmyp
    CA Forum: General
    We have a problem with printing crystal report over web using ActiveX Control.  When clicking print button, it only shows a blank dialog web crystal viewer page without any error.  The page just simply hangs.  We installed the PrintControl DLL and enable all the security setting for ActiveX Control for IE.  It still does not print.  Does anyone know why?  
    Environment.
    Bundle Crystal Report v10
    Asp.net 2.0
    IE 6.0 or higher.
    Appreciate for your help.
    Jimmy

    Post Author: Ian Kulmatycki
    CA Forum: General
    A team member here found this, I haven't read it, I'm not sure if our problems are related to this, but hopefully it helps someone:
    -ian
    When Secure Sockets Layer (SSL) is enabled, using the ActiveX control to print reports from a Crystal 10 DHTML viewer results in the following error message:
    "A communication error occurred, printing will be stopped."
    How can this error message be resolved?
    Resolution
    This is a known issue with Crystal Reports 10 and Crystal Enterprise 10 viewers and has been tracked. The Track ID is ADAPT00282199.
    This error occurs due to the receiving application performing a case-sensitive check for the HTTPS request header value "ON". When a sender application sends the value as "on" in lower case, the error occurs. The update below changes the receiving application to be case-insensitive.
    Hot Fixes or Service Packs address this issue as indicated below. With the updates, this issue is resolved.
    Unless indicated otherwise, Weekly Hot Fix updates from our FTP site have only been tested with English versions of products.
    For Crystal Reports 10 and Crystal Enterprise 10, the update for this issue is included in the Crystal 10 Viewers Weekly Hot Fix (WHF). This is available in English only at the following location:
    ftp://ftp.crystaldecisions.com/outgoing/EHF/viewers10win_en.zip
    This issue is addressed in the following components (and later versions):
    PageObjectModel.dll, version 10.0.5.785, dated 8/25/2004
    ReportRenderer.dll, version 10.0.5.785, dated 8/25/2004
    WebReporting.dll, version 10.0.5.785, dated 8/25/2004

  • How to set Print...More Options...Current View in ActiveX control?

    I am using Visual Studio 2012 to develop an application that will open large PDFs (24" x 36") and allow the user to zoom to a particular part of the document. I want to give them a Print button on my application to simply print the Current View of the document to the default printer. I want limited customer options, so no showing the Print Dialog, etc... This will be for general customer use. I am trying to do this with the Acrobat Reader ActiveX control. If this cannot be done with the ActiveX control, I thins something I could do with the full Acrobat SDK? Thanks!

    The Reader control actually does what I want pretty well. I set the mouse wheel to allow zooming, the hand tool to drag the document around works easy and fast. I just need to turn off some of the Acrobat Toolbar options and set this Print Current View option.
    This is frustrating as back in Acrobat Reader 7 or 8 I think, you could set the Current View in the Print Dialog and the setting would stay until it was specifically changed. Now it reverts per print job, thus I now having to code against the Reader control, or other, to get around it, to keep the user from having to set this option each time (and the user will change frequently as they are walk-in customers)
    Anyway with this additional list of requirements, do you thihnk I still cannot do it with the Reader ActiveX control? If not, and I need to use the SDK, do you mean I would have to buy a full copy of Adobe Acrobat and install on that system for the application to work? If so, do I also need to buy another full copy of Adobe Acrobat for my development system so I can write code and test the application? If I need a full copy for the Dev computer, does Adobe have any kind of reduced pricing for a Dev version?
    Thanks!

  • One or more ActiveX controls could not be displayed because either:1 your current security settings prohibit running ActiveX controls on this page, or 2. You have blocked a publisher of one of the controls.

    hi All,
    i have one of the requirement for an application, we do upload some release not in file server and that is used in application link to see the note. in this note i have converted the Excel into .HTM format(web page). this was working fine, but from last
    two days all of a sudden we are recieving error as above.
    one or more ActiveX controls could not be displayed because either:1 your current security settings prohibit running ActiveX controls on this page, or 2. You have blocked a publisher of one of the controls.
    could anyone please help me on this.
    Thanks and Regards,
    krishnamurthy

    Hi,
    Actually Arnavsharma provided a operable method for you. But no luck, it's not invalid.
    Here I also offer you an method you can try.Please delete the extra (parasite) zone from the Zones subkey :
    Click Start , click Run , type regedit , and then click OK
    Expand the following registry subkey
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones
    Delete the extra (parasite) zone from the Zones subkey
    Note: The parasite zone is a pseudo-graphic number listed before zone number 0. The pseudo-graphic number looks like a miniature upper case "L"
    Close the registry editor
    Thanks!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How do I update my ActiveX controls without breaking existing VIs?

    Hi, I'm new to LabView. I've inherited a labview application that makes use of several user-written VIS. All these vi files use an ActiveX control. For better or worse, the way they've done it is to put a ActiveX Container on the front panel. They then picked "Insert ActiveX Control", and picked the correct OCX. In the block diagram, they set up a "Invoke" Node and wire the ActiveX control to that.
    The problem occurs when I update the ActiveX control. I added a couple of methods and reregistered it. When I run one of my vi files, I get:
    Error 0 occurred at VI Open & Init Spinstand
    Possible Reasons....
    I then thought that going to the front panel and deleting the ActiveX control and reinser
    ting it would work. Instead I got the message:
    Error 1598667368 occurred at VI open & Init...
    I should point out that I'm not even attempting to use the new function yet; I'm just running an old .vi file with the updated ActiveX control.
    The version of LabView I'm using is 6.0.2. Can anyone tell me what's going on? Is there a way to gracefully update the ActiveX control? I'm I adding ActiveX controls in the best way?
    Any help or references would be greatly appreciated.
    Thanks,
    Andrew Walker

    Updating *.OCX OR *.DLL Component When Active X Automation Interface has Changed
    Given that you have changed the ActiveX automation interface, e.g: by appending new functions, then, the original 'registered' ActiveX server automation interface is no longer compatible with the new one.
    In this case you must: (1) �un-register� the original interface; (2) Copy the New *.OCX/*.DLL File over the previous ones; (3) Then �re-register the new interface�; (4) After that you must visit ALL your LabVIEW Diagram �PROPERTY� and �METHOD� ActiveX automation nodes and re-reference those same functions.
    These FOUR (4) Steps are further explained below:
    1. Unregister the *.OCX or *.DLL file by running the command
    Regsvr32 /u ��
    Make sure that points to the full path name for your *.OCX or *.dll file. You must use the opening and closing quotes if your file path has spaces.
    2. Copy the new *.OCX or *.DLL files over the old ones
    This means that you will be over-writing the old *.OCX or *.DLL with the new files. Replacing these files is re-commended so that you do not end up with multiple copies of the same file.
    3. Register The New *.OCX Controls
    Register the new controls by running the command
    Regsvr32 ��
    This will now honor your new ActiveX automation interface in place of the last one.
    4. Re-Visit All �PROPERTY� and �METHOD� Nodes and Re-Reference the same functions that appear in those nodes
    This means that you will be right-clicking on all the existing PROPERTY and METHOD nodes and choosing the functions accordingly from the drop-down list-view/menu. If the list view is grayed-out, then Steps 1 to 3 did not take!
    NB: GOTCHA FOR *.DDL Users
    If you have sub-VIs that use the *.dll Ref icon then you will have to cut and re-insert this reference control in all those sub-Vis. A quick way is to copy the top level *.Dll ref icon and paste it over the control and indicator versions of the same in those sub VIs.
    These four Steps plus the 'Gotcha Step' have worked consistenly when I have had to update ActiveX controls featuring a changed automation interface.

  • AcroPDF ActiveX control on Excel Userform --- how to include it when I print the form?

    Here is a screen-shot of my Excel Userform which IS displaying the correct PDF file inside of an AcroPDF ActiveX control.
    Everything works on this form, including an option to print out a full-sized (8.5 x 11) version of the PDF.
    However ...
    I would like to push the "Print this Form" button, and have a paper copy of exactly what you see on-screen.
    The form does print, but the PDF displayed in the ActiveX control is BLANK.
    I also have an Image control  on this same form with code that allows me to browse for an image file (.JPG) which I use for Custom signs ...
    The form prints and the image displayed in the Image Control DOES print with the form.
    The Code:
    Private Sub cboSelectSign_Change()
    Dim MyPDF As String
    If Len(Me.cboSelectSign.Value) > 0 Then
        If Me.cboSelectSign.Value = "(Custom)" Then
            Me.AcroPDF1.Visible = False
            Me.ctlImage.Visible = True
            Me.ctlImage.Picture = Nothing
            If MsgBox("Do you have an image that you'd like to display?", vbYesNo, "Display an Image?") = vbYes Then
                fOpenFileBrowser
            End If
        Else
            Me.AcroPDF1.Visible = True
            Me.ctlImage.Visible = False
            MyPDF = Me.cboSelectSign.Column(1)
            Me.txtPDFpath = MyPDF
            Me.AcroPDF1.src = MyPDF
        End If
        Application.Wait (Now + TimeValue("0:00:03"))
        Me.txtWidth.SetFocus
    End If
    End Sub

    Has anyone had this problem?

  • Digital signatures in Acrobat activex control

    Hi, can anyone help me please.
    I'm embedding the acrobat reader activex control inside a winforms application (C#).
    I can load a document and it does display on the winform application.
    Now, in the PDF document, there is a signature field, so when you click on the signature field it is suppose to pop up a window that acquires the signature from a signature pad (I've got a topaz and wacom signature pad connected to the pc).
    Instead a different signature window is displaying, where you select from a list of certificates to be inserted.
    Now, first of all is it possible when using the activex control to obtain signatures from external devices like my signature pads? I just can't seem to get this to work.
    Regards
    Gerhard

    It is Adobe Reader X, yes it does work with Reader in standalone mode, no web browser also the same thing, doesn't pop up the window to select the signature pad to get the signature from.

  • ActiveX controls not downloaded when using Internet Explorer 10

    We have many legacy applications developed using ASP and VB(InterDev). Our organization is moving to use Internet Explorer 10 in the near future.
    We had a IE10 compatibility testing for our legacy applications and we observed that the applications using ActiveX controls are not working. Applications works perfectly fine with the older version of Internet Explorer.
    We looked for the various workarounds but we did not find any.
    Some application does nothing when we click on a button to generate the report but some applications throws the below error:
    <div id="x_x_imcontent"> <div style="font-size: 9pt; direction: ltr;">"ActiveX
    control failed to load! -- This control is required to use the Address Book and Attachment features.  Please check your browser security settings and/or contact PC Support to install the digitally signed control."</div>
    </div>
    We will be glad if we get any assistance on this issue.

    Hi,
    Please post your ActiveX feature testing scripts to the IE Web Developer forum.
    (f12>Debug tab, search for ActiveX.... you should be able to find code blocks where you are feature testing for your ActiveX controls eg var ourcontrol=new ActiveX('foobar');
    these code blocks will be the origin of the error messages that are injected into the page. (you can also search for where the "ActiveX control failed to load" string is in your code.)
    http://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=iewebdevelopment
    IE10 has ActiveX filtering.... a blue circle with a line through it appears in the Address bar if any ActiveX content is blocked by Tools>ActiveX filtering.
    IE10 has Enhanced protected Mode turned on by default in the Internet and Restricted Zones. I assume that you are mapping your test domain to the Intranet zone (where EPM is turned off by default and x32 bit controls are used.... if not you should see information
    bars asking for permission to run the 32bit activeX controls)
    Ensure you are using the Default IE security settings, (and also that you have applied the new admx files to your GPO and GPEdit control panels....)
    Tools>Internet Options>Security tab, click "Reset all zones to default".
    Ensure your test environment maps to the Intranet Zone (File>Properties) and that Enhanced Protected Mode is turned off for that zone (Security tab of Internet Options)
    Ensure that your ActiveX controls are enabled (Tools>Manage Addons>Show all Addons) and that they have the correct permissions..... find them in the Addons manager and then click the item in the list to display their properties and permissions... at
    the bottom of the Addons Properties there is a textarea with "You have approved this addon to run in the follow websites"... you testing and production domains should be listed.
    For the best solutions/answers you should probably open a support ticket at support.microsoft.com so a support engineer can access your testing environment and do some tests.
    Regards.
    Rob^_^

Maybe you are looking for

  • PDF and Print Control in Reports.

    Dear All, I want to set particular format for every report in PDF and Print control option like want to place client's logo in header and page number and date in fotter , how can i achive this,is there any way we can set it globally coz doing on ever

  • Purchase orders for equipment rentals

    We often rent equipment for durations of between 1 - 12 months.  Usually we do not know ahead of time how long we will be requiring the equipment, so we would issue an "open purchase" order that is valid until we return the equipment.  We are invoice

  • How do I find the IP for a website published on Muse?

    I'm having trouble redelegating my domain, the website is built in Muse and I'm not even sure its possible to redirect using Business catalyst, I am finding the tutorials unclear, any help would be amazing

  • How to install ios on my new hard drive?

    My macbook's hardrive died. I have to change it, I have a spare hard drive at home, but I was never provided with an installation disc. how am i supposed to go ahead with the installation?

  • Windows Media Pla

    Hello, I am going to use WMP to transfer songs but there is a problem. For some reason when i play a cd on WMP it wont play well it does but no volume so when i transferd it to the micro no volume came out. Anybody now how to fix WMP so i can get vol