Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Build 145

2009-12-08
2013-06-12
  • Hi all,

    I've released a new build, 145. It includes akirill's proposed patch for Win7 lockups. Please test and report.

    Cheers,
    Marko

     
  • Launched it half a dozen times, main tab is MKS Korn Shell, seems to work fine, but once I had stdout but no keyboard input: is this the kind of "lockups" you are supposed to have fixed?

     
  • Derell Licht
    Derell Licht
    2009-12-09

    Akirill is my *HERO*  !!!!
    Oh, this is wonderful, life is good again.
    I have three console open in C2 now, all running tcc/le 11, everybody seems to work fine.  Windows 7 Home Edition, 32-bit, user account.
    I'll let all know if anything funny happens later.

    purr purr purr purr purr purr….

     
  • I am a new user of it but I do not see any lockup problems on x64 Win7

     
  • Michael Kairys
    Michael Kairys
    2009-12-11

    Sadly this has not worked for me. I still have the problem on each of two Win 7 installations, one of which I am just now building up from bare metal.

     
  • Kirill
    Kirill
    2009-12-13

    Michael,

    due to my mistake (or rather unintentional omission), I believe, Marko did not kill all troublesome lines. You can try my

    Marko, I'll submit a patch shortly, but basically on scroll event and mouse event ResetEvent(hStdOut) is still called. If it's indeed a culprit, it may make a difference for Michael.

    As mentioned on the site, it should never hang on Win7, but your feedback will be much appreciated.

    • Kirill

      : http://kirill.ca

     
  • Michael Kairys
    Michael Kairys
    2009-12-13

    Ah hah! Oh ho! Hee hee! Your version works for me; thanks!

     
  • Kirill,

    I have removed the two ResetEvent calls and I'll upload the new build shortly.

    I will also add x64 build to Console2 project. Are there any changes that need to be done to the source code in order to build it for x64?

    Cheers,<br>
    Marko

     
  • Kirill
    Kirill
    2009-12-15

    Marko,

    I've just added patch 2914573 Enable x64 build of Console. In short:

    - you need to modify one of FreeImage files;
    - you may need to modify the manifest;

    • Kirill.
     
  • Paul Moore
    Paul Moore
    2010-01-14

    There seems to be a problem with build 145 on XP (not tested on any other version of Windows, so it may not be XP-specific). My startup tab has an image background with "stretch" set on. When I start console2, the image is sized wrongly, with a black area on the right and bottom sides of the tab. If I resize the tab, the image gets resized to fit.

     
  • I hate to say, but I still get lockups with build 145 on Win7 Ultimate - shell being MKS Korn Shell. I have to launch a new tab, and close the hung one. Feel free to ask for troubleshooting (I'm an experienced developer myself).

     
  • Stephane,

    I'm aware that b145 hasn't fixed the problem completely. The fix will be available in the next build. You can try cloning the Console git repo from here or from Github and test it (the fix has been committed)

    Cheers,
    Marko

     
  • Kirill
    Kirill
    2010-01-19

    Stéphane,

    by the way, did you try my build, mentioned in 6? Does it work better for you?


    Kirill.

     
  • To: Kirill

    Nope, will do that and report back

    --

    Stéphane

     
  • Lockups are still occurring. Seems to be linked with resuming from sleep or hibernation…

    I could try capturing a minidump of Console's process when this happens, but to make any use of it I would need the PDB file.

    Or: given that I have VS2008 handy you could provide me with very precise instrux on 1) how to get a complete source tree 2) how to build… but I cannot commit I'll have the bandwidth available to debug this myself…

     
  • I got more lockups, unrelated to sleep/hibernation:
    - one at startup: the shell displayed its startup messages and prompt, then… no keyboard input
    - I was running a script, hit Ctrl+C to stop execution, this returned me to a shell prompt… with no keyboard input

     
  • Kirill
    Kirill
    2010-01-21

    Marko, could you please make both win32 and x64 versions of FreeImage*.dll available?

    Stéphane,

    At first, your help is greatly apprciated!

    Here is instructions (if they are not precise enough, please, don't get discouraged, and just let me know):
    1. Download boost (choose your preferred packaging at https://sourceforge.net/projects/boost/files/boost/1.41.0/)
    2. Add the path to extracted boost (e.g. c:\download\boost_1_41_0; that's the folder that contains the boost folder) to Include Files of VC++ Directories (alternatively you can change the project settings to add that directory to Additional Includes).
    3. Depending on whether you already have WTL and TabbingFramework installed, you can:
        a. If you do, Download Source from http://github.com/bozho/console
        b. Otherwise, download http://cloud.github.com/downloads/akirill/console/akirill-console-5dfed09-wtl.zip
    4. Build the Console2.sln
    5. Make sure that you have console.xml, FreeImage.dll and FreeImagePlus.dll in your $(OutDir) folder (I made sure that they're included in 3b, but I have them only for Win32).

    You should be all set to run.

    Note: I'm always confused by different ways people extract zip files. So, in case of boost, please, be prepared to play with the level of include directories.

    Source of the version, available from my site, is not yet available, but I'm working on it.

    Once again, thank you!


    Kirill.

     
  • x64 FreeImage DLLs are in my last commit here and on github. They are in setup\dlls\x64 directory.

    • Marko
     
  • Have my private build up and running, waiting for the debugger to attach to it…

    Where should I look for the part that gets keyboard input and passes it to the hidden console app?

     
  • Just to keep you posted: so far, my private DEBUG build hasn't locked up on me…

     
  • Kirill
    Kirill
    2010-01-29

    Stéphane,

    It is sounds promisingly scary :)

    Are you always running it with a debugger attached? Are you going to try a release? Do you have SP1 on top of your VS2008?
    And could you please remind us whether you use x86 or x64 Win 7 Ultimate? And, if latter, whether you're running x86 Console in WOW64?


    Kirill.

     
  • Or is it scarily promising? ;-)

    I don't run with the debugger attached ('cos I know this would modify the behavior).

    My VS2008 has SP1 and all hotfixes that Microsoft Updates provides:

    QUOTE

    Microsoft Visual Studio 2008
    Version 9.0.30729.1 SP
    Microsoft .NET Framework
    Version 3.5 SP1

    Installed Edition: Enterprise

    Microsoft Visual Basic 2008   91904-270-1339183-60896
    Microsoft Visual Basic 2008

    Microsoft Visual C# 2008   91904-270-1339183-60896
    Microsoft Visual C# 2008

    Microsoft Visual C++ 2008   91904-270-1339183-60896
    Microsoft Visual C++ 2008

    Microsoft Visual Studio 2008 Tools for Office   91904-270-1339183-60896
    Microsoft Visual Studio 2008 Tools for Office

    Microsoft Visual Studio Team System 2008 Development Edition   91904-270-1339183-60896
    Microsoft Visual Studio Team System 2008 Development Edition

    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V.  All rights reserved.

    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company.  Electronic version licensed from Lernout & Hauspie Speech Products N.V.  All rights reserved.

    Microsoft Visual Web Developer 2008   91904-270-1339183-60896
    Microsoft Visual Web Developer 2008

    Crystal Reports    AAJ60-G0MSA4K-68000CF
    Crystal Reports Basic for Visual Studio 2008

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB944899)   KB944899
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/944899.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB945282)   KB945282
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/945282.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946040)   KB946040
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/946040.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946308)   KB946308
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/946308.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946344)   KB946344
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/946344.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946581)   KB946581
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/946581.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947171)   KB947171
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/947171.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947173)   KB947173
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/947173.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947180)   KB947180
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/947180.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947540)   KB947540
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/947540.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947789)   KB947789
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/947789.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB948127)   KB948127
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/948127.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB953256)   KB953256
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/953256.

    Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB971092)   KB971092
    This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/971092.

    Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1 (KB945140)   KB945140
    This service pack is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this service pack will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/945140.

    Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1 (KB947888)   KB947888
    This service pack is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this service pack will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/947888.

    Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1 (KB948484)   KB948484
    This service pack is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this service pack will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/948484.

    Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1 (KB948560)   KB948560
    This service pack is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this service pack will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/948560.

    Security Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB972222)   KB972222
    This security update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this security update will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/972222.

    Security Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB973675)   KB973675
    This security update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this security update will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/973675.

    Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB956453)   KB956453
    This update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this update will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/956453.

    Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB967143)   KB967143
    This update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
    If you later install a more recent service pack, this update will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/967143.

    UNQUOTE

    I will create a release build *with* debug information and run that for a while. Sounds like a plan?

    My machine is running x86 W7 Ultimate

     
  • Stéphane,

    First of all, sorry for a late answer…

    I don't know how far you've progressed, but here are some pointers.

    In general, when Console starts a new tab (ConsoleHandler::StartShellProcess in Console project), it starts a new suspended shell process with a hidden Windows console window. After that, it creates a few shared memory objects  (ConsoleHandler::CreateSharedObjects in Console) and injects ConsoleHook.dll. ConsoleHook will start a separate monitor thread in the shell process (ConsoleHandler::StartMonitorThread in ConsoleHook project). ConsoleHandler::MonitorThread in ConsoleHook monitors a few events, one of them is shell process' stdout.

    When monitor thread detects a change on stdout, it will sleep for a short time (10ish ms) and then read console window's output buffer. It will also read console's output buffer every 50ish ms (WAIT_TIMEOUT case in ConsoleHandler::MonitorThread) since some console apps write directly to the output buffer and don't trigger stdout.

    I hope that's enough to get you started.

    BTW, I've created a 'Development' forum for this kind of discussion. We could move there…

    Cheers,
    Marko