XNA Creators Club Online
Page 1 of 1 (13 items)
Sort Posts: Previous Next

CLR Profiler 2.0 does not work with XNA?

Last post 05-16-2008 2:57 PM by Joel Martinez. 12 replies.
  • 06-26-2007 2:04 AM

    CLR Profiler 2.0 does not work with XNA?

    I am having a problem with the CLR Profiler, that i downloaded here:
     http://www.microsoft.com/downloads/details.aspx?familyid=a362781c-3870-43be-8926-862b40aa0cd0&displaylang=en
    When i run my game with the CLR P. opens a box with the text "Waitng for application to start Common Runtime...". My game starts, but when i close the game CLR P. crashes :S.. My game is online, can that be the problem? Or is it a problem with XNA? I seached the forum, and i can see that other people have been able to use CLR P. with XNA

  • 06-26-2007 11:18 AM In reply to

    Re: CLR Profiler 2.0 does not work with XNA?

    I don't know what to suggest there. I've used the profiler many times without any trouble.

    Maybe you could try profiling some other XNA games or samples, to see if this is an installation problem or just something specific to your game?
    XNA Framework Developer - blog - homepage
  • 06-26-2007 2:41 PM In reply to

    Re: CLR Profiler 2.0 does not work with XNA?

     It seems like it works just fine for me aswell... Strange.

    And to hijack the thread: are there any good articles on how to use the CLR Profiler 2.0? I've found a few but they are mostly very theoretical and I would like to see some practical examples / instructions. It would also be nice with an XNA article on this because when I start to profile my little test application I get alot of information and tons of boxes and connections - I find it very hard to find anything useful at all from the output.

    And also, the CLR Profiler 2.0 only supports memory profiling? What is recommended as code profiling, I've only found Ants (commercial) and nProf.

    I would really like to learn these tools and take advantage of them, if you have any tips / recommendations on articles or approaches they are very welcome.

  • 06-26-2007 4:34 PM In reply to

    Re: CLR Profiler 2.0 does not work with XNA?

    After hours of work i finally got it working.. I dont know what was wrong but it works now :S.. Anyway good question Michael Söderman
  • 06-27-2007 6:54 AM In reply to

    Re: CLR Profiler 2.0 does not work with XNA?

    I just tried using to figure out what was stealing a bunch of memory in my game :p  It started up, I told it which exe to run, and it ran it, but the exe it was trying to run crashed.  It still outputted the reports, but I don't know how valid they are :/ 
  • 05-09-2008 12:21 PM In reply to

    Re: CLR Profiler 2.0 does not work with XNA?

    Reviving an old thread... I just had this happen to me (it worked before).  After a little playing around, I was able to spot in the allocation graph (where tons of strings were being created) from the short time before my game crashed, that there was an I/O exception thrown in the AudioEngine's constructor.

    So I tried running the CLR profiler from my game's directory and then it started working - so it seems like it isn't setting the correct current working directory when starting the game.

  • 05-09-2008 12:45 PM In reply to

    Re: CLR Profiler 2.0 does not work with XNA?

    Michael Söderman:

    And to hijack the thread: are there any good articles on how to use the CLR Profiler 2.0? I've found a few but they are mostly very theoretical and I would like to see some practical examples / instructions. It would also be nice with an XNA article on this because when I start to profile my little test application I get alot of information and tons of boxes and connections - I find it very hard to find anything useful at all from the output.


    It's not much, but you might find a blog post I wrote helpful.

    Eli Tayrien - XNA Framework Developer
  • 05-09-2008 2:37 PM In reply to

    Re: CLR Profiler 2.0 does not work with XNA?

    I've got an even worse problem than the OP. My game crashes on startup - I get no profiling at all, the game just goes kaboom. Anyone come across that and what did you do to fix it?
    Pandemonium, an occasionally updated blog about my game, XNA, games development, and the games industry; XapParse, a parser for XAP (XACT) files
  • 05-09-2008 2:58 PM In reply to

    Re: CLR Profiler 2.0 does not work with XNA?

    There are several versions of the .NET Profiler floating around (and available from Microsoft download) -- I know at least one works, and at least one doesn't work. Search the MSDN download area for the lastest version, and you should be OK.
    Jon Watte, Direct3D MVP kW X-port 3ds Max .X exporter kW Animation source code
  • 05-16-2008 1:31 AM In reply to

    Re: CLR Profiler 2.0 does not work with XNA?

    I've got the latest CLR Profiler and it's crashing for me too -- it only seems to happen when the game screen loads, not in the menus. I've got deadlines to meet, so I can't exactly construct a repro right now.... anyone have a clue whats causing it?
    Brandon Bloom

    Software Design Engineer
    XNA Community Game Platform
  • 05-16-2008 7:08 AM In reply to

    Re: CLR Profiler 2.0 does not work with XNA?

    Turned out for me the initial crash was in initialising XACT. No idea why - works fine when not using CLRProfiler. So I commented that out and tried again. Didn't crash, but didn't capture any data either (just sat there saying "waiting for CLR to start" or whatever). Not impressed so far, and the documentation is worse than useless. Basically, it just doesn't work as far as I can tell.
    Pandemonium, an occasionally updated blog about my game, XNA, games development, and the games industry; XapParse, a parser for XAP (XACT) files
  • 05-16-2008 2:54 PM In reply to

    Re: CLR Profiler 2.0 does not work with XNA?

    That's the problem I get when using the wrong version. Search for the 2.0 .NET CLR Profiler on MSDN downloads, and try more than one download. One of them will work (at least, it did for me, when I had the exact same symptoms as you).

    Jon Watte, Direct3D MVP kW X-port 3ds Max .X exporter kW Animation source code
  • 05-16-2008 2:57 PM In reply to