Re: Console app freezes

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Michael--J (MichaelJ_at_discussions.microsoft.com)
Date: 12/20/04


Date: Mon, 20 Dec 2004 15:51:01 -0800

Would it matter if my app was only a console app. Isn't the Application class
found within the System.Windows.Forms namespace? Thanks.

"NOtcarvinSPAM@lycos.com" wrote:

> I've found in my .NET TCP/IP projects (on Pocket PC) that the sockets
> can starve very easily if there is a lack of system idle time. I
> actually had to put in Application.DoEvents into my communication code.
> I can only assume the TCP/IP classes use hidden windows for internal
> messaging and the message pump was getting backlogged. Use great
> caution with the DoEvents, you don't want to over do it.
>
> HTH,
> Tom C.
>
>



Relevant Pages

  • Re: Console App trying to do a ChDir?
    ... > I have a Console App and I want it to do the equivalent of a Change ... > Directory command that you would do in normal command line mode as ... > in that namespace that will physically change the directory. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Console App trying to do a ChDir?
    ... > I have a Console App and I want it to do the equivalent of a Change ... > in that namespace that will physically change the directory. ... Why not use ChDir from the Microsoft.VisualBasic namespace (in ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: CAsyncSocket notifications in Console MFC application
    ... you could create a separate thread in a console app and run its message pump. ... that has a message pump (this make it a UI thread, but you can't use MFC for the reasons ... WSAAsyncSelect is how CAsyncSocket is implemented. ...
    (microsoft.public.vc.mfc)
  • Re: Adding a tray icon for a console app?
    ... The problem with the console app is that there is no pump for windows ... You could run a message pump in a separate thread, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: DLL that can create windows
    ... You could do this in a DLL by creating a UI ... >irrlicht library and call one function from a console app - how is ... >using namespace core; ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)