Ngen.exe under the hood

While documentation says ngen.exe create a cached image of the exe, I have no idea of what happens.
Furthermore, I have noticed that if I run ngen.exe from several path to the same exe it always does the compile so it doesn't know if has been already run.
So I have 3 questions:
1) How I can know if ngen had been processed for a certain .exe ?
2) Where I can found the cached images created by ngen.exe
3) How I can be sure the exe I'm running uses or not these images?
Thank you

As your question is about ngen.exe and not about .NET Framework setup (this forum's topic), I suggest you ask in the ASP.NET configuration and deployment forum, here:
http://forums.asp.net/26.aspx/1?Configuration+and+Deployment

Similar Messages

  • What does the open file dialog do 'under the hood' and is there a way to simulate it

    What does the open file dialog do 'under the hood' and is there a way to simulate it?
    I have a bug in my code (that I've posted about before, here) which I can't fix at the moment, but I do have a workaround.
    Briefly, the bug:
    I call a dll from a function node, to initialise and run a spectrometer. If I start up the PC, LabVIEW and run my vi the code runs without complaint, the first call to the dll to initialise the spectrometer doesn;t return an error but the spectrometer is not detected either.
    I've tried various solutions, see the link above, and none work
    The workaround:
    If, at any time before running the code containing the function node I open an 'open file' dialog window, select the dll and click ok/hit enter then everything is fine. When I run the main code the spectrometer is detected.
    I use an express vi to open the file dialog, I specify the start path and file name as constant inputs and just click ok/hit return when the dialog pops up. I don't do anything with the dialog outputs. In fact the vi that contains the open file dialog can be run before the project containing the bug is even open.
    I have to do this everytime I turn the PC on.
    So, either
    1) Can somewone suggest a fix for the original bug?
    2) What is the easiest way to simulate the enter keypress when the open file dialog pops up
    or
    3) Can someone tell me what the open file dialog does under the hood that somehow causes the dll to work and can it be simulated in straight LabVIEW
    I suspect that the dll itself is dodgy ( I have in the past talked to the supplier but not got very far, and I will try again but I would like a quick, temporary solution too). I'm guessing that the file dialog is making some kind of check on the file, and possibly registering its presence with the OS (winXP). I tried using the file/folder exists vi to see if checking the file like that worked but no luck.
    Any help greatly appreciated.
    Dave

    Hi David
    I am very conscious about thread hijacking but this sounded like my issue so I hope you dont mind me asking about your issue. I am hoping that you have a spectrometer from the same vendor as me and its not just me seeing an Error 1097 issue. My spectrometer is from a company called Stellarnet.
    So far I have unable to get it to work with other VIs. There is one condition where I can get it to work but its no good for me.
    Case 1
    I open the VI in a fresh labview environment with no other VIs in memory. The code runs with no issue.
    Case 2
    Labview is not opened. I double click the spectrometer VI in windows explorer.  The VI opens but it fails to run resulting in Error 1097. Personally, I dont see the difference between this and Case 1 above and yet it fails.
    Case 3
    If I already have other VI's in memory and try to load the spectrometer VI and run it fails with Error 1097. This case is the one that most important to me. I have a test executive that will load test VIs dynamically and I can't get this to work. Same problem Error 1097.
    I wanted to share what I have seen with you and to let you know that maybe somebody else has the same issue. I am convinced its the DLL but the vendor dis-agreed saying it was LabVIEW. I couldn't convince him otherwise.
    Thanks in advance
    David

  • Requirement is to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a windows service, which will be created by command: - net use z: \\servername\sharedfolder /persistent:yes

    Environment:
    OS:  Windows 7 32/64 bit, Windows 2008 Server 64
    bit/ Windows 2012 Server 64 bit
    Priority:
    - Critical
    Requirement: - Since
    the Windows Service is running under the Local System Account, we would like to emulate this same behaviour.
    Basically, we would like to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a service using following
    command
    net use z: \\servername\sharedfolder /persistent:yes.
    Already Attempt:
    We tried to launch the CMD.exe using the DOS Task Scheduler AT command.  Here’s a sample command:
    AT 10:36 /interactive cmd.exe
    But I received a warning that “due
    to security enhancements, this task will run at the time excepted but not interactively.”
    It turns out that this approach will work for XP, 2000 and Server 2003 but due to session isolation
    Interactive services no longer work on Windows 7, Windows Server 2008 and above.
      2.  We
    tried to create a secondary Windows Service via the Service Control (sc.exe) which merely launches CMD.exe.
    <Drive>:\sc create RunCMDAsLSA binpath= "cmd" type=own type=interact <Drive>:\sc
    start RunCMDAsLSA
    In this case the service fails to start and results it the following error message:
    FAILED 1053: The service did not respond to the start or control request in a timely fashion.
      3. One
    suggestion, we found to launch CMD.exe via a Scheduled Task, but
    it is not giving any option to launch CMD.exe in interactive mode; so that I can map network drive using net command.
      4. I read an article, which
    demonstrates the use of PSTools from SysInternals. I launched the command line and executed following command
    psexec -i -s cmd.exe
    PSTools worked fine, but It seems that in scope of Sysinternals Software License
    Terms. You may not "use the software for commercial software hosting services."
    Application will deploy on client, which will be like commercial,
    so we are not able to use PSTools.         
    Kindly assist us for achieving the requirement. We have tried all the ways, but nothing is working for us. Kindly suggest.
    I will be really thankful.

    Hi Sir,
    Nothing worked from above for us. You can see our remarks on posted query.
    That’s why, we posted on forum.
    And there will not be any vulnerability, because, if we will use "net
    use ..."
    in network domain; definitely,
    we will provide username and password of mapped drive system.
    And, that system, itself is given by client; so that, there must not be any vulnerability; they are ready to provide user name and password.
    We need a way; by which we can complete the requirement. Kindly assist.
    Regards,
    S. P. Singh

  • I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. Need process under the hood

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

  • How do I find "under the hood" in iPhoto

    I purchased duplicate finder and it asks me to access under the hood in Iphoto.I can not find under the hood .Help please

    I bought the Duplicate Finder app in Applestore I have tons of duplicate photos in IPhoto I run OSX 10.9.2
    I use IPhoto 9.5.1
    Here is the help page for Duplicate Finder app it tells me to go into the highlighted area below to run the app in IPhoto.I do not undestand how to get to the under the hood tab see bottom of the page
    Preferences
    The preferences window can be accessed from The Duplicate Finder menu. All options in Preferences have a description field, to describe its functionality. In case if you have questions related to detailed information about a specific option contact us.
    Search for duplicates in iPhoto
    To properly scan your iPhoto Library an option called "Scan duplicates in iPhoto" has to be enabled at the bottom of "Under the Hood" tab.
    This option forces The Duplicate Finder to analyze the meta information of iPhoto libraries and show only the actual duplicates within iPhoto. By removing iPhoto duplicates from The Duplicate Finder, iPhoto is launched and the items are moved to iPhoto's Trash. To permanently delete the items and free up your drive space the Trash of iPhoto needs to be emptied.
    Note: Only the removal of the currently active iPhoto library items are allowed. Warning messages are displayed for the selection of items inside inactive libraries.

  • Looking under the hood

    my sysadmin geeks here want to know what happens when a swf
    runs the
    getURL() method so i'm trying - unsuccessfully thus far, sad
    to relate -
    to find a site looks "under the hood" of AS a bit and
    explains its
    workings at a deeper lever.
    can anyone point me to any such thing please?

    This may be what he wants to see - and it's an invaluable
    debugging tool:
    http://www.kevinlangdon.com/serviceCapture/
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Relational operators - under the hood

    Greetings
    I'm interested in learning about the under the hood mechanics of relational operations ( =, <, > etc.) as they apply to integers in java. Presumably they use some kind of bitwise comparison? Left to right, right to left, that sort of thing. Anyways, if anyone can provide a link to some documentation on the subject, i'd be grateful
    Thanks.

    JoachimSauer wrote:
    jim_VH wrote:
    I'm interested in learning about the under the hood mechanics of relational operations ( =, <, > etc.) as they apply to integers in java. Presumably they use some kind of bitwise comparison? Left to right, right to left, that sort of thing. The JVM spec and the Java language specification don't require any specific implementation. They only require a specific result.
    And pretty much all JVMs wll delegate those tasks to the CPU where they will be implemented in hardware. How exactly the hardware implements those operations depends on which CPU you use.
    Anyways, if anyone can provide a link to some documentation on the subject, i'd be gratefulWhy do you ask? What do you think you can gain from that knowledge?Well, I have a hobby project involving gaming decision trees in which as many such operations as possible need to be performed under time constraint. And I have noticed differences in the way certain operations perform.
    Various states are represented by integers. Decisions about which integers to use will in turn influence the type of operations that will be performed, which in turn have small effects on the time needed to evaluate or test for these conditions.
    Basically I am micro-optimizing. For the fun of it. A tweak here and a tweak there can add up. So I just wanna know what's going on.

  • "for each" loop - under the hood question

    Question about the for each loop. Is it optomized? I think this is a poor use of memory management -
    for (int i = 0; i < stop; i++) {
    Object obj = new Object();
    doSomething(obj);
    }And this is the ideal, using the same object -
    Object obj = new Object();
    for (int i = 0; i < stop; i++) {
    doSomething(obj);
    }So underneath the hood, which is the for each loop comparable to? I love the syntax, it's very clean-looking in the code, but at the same time I don't want to hurt performance.

    Question about the for each loop. Is it optomized? I
    think this is a poor use of memory management -
    for (int i = 0; i < stop; i++) {
    Object obj = new Object();
    doSomething(obj);
    }And this is the ideal, using the same object -
    Object obj = new Object();
    for (int i = 0; i < stop; i++) {
    doSomething(obj);
    }So underneath the hood, which is the for each loop
    comparable to? I love the syntax, it's very
    clean-looking in the code, but at the same time I
    don't want to hurt performance.That depends on YOU. You CANNOT write a for-each loop for the code you provided. A for-each loop requires an Iterable. (I think that's what it requires--it at least requires something to iterate over, not just an index variable as you have.)
    Consider the following, however:
    Object o1 = new Object();
    for (Foo foo : fooList) {
        Object o2 = new Object();
         foo.doStuff(o1, o2);
    } It will be equivalent to this:Object o1 = new Object();
    for (Iterator iter = foo.iterator(); iter.hasNext();) {
        Foo foo = (Foo)iter.next();
        Object o2 = new Object();
        foo.doStuf(o1, o2);
    } How could it be any different? It has to keep the behvior of the "old fashioned" iteration.

  • What is going on "under the hood" of the 'Wait Until Next ms Multiple' vi?

    Hi,
    This question is really for the developers of LabVIEW, and I don't know if they are willing to divulge what might be considered "trade secrets". Anyway, I just thought there's no harm in asking.
    I use the Wait Until Next ms Multiple vi and it works great. For example, if I set my program to output a character on the serial port every 20 millisecond (mS), and check the output on an oscilloscope, I see the output at 20 +/-2 mS (that is, 18 to 22 mS). That's quite good and is all that can be expected on a PC running a non-real-time OS such as Windows.
    My question is this: Since the default Windows timer has a tick rate of 15.625 (1/64th of a second) (some PC's may default to 10 mS), how does LabVIEW attain roughly 1 mS accuracy? If the same thing is coded in any .NET framework program, such as C# or Visual Basic using any of the available timers (the System.Windows.Forms timer or the .System timer), the timer interval may be set in 1 mS increments, but if you time it you will see it actually has a granularity of 15.625 mS. So instead of getting 20 mS I get 2 ticks, or about 31 mS. So I can get an output every 15.6, 31, 47, 62.5, etc. but nothing in between.
    The System.Diagnostics.Stopwatch timer can be use to time code with very high resolution, or to create a high-CPU usage delay loop, but I haven't been able to find an easy way of generating an interrupt (timer tick) at say 1 mS. There are Win API functions that can set the timer to 1 mS on XP and 0.5 mS on Windows 7 and 8 Microsoft, but I have not tried them. (They come with the caveat that another program or process can come along and reset your timer!) There is the "multi-media" timer (now the HPET or High Performance Event Timer"), but it is meant for sound and video at the driver/kernel level, and not for the UI level, as LabVIEW or C# are.
    So how does the 'Wait Until Next ms Multiple work? It obviously is timer interrupt-driven because it yields to other processes (which is a primary reason for putting it in your overall While loop). And is it guaranteed on all recent OS versions (mine was timed on an dual core XP OS)?
    Thanks for any insight.
    Your typical curious engineer,
    Ed

    Ian,
    Thanks for your reply. Yes, I'm sure LabVIEW uses the (default) Windows timer. And yes, 1 mS is not guaranteed due to the preemptive nature of Windows (and even "RTOSs" to varying degrees), which is why I see about plus or minus 2 mS. 
    Apparently the Windows timer can be set by API calls. See: http://www.lucashale.com/timer-resolution/. Here's a screen shot of his TimerResolution.exe on a Windows 7 PC:
    Here it is on my Windows XP PC after I set it to "Maximum" (initially it was 15.625 mS):
    Notice that it sets the Maximum to less than 1 mS, which is supposed to be the max, so there are some bugs. Plus the Default button does not reset it in XP, but does work on Windows 7 or 8. (I know this is not the place to "debug" non-LabVIEW applications!)
    I'll bet LabVIEW sets it, too. The only caveat, as I said, is it looks like another application can change it, since the hardware timer is a "global" timer. I have not seen this issue in my LabVIEW applications, have you?
    I guess I need to do some more digging to see the code to set the timer, but it looks like the developers of LabVIEW have it figured it out.
    (FYI, I did notice that running my LabVIEW app (which gives about 2 mS resolution) or a C# app, which gives 15.625 mS resolution, does not affect what TimerResolution.exe reports, so I'm not sure if it's really working correctly. If I figure it out I'll post the results.)
    Ed

  • AD RMS under the hood

    Hi, I have implemented AD RMS (Windows Server 2008 R2) in test environment and done some tests by protecting Word 2013 documents and Outlook 2013 emails. Everything worked as expected. Nevertheless I want to know what is going on behind the scenes (how
    AD RMS protects and consumes documents). All these certificates, licenses, encryption/decryption, signing . . . I have found many articles on the net but they differ so I need detailed and precise explanation in order to fully understand AD RMS technology
    since I am not a next - next - next - install system engineer.

    This doc may help you...
    http://docs.oracle.com/cd/E21764_01/doc.1111/e15866/model.htm
    Cheers,
    Vlad

  • Under the hood of a Proxy Service WS Endpoint

    I have a Proxy Service that is published as a SOAP Service using a contract first approach.
    My question: when deployed in the OSB, what exactly happens? Is it deployed in the WLS Webcontainer or the EJB Container?
    My second question: when constructing a Java Callout Service, which I access from the flow of the Proxy Service (which again is published via a WS endpoint), can I access properties from the JEE context -> e.g. getPrincipal?
    Edited by: user9961531 on Mar 6, 2013 6:17 AM

    This doc may help you...
    http://docs.oracle.com/cd/E21764_01/doc.1111/e15866/model.htm
    Cheers,
    Vlad

  • Oracle Clusterware 11g Release 2 - a first glimpse under the hood

    Can OCR 11.2 in ASM hold user datafiles?

    Hey Andy,
    In previous releases, OCR was supposed to have 100MB in size and no other data was supposed to be stored on the same disk.
    My question refers for a 36GB device that will be split in 2 partitions one for OCR and the rest is free to be used for something else. Can I used the 35 GB left from that disk for ASM to store user data files? for example to be used +DATA
    Thanks,
    Terry

  • Deep-dive on the #RetroThinkPad - what do you want under the hood?

    Your say is needed, more than ever. Let us know what you want.

    I don't know that there is a "better" place to post this question since you seem to be wide open to possibilities. I think an iMac would be a good choice. It already is a CD/DVD player & you can access internet radio through iTunes. For over-the-air (OTA) radio you could get the Griffin Radio Shark. For OTA TV, Elgato gets high praise. Formac also has some options, but they tend to be more expensive.

  • IPS 4270-20 error codes under the hood 01 and 51

    I have no console access and no mgnt port access... trying to get into a spare box we have ... I turn it on , and I have no access ??? Is there a special or different DB9 cable I need??? Is it possible the console and mgnt ports have been configured to not allow access , or this unit is DEAD   again I have two error codes on the LCD display one reads 01 then flashes 51 and back and forth  any help thanks all

    If your unit has a serial port, you can connect to it in multiple ways. For more details specific to your model, see the following link (steps 5 and 6):
    http://www.cisco.com/en/US/docs/security/ips/7.0/installation/guide/hw_installing_4240_4255.html
    Regards
    Farrukh

  • Does my powerbook have enough under the hood?

    Hi all,
    My iMovie file size is 22GB. It is just over 60 minutes long.
    I have not been able to burn this project to a DVD.
    iDVD processed the video okay but it got hung up on the audio (spinning beach wheel and "program not responding").
    I'm using a powerbook G4 with a 1.67 processor and 1 GB of Ram. I'm running Mac 10.4.8
    iMovie performance during production has ranged from mediocore to poor.
    So I guess my question is: Would a computer upgrade be the answer for me? (I have to create similar projects for my home business)
    Perhaps a G5 iMac with 3GB Ram?
    Any sage advice from you folks would be mucho appreciated!
    Mike

    Hi Karl,
    I'm doing what you said even as we speak --- it looks to be an all night affair though (as I said performance is sluggish).
    I'll let you all know how it turns out.
    Thanks so much for all your help!
    Mike
    Welcome to the forum, Mike.
    As Matt said, your Mac is probably fine. His other
    suggestion that there may not be insufficient free
    disk space is excellent. If that isn't the problem,
    here's a couple other things to consider.
    A. When iDVD has a problem burning a DVD, user
    reports here suggest the problem is often with the
    project's audio. I don't think anyone knows exactly
    what causes it.
    The problem can usually be resolved by exporting the
    project's audio to an AIFF audio file, then
    re-importing that file back into the iMovie project.
    You then place the re-imported audio in its own audio
    track, mute the video track and mute the other audio
    track.
    Exporting "flattens" the audio, making it easier for
    iDVD to handle.
    To export the audio of the project, do this:
    1. Choose File > Export.
    2. From the "Compress movie for" popUp menu, choose
    "Expert Settings". Click Share.
    3. In the Save File dialog that opens, choose "Sound
    to AIFF" from the top popUp menu and "44.1 kHz 16 bit
    Stereo" from the bottom popUp menu. Name the file and
    click Save.
    4. Import the exported AIFF file to the iMovie
    project.
    B. You said performance is sluggish. That too also be
    related to the audio. If the project has lots of
    audio clips that can cause playback problems. They
    vary from a minor inconvenience to no playback at
    all. There's a (long) discussion of the problem here,
    with workarounds:
    http://discussions.apple.com/thread.jspa?messageID=259
    7033#2597033
    Karl

Maybe you are looking for

  • Getting Time out Error in ZReports..

    Hi, I am getting timeout error whenever I am trying to run a report. This error is coming only in case of ZReports. These programs are of different modules, like SD, FI and HR. Standard reports and programs are running fine. Any solution ??? Priyanka

  • Enqueue purchase requisition with worklfow

    Hello, i have a workflow for pur. req.. It works fine. Now I have to enqueue the pur. req. at start of the workflow and to dequeue it at the end. Therefore i created two methods (enqueue and dequeue) for the subtype of bus2105. The methods are callin

  • Best Way To Setup SGD With RSA Authentication

    At the moment, I've got RSA Authentication working with SGD 4.60-911. Now under my setup, I've manually created a user profile and assigned a couple of Terminal Server sessions to it and everything is working. I'm not sure if this is the best or, mor

  • Problems with OCR and OracleCSService

    Hi, Sorry for my English, but I am not a native English speaker. I installed Oracle 10g Release 1 on a Windows XP Pro SP1 System. So far everything works fine, but already during the installation I got two error messages: First the OCR (Oracle Cluste

  • Frequency of running a program

    Hi Guys, How can I know what is the frequency of a program ran in SAP ? I  need to know when it is running/how often. Thanks.