Adding a new StepType to the TypeUsageList is SLOW

Hi,
from code (C#) I'm creating a new new StepType, using the engine.NewStepType() method.
Before adding this StepType to my TypeUsageList, I'm changing some properties, like IconName, DefaultNameExpr, DescriptionExpr,...
And also the Name property is changed, but here is my problem: when doing this from Visual Studio (while in debug mode) it takes a long time to perform this. Running my app as a stand-alone (exe), and it goes (realtive) fast.
I've to add about 50 new StepTypes at once, doing this from Visual Studio takes about 30 seconds, from exe, about 3 seconds.
Is there something that I'm missing here ?
Using VS2010, C# 4.0, TS 2012 f1.
TIA
Franky

Hello Franky,
I must say that this is a big difference between both.
But it does seem normal that the Debug Mode takes longer than the release mode.
I think you already know this, but to provide a quick recap:
- Debug Mode: executable will contain debug information which will make it slower.
- Release Mode: executable will not contain Debug information, which will by default cause better performance.
However, the major difference will be that many (if not most) of optimizations are turned on in Release Mode, but not in Debug Mode
On the msdn fora there are many threads about these differences:
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/74db169a-e244-496e-ae97-8dfec18ff...
Kind Regards,
Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
CLD, CTA
If someone helped you, let them know. Mark as solved and/or give a kudo.

Similar Messages

  • CProjects - Adding a new field to the detail screen of object link

    Hi All,
    I've a requirement of adding a new field to the detail screen of object link. But the field is a combination of 3 other standard fields.
    Please let me know how could i realise this functionality?
    Thanks in advance.

    Hi Srini,
    Thanks for your Reply
    I have kept 01 against the field BSEG-AUGDT and selected the preselect check box also.
    But still that field is not visible in the dynamic selection screen.
    Thanks
    Ajay.D

  • Adding a new field to the search help exit

    Hi friends,
    adding a new field to the search help exit. How does it work ?
    Thanks in advace
    Ilhan

    The search help exit allows you to modify functionality of search help. If you add a new field to the
    parameter list that is not contained on the selection method you can manually populate it within the search
    help exit.
    This  would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
    data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
    Therefore you need to read table SHLP in-order to locate position of value within string.
    Example:
    To find position of personnel number (PERNR) within elemenory search
    help M_PREMN you would use the following code:
    Loop at record_tab.
         read table shlp-fielddescr into wa_shlp
                                       with key tabname   = 'M_PREMN'
                                                fieldname = 'PERNR'.
    You could then use this information in the following way, for
    example, to find a persons organisation unit:
          select  orgeh endda
            up to 1 rows
            from pa0001
            into (ld_orgeh,ld_endda)
           where pernr eq record_tab-string+wa_shlp-offset(8)
                                                      u201Cpernr length is 8
           order by endda descending.
          endselect.
          select single orgtx
            from t527x
            into ld_orgtxt
           where orgeh eq ld_orgeh and
                 sprsl eq sy-langu and
               ( endda ge sy-datum and
                 begda le sy-datum ).
    If you have added a new field to the end of the parameters list
    the next step is to populate it by adding this data to the end of
    the record_tab string:
      concatenate record_tab-string ld_orgtxt into record_tab-string.
      modify record_tab.
    endloop.

  • Adding a new field to the Address Data for a business partner

    Hi Experts,
    I am trying to add a new custom field to the address data (all structures and tables) that is linked to a business partner on SAP CRM via EEWB. Structure is the address structure wthin BUS_EI_EXTERN. Table is BUT020. I have been told that it is not possible as there is no Business Object that allows this. When doing an EEWB, the only business object is BUPA, which when selected, adds the new custom field to BUT000. I would like the field to be added to BUT020 (Address Table). This leads me to believe that there is no standard way of doing this, which ultimatley means that it would need to be done manually. Please help me with this predicament.
    Regards
    Yusuf

    The search help exit allows you to modify functionality of search help. If you add a new field to the
    parameter list that is not contained on the selection method you can manually populate it within the search
    help exit.
    This  would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
    data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
    Therefore you need to read table SHLP in-order to locate position of value within string.
    Example:
    To find position of personnel number (PERNR) within elemenory search
    help M_PREMN you would use the following code:
    Loop at record_tab.
         read table shlp-fielddescr into wa_shlp
                                       with key tabname   = 'M_PREMN'
                                                fieldname = 'PERNR'.
    You could then use this information in the following way, for
    example, to find a persons organisation unit:
          select  orgeh endda
            up to 1 rows
            from pa0001
            into (ld_orgeh,ld_endda)
           where pernr eq record_tab-string+wa_shlp-offset(8)
                                                      u201Cpernr length is 8
           order by endda descending.
          endselect.
          select single orgtx
            from t527x
            into ld_orgtxt
           where orgeh eq ld_orgeh and
                 sprsl eq sy-langu and
               ( endda ge sy-datum and
                 begda le sy-datum ).
    If you have added a new field to the end of the parameters list
    the next step is to populate it by adding this data to the end of
    the record_tab string:
      concatenate record_tab-string ld_orgtxt into record_tab-string.
      modify record_tab.
    endloop.

  • ADDING A NEW ITEM IN THE CREDIT REQUEST DETAILS PAGE.

    Dear friends,
    Please help me with this scenario.Thanks so much for your help.
    Task: ADDING A NEW ITEM IN THE CREDIT REQUEST DETAILS PAGE.
    Need to create a new item on this page called "approver notes" (column notes).
    Can this be achieved by personalization?
    Scenario:
    On credit request details page disputed invoice number, request date, status, bill to, ship to, etc are displayed.
    When the status is "not approved”, item should be displayed along the "rejected" comment.
    If the status is other than "not approved" then the item should not be displayed.

    what page is this ? are you sure it is a OAF page ?
    If it is a OAF page, you would need to extend the controller to fire a partial action for the item and then control the display property of the comments field
    Tapash

  • Adding a new server in the menu of SAP GUI 640

    Hello Everybody,
    While adding a new server to the menu of SAP GUI 640 using Server Tab after entering all details like :
    1] SAP System ID
    2] Hostname where message server is running
    3] SAP ROUTER :None
    After filling all the above details and after pressing the Generate List Button I am getting the following error .Please help me to know why this error is coming and suggest a solutio for adding a new server to my SAP GUI 640.But I am able to add a new server using User defined tab but I want to add a new server using Server tab.
    Below is error details which I am getting:
    Error:service'sapmsSBX'unknown
    Wed Jan 09 06:41:13 2008
    Release 640
    Component NI(network interface),version 37
    rc=-3,module ninti.c,line 463
    Detail NiPGetServByName: service 'sapmsSBX' not found.
    Thanks and Regards,
    Ashish Thakkar.

    Hi,
    check etc/services for sapmsSBX entry. If missing - add it (i.e. sapmsSBX      36XX/tcp - where XX is your instance no.)
    Add an extra [Enter] after last line of etc/services.
    Regs,
    FS

  • Error while adding a new method to the Session Bean

    Hello everyone. I'm using jdev 11g, ejb, jpa & jsf. Everything works fine. But when I try to add a custom method to the Session Bean, I'm having an error.
    Here is my steps:
    1) I added a new method to SessionBean.java. Something like this:
    public void Hello() {
    System.out.println("Hello!");
    2) Then using Structure palette I exposed this method through Local interface and created data control
    3) Finally, I made a command button binded to this method (just droped it from DataControls.dcx to my page)
    When I start the page and click the button, I'm having the following error:
    Error 500--Internal Server Error
    javax.faces.el.EvaluationException: Method not found: Hello.execute(javax.faces.event.ActionEvent)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1227)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
    ... (I've truncated the log because there is nothing important in the missing part)

    Yes, I have binding in the page def. Everything is correct there:
    <methodAction id="Hello" RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="Hello" IsViewObjectMethod="false"
    DataControl="PriceServiceLocal"
    InstanceName="PriceServiceLocal.dataProvider"/>
    I've droped the method from the Data Controls panel

  • Error while adding a new field to the Segment in we31

    Hi ,
    I am getting error when i am trying to add the new field to the cust. segment.
    It is released for the adding the new fields i am cancelling the release , but i got a message like this
    Error while resetting release of segment 'segment name'.
    it is comming from the message class EA and message number 259.
    Thanks in advance.
    Reagrds,
    bharani

    Hi,
    Have you tried Cancelling the release before adding the version?
    Select the active version of the IDOC Segment and cancel its release first. Only then you will be able to add a version.
    Please let me know if it worked!
    Vijay

  • Error 1430 when adding a new VI to the program

    I have a program I developed in LV 2009 in 2009 and now I am updating it.  I accidently opened it up in 2010 and saved it.  There are Microsoft office tools that were built into LV 2009 that are removed in 2010 that I had used in my program.  So I had to save as previous version (2009).  After everything worked and I could run the code and compile I continued developing.  At one point I tried to compile and got an Error.
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 1430 occurred at Create Folder in Create Directory Recursive.vi->AB_Destination.lvclass:Create_Destination.vi->AB_Build.lvclass:Create_Destinations.vi->AB_Application.lvclass:Create_Destinations.vi->AB_Build.lvclass:Build.vi->AB_Application.lvclass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Build.lvclass:Build_from_Wizard.vi->AB_UI_Frmwk_Build.lvclass:Build.vi->AB_UI_FRAMEWORK.vi->AB_Item_OnDoProperties.vi->AB_Item_OnDoProperties.vi.ProxyCaller
    Possible reason(s):
    LabVIEW: The path is empty or relative. You must use an absolute path.
    <Not A Path>
    I have now figured out that if I add a new VI to the program, it gives this error.  If I remove the VI, it compiles with no errors.  If I add a blank VI with no code, it gives  the error.  I have worked as far as I could without adding a VI but now i need a pop up window and need to the VI.  The code is too large to fit the max 6MB requirements.
    Thanks
    Matt
    Solved!
    Go to Solution.

    Hi mattyk,
    When you say compile, do you mean press the run button? When exactly does this error show up?
    I suggest you try copying all of your VIs into a new project, and try running the new project. It sounds like your project may have been corrupted in the process of upgrading and re-saving to a previous version.
    I hope this helps! Regards,
    Emily C
    Applications Engineer
    National Instruments

  • Adding a new field to the selection screen of a LDB

    Hi all,
    I want to add a new field Clearing date(BSEG-AUGDT) in the dynamic selection screen of  the report RFUMSV00.
    For adding a new field i have copied the SAP view of a Logical database to CUS view.
    Next i had added the Clearing date(BSEG-AUGDT) to the function group Document header(01) and selected the check box Preselect and saved the view.
    But still i am not able to find the newly added field in the dynamic selection screen of the report.
    Please suggest me where i am going wrong or how to do this.
    Thanks in advance
    Ajay

    Hi Srini,
    Thanks for your Reply
    I have kept 01 against the field BSEG-AUGDT and selected the preselect check box also.
    But still that field is not visible in the dynamic selection screen.
    Thanks
    Ajay.D

  • Adding a new button in the PO search summary in SRM 3

    Hello gurus,
    my requirement is to add a new button in the search summary for PO in SRM. Here's the task: every time a search is executed, the result is a list of purchase orders and every item has on the left two icons, "Show PO" and "Modify PO". There are merely a shortcut that brings the user to the PO screen in which the document is shown/can be modified.
    These two buttons are standard... my task is to add a new button in the template, "Copy PO", which should be a shortcut to the omonimous button which is present in the PO view screen. So I think this new button should work as the two standard ones.
    In order to do so, I looked into the proper template: SAPLBBP_PDH_SEARCH, screen 3003, which belongs to the package BBP_PRODOC_C (ITS service BBPSEARCH).
    I tried to "duplicate" the part referring to a standard button (e.g. the "display icon" chunk), obtaining a new chunk which represents the new button in the template.
    And... it works, in the sense that the button is visible and clickable. So far so good. Here's the questions since I'm not absolutely an expert on Jscript... My button, once clicked, triggers my FORM (PO_COPY) which should receive the header GUID of the Puchase Order.
    In debug I've seen that the form fails since it does not receive any parameter, and that's probably related to this section:
    (angle brackets omitted, it gave me an error posting tags in sdn)
    "JavaScript:HyperSubmit('PO_COPY', '`MAINLIST-LINE_NUMBER[j].value`')"
    The problem is I did not understand how to check for possible parameters of this HyperSubmit method. Also, I'd like to check what's the structure of MAINLIST (as far as I've seen,  MAINLIST-LINE_NUMBER[j].value is a parameter passed to the form) but don't know how to see that. Can anyone please direct me through these passages? Thanks in advance.

    Hi Matteo Montalto,
    Please let me know how you added new button.
    Regards,
    neelima

  • Adding a new tabpage into the Cprojects

    Hi,
    I am working on cprojects. I have added a new tab page by the method of Global Enhancement to Cproject, and successfull in getting the link in the tab page. I've created a webdynpro component and attached to that particulat tab.
    The requirement is to generate a report in PDF format from the new tab. I am able to get the output of the report and print also. Once after getting the PDF output, i am not able to move into the next tab to do other activities. Also i am forcefully terminating the Cprojects.
    Expecting reply.
    Regards,
    Shankar.

    Row r = vo.createRow();
    //insert row
    vo.insertRow(r);
    //commit changes
    DCIteratorBinding iter = getIteratorBinding();
    ApplicationModule am = null;
    am = iter.getDataControl().getApplicationModule();
    am.getTransaction().commit();
    //

  • Adding a new value at the beginning of the list

    Hi,
    I've a list of values which are hard coded in the 'Elements in List' property for a Combo Box. Now, I want to add a new value at the beginning of the list. It doesn't allow me to add one. I have to delete all values and re-enter from the first which includes the new one. Is there any way that I can add a new value at the beginning of the list without having to remove other values.
    Thanks in advance.
    -- Srinivas

    Hi ,
    In order to implement the appropriate moves you have to use the key combinations : 1) <shift>+<ctrl>+'<' for deletion of the current list item(where the cursor is located)
    2)<shift>+<ctrl>+'>' for appending a blank row in order to add a new element...
    Regards,
    Simon

  • Adding a new PDF to the library of books to use in iBooks via iTunes fails

    Hi everyone who is not a beginner at his/her mac,
    I try to add a new PDF file the my iBooks Library using the iTunes app, but this does no more work for me. I looked in the System log and found that there is a problem to put a finder window to front.
    A part of the messages which could be related to this problem are:
    2014-01-26 18:51:10 +0100 launchservicesd[54]: Application App:"Finder" asn:0x0-b00b pid:256 refs=8 @ 0x7fc37060f6e0 tried to be brought forward, but isn't in fPermittedFrontApps ( ( "LSApplication:0x0-0x25025 pid=460 "SecurityAgent"")), so denying. : LASSession.cp #1481 SetFrontApplication() q=LSSession 100004/0x186a4 queue
    2014-01-26 18:51:10 +0100 WindowServer[104]: [cps/setfront] Failed setting the front application to Finder, psn 0x0-0xb00b, securitySessionID=0x186a4, err=-13066
    What is the reason for this behavior? How to fix it ?
    The next problem is reported in the log file with the following:
    2014-01-26 18:54:17 +0100 MDCrashReportTool[464]: 464:3674112|CrashReportCopierAFC.m:-[CrashReportCopierAFC copyAndProcessRemotePath:usingConnection:]| ERROR: Could not remove remote path at ./DiagnosticLogs/security.log.20140119T105324Z.gz
    I would be lucky if someone could help.
    Hartmut

    If it's a zip file that just contains the classes,
    then (brilliant insight here) change it's name so
    that it's a jar file. If it's a zip file that
    contains a bunch of documentation and readme files
    and also a jar file that contains the classes, then
    extract that jar file and use it.Do you mean that the only difference between jar files and zip files is the extension name???

  • Adding a new field to the iView thru OADP

    Hi All,
    The customer has implemented the ECM for mySAP ERP 2005.
    I have the following requirement for the current assignment:
    1.I need to add a new field to the iView (webbdynpro).How can I do it using the OADP in IMG?
    Pleae help.
    thanx,
    Bhupesh

    Hi,
    Kindly check the following threads:
    /message/1755908#1755908 [original link is broken]
    /message/2496839#2496839 [original link is broken]
    best regards,
    Thangesh

Maybe you are looking for