CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2007
    Posts
    609

    increase timeout for CSharpCodeProvider

    When using CSharpCodeProvider to compile code, is there a way I can increase the timeout? I have a test environment that is very slow and it takes more then 10 to compile then it just crashes. I need to just set it to unlimited.
    http://www.uovalor.com :: Free UO Server

  2. #2
    Join Date
    Jul 2007
    Posts
    609

    Re: increase timeout for CSharpCodeProvider

    Anyone know how to do this? This has become a large issue. 10 minutes is just not enough. I need to increase that. I keep having to restart the compile until it decides to take slightly under 10 minutes so it actually takes me 40-120 minutes to compile instead of maybe 12.
    http://www.uovalor.com :: Free UO Server

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: increase timeout for CSharpCodeProvider

    Any reason not to use MSBuild?

  4. #4
    Join Date
    Jul 2007
    Posts
    609

    Re: increase timeout for CSharpCodeProvider

    Quote Originally Posted by Arjay View Post
    Any reason not to use MSBuild?
    It's a special compiler built into the application. I just use csc.exe to compile the actual app, but the app then compiles the "scripts" into a DLL then loads it. Can MSBuild do that? Was not me that coded this app but perhaps I can make it better/more efficient by changing the compile sequence?
    http://www.uovalor.com :: Free UO Server

  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: increase timeout for CSharpCodeProvider

    Quote Originally Posted by Red Squirrel View Post
    It's a special compiler built into the application. I just use csc.exe to compile the actual app, but the app then compiles the "scripts" into a DLL then loads it. Can MSBuild do that? Was not me that coded this app but perhaps I can make it better/more efficient by changing the compile sequence?
    If you 'auto' produce source code, MSBuild should be able to compile it.

  6. #6
    Join Date
    Jul 2007
    Posts
    609

    Re: increase timeout for CSharpCodeProvider

    Actually I just thought of something. These C# scripts refer to objects that are only in the scope of the exe. So I don't think I can compile those scripts by calling up a program as all the object types wont be in scope. Ex:

    The core defines Mobile. The scripts define BaseCreature : Mobile. If I try to compile just the scripts it wont know what Mobile is. From looks of it msbuild is an exe that I would call up the same way I would call up csc.exe, so don't think this would work, unless there's some way to make it know what Mobile and such is.

    In fact if there's a way I can use csc it would be great as not only would I be able to provide some kind of time out, but the compiles would take seconds instead of minutes.
    http://www.uovalor.com :: Free UO Server

  7. #7
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: increase timeout for CSharpCodeProvider

    It's never clear to me why sometimes folks tend to code themselves into a corner. Good luck with getting this resolved.

  8. #8
    Join Date
    Jul 2007
    Posts
    609

    Re: increase timeout for CSharpCodeProvider

    Yeah well not me that made that app, I'm just using it and trying to make it better. IMO I would of not made the whole "script" thing and just compiled the entire thing into a single EXE. Much easier to manage, and faster to compile too. The csc app is WAY faster then the built in compiler in the app (which I think actually does use csc somehow)
    http://www.uovalor.com :: Free UO Server

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured