JIT Compilation for win form app

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Big D

    JIT Compilation for win form app

    I am working on a win app, and when testing it, I encounter an error that
    results in a dialog opening and giving me a generic error (object ref not
    set to instance of an object or the like). It doesn't tell me what the ref
    or obj is, and doesn't give me a line number. Isn't this part of JIT??? I
    get that when working in ASP.Net apps.

    I am building it in debug mode.

    My Machine.config file in 1.1 is updated to inclue <system.windows .forms
    jitDebugging="t rue" />, but that had no effect. There is no
    Applicaiton.con fig file that I can find that is generated by studio... if it
    exists, does it superceed the setting is Machine.config?

    Isn't studio considered a JIT Debugger? I guess I don't understand. ;-)

    Thanks,

    MCD


  • Alvin Bruney [MVP]

    #2
    Re: JIT Compilation for win form app

    No, it's running your code and finding a null reference to an object.
    Compile the code, before you run it, press CTLR + ALT + E, then Alt + B,
    then Enter. That will stop you at the point of exception. To remove:
    CTLR + ALT + E, then Alt + O, then Enter

    --
    Regards,
    Alvin Bruney [ASP.NET MVP]
    Got tidbits? Get it here...

    "Big D" <a@a.com> wrote in message
    news:ejZMH1tAEH A.712@tk2msftng p13.phx.gbl...[color=blue]
    > I am working on a win app, and when testing it, I encounter an error that
    > results in a dialog opening and giving me a generic error (object ref not
    > set to instance of an object or the like). It doesn't tell me what the[/color]
    ref[color=blue]
    > or obj is, and doesn't give me a line number. Isn't this part of JIT???[/color]
    I[color=blue]
    > get that when working in ASP.Net apps.
    >
    > I am building it in debug mode.
    >
    > My Machine.config file in 1.1 is updated to inclue <system.windows .forms
    > jitDebugging="t rue" />, but that had no effect. There is no
    > Applicaiton.con fig file that I can find that is generated by studio... if[/color]
    it[color=blue]
    > exists, does it superceed the setting is Machine.config?
    >
    > Isn't studio considered a JIT Debugger? I guess I don't understand. ;-)
    >
    > Thanks,
    >
    > MCD
    >
    >[/color]


    Comment

    Working...