© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago•
202 replies
axo

code builds but hangs while running

code: https://paste.pythondiscord.com/KTVQ

when i build it in release, everything works fine. but when i run in release, it just hangs and does nothing, even though all i'm doing is this:
class Program
{
    // ... <- nothing up here is run

    static void DisplayHelp()
    {
        string help = """
        This is a test help screen.

        What do you think?
        """.Trim();

        Console.WriteLine(help);
    }

    static void Main()
    {
        DisplayHelp();
    }
}
class Program
{
    // ... <- nothing up here is run

    static void DisplayHelp()
    {
        string help = """
        This is a test help screen.

        What do you think?
        """.Trim();

        Console.WriteLine(help);
    }

    static void Main()
    {
        DisplayHelp();
    }
}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

VS hangs while typing
C#CC# / help
17mo ago
❔ Code not running.
C#CC# / help
3y ago
✅ Problem running my code
C#CC# / help
3y ago
Can I add elements to an array while running the code?
C#CC# / help
3y ago