Sunday, March 16, 2014

Dev-C++ 5.6.2 released

A newer version is available!

Time for more fixes for the 5.6.x series.

Changes - Version 5.6.2 - 16 Maart 2014
  • Updated Japanese language files.
  • Templates can now now not set the built in compiler settings anymore when creating a project. Instead, compiler settings are set by the current compiler profile.
  • Fixed checkboxes in Tools >> Editor Options >> Completion >> Symbol Completion being unchecked instead of disabled/greyed when "Enable symbol completion" is changed.
  • Added some margin above the progress bar at Tools >> Editor Options >> Completion >> Code Completion.
  • When the Consolas font is unavailable, Dev-C++ will now try to use Courier New as the editor font instead of the alphabetically first font.
  • Fixed an undo bug in Move Selection Up/Down.
  • Fixed a bug that cut off toolbars around 800 pixels on 1024 pixel wide resolutions.
  • One can now change the shortcut for code completion in Tools >> Configure Shortcuts.
  • Fixed an out of bounds error in TCppParser when parsing incorrect code.
  • Fixed a formatting error when printing structs inside struct in the Debug watch variable tree.
  • Increased performance of the GDB interface.
  • Hopefully fixed the infamous "Thread Error" exceptions.

Download
  • The setup which includes MinGW32 4.8.1 can be downloaded here (63MB).
  • The setup which includes TDM-GCC x64 4.8.1 can be downloaded here (47MB).
  • The setup which does not include a compiler can be downloaded here (2MB).
  • The portable version which includes MinGW32 4.8.1 can be downloaded here (36MB).
  • The portable version which includes TDM-GCC x64 4.8.1 can be downloaded here (34MB).
  • The portable version which does not include a compiler can be downloaded here (2MB).
  • The latest tested compilers can be downloaded here.
  • Lastly, the source code can be found here (1MB).



Choosing between 32bit and 64bit
  • The 64bit compiler will fully work op 32bit systems.
  • The 64bit compiler can create 64bit and 32bit executables and DLLs.
  • The 64bit compiler currently provides much more headers and libraries.
  • The 32bit compiler can only create 32bit executables and DLLs.

31 comments:

  1. Thank you for your work!

    Here is new Japanese language file for Dev-C++ 5.6.2 :
    http://kie.nu/1LaU
    (including translation for new messages and improved some messages)

    ReplyDelete
  2. Does this version finally add autosave? if so; how do I turn it on?

    ReplyDelete
    Replies
    1. You can find it here "Tools -> Editor Options -> Autosave".

      Delete
  3. Where can I get information about using basic graphics ? Installing header files etc ?

    ReplyDelete
  4. This version of Dev-C++ freezes sometimes when I try to save a source file.
    When it occurs, the file isn't saved.
    I don't have any further idea about how to reproduce this bug yet.

    ReplyDelete
  5. Dev-C++ couldn't reload opening source files automatically when them were modified by external tools (e.g. source code format tools like AStyle etc.).
    Someone found the issue here(http://sourceforge.net/p/orwelldevcpp/forums/general/thread/91c57d5b/), but never solved until now.

    ReplyDelete
  6. The domain name for http://www.bloodshed.net/ has expired. Couldn't you purchase this domain and continue the project from there?

    ReplyDelete
  7. Best editor for windows.
    * Plz give the option to put the class browser in the right side of window.
    * Make tab look like chrome tab style.

    ReplyDelete
  8. Incredible post and extraordinary sight with truly better purposes of C++ modifying. I have hugely appreciating experiencing all your blog entries.

    Best Web Design // Affordable Web Design

    ReplyDelete
  9. Can't we disable the "edit text size by using Control+Scroll" function?
    I almost never use the function, and it sometimes works by accident, so I feel a bit uncomfortable.

    ReplyDelete
  10. Thank you very very much!
    You are amazing!
    Good thing you have this blog and our updated correctly!
    Keep it up! :) Again thank you very much!

    ReplyDelete
  11. When opening a project in Dev-C++, it sometimes takes a long time due to the need to parse the header files for the code completion feature. I would like to keep using the code completion feature and I understand it is possible to edit the list of cached headers, but wonder if a feature could be added to automatically cache all the files it scans and/or if it could allow adding a whole directory *recursively* to the list of headers to cache (otherwise it will take forever to tell Dev-C++ to cache the Boost library)! Many thanks.

    ReplyDelete
  12. I've encountered 2 bugs in 5.6.1 but aren't mentioned in the list. ( One messed up my code almost completely)
    Let's see if I can reproduce the bugs in 5.6.2. I'll let you know.
    And of course, thank you for doing this. Very much appreciated.

    ReplyDelete
  13. Why v5 haven't include c++ language documentation files? I mean data avablive in v4 in help

    ReplyDelete
  14. This is amazing, but when i open archive.c this open a new windows, but when i open archive2.c this open in a new window not in a new tab, how can i fix that?

    Thanks

    ReplyDelete
  15. Needs split in code editor, like in Visual Studio. http://choorucode.files.wordpress.com/2009/11/2009_11_03_visual_studio_vertical_split.png?w=676

    ReplyDelete
    Replies
    1. Perfect IDE, but i can't work without split :(

      Delete
  16. I am using Dev-C++ version 5.6.2. How do I change the Watch window format to hexadecimal?

    P.S. I didn't know this version existed until today.

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete
  18. Hi,

    I recently had some problems with the console pauser. After investigation, I found that it had problems with programs that have spaces in their path name. After reviewing the source code for the console pauser, I found that it did not quote the program file path when passing it to 'CreateProcess'.

    And so I "repaired" it (not even sure there was a real problem in the first place) by putting every argument in double quotes in the command string before passing it to 'CreateProcess'. I also used 'system("pause")' instead of a hard coded wait message and 'getch', so that the message would be the same as the one Windows shows (in the user's OS language).

    I also "modernized" the code by using real C++ (std::string, std::cout, string streams, nullptr, etc) instead of C. Not sure everyone will appreciate it, though...

    Anyway, here is a link to my console pauser and the source code. Do whatever you want with it, if you think it is worth something.

    https://dl.dropboxusercontent.com/u/108677920/ConsolePauser.zip

    ReplyDelete
    Replies
    1. Thanks! Had the same problem.

      Delete
    2. Here's the fixed version. Hope you like it.
      http://pastebin.com/xbNZGkHx

      Delete
    3. Edit: simply wrapping each bit of argument in double quotes willl not magically fix problems with path names wrapped in quotes.

      To clarify, the following command is sent by Dev-C++ to ConsolePauser.exe:

      C:\DevDirectory\ConsolePauser.exe "C:\Directory\ProgramToRun.exe"

      The actual program to be executed which is stored in argv[1] for ConsolePauser.exe is already enclosed in quotes. However, when DevDirectory contains spaces, things might go wrong when executing ConsolePauser itself. I have now added quotes around that (you can find the offending piece of code in devExec.pas. line ~100):

      "C:\DevDirectory\ConsolePauser.exe" "C:\Directory\ProgramToRun.exe"

      I have updated ConsolePauser to use more up to date code, but I have not implemented the quote-all fix.

      Besides, would you mind to provide a test case for the bug in question?

      Delete
  19. Thanks for the fix, I did not think about the way Dev-C++ calls the pauser.

    As for a test case, it happened whenever there was a space in the called program's path. It did not matter wrether the Dev-C++ directory had a space in its name, or even if pauser was called from the IDE : I had the same problem when using the pauser directly from a terminal (PowerShell in my case).

    After debugging the original code some more, I found the line responsible for the crash. It was not even related to the space in the path, although that dreaded space was a trigger. In the function 'GetErrorMessage', when 'FormatMessage' is called, the following arguments are passed :

    FormatMessage(/* First 4 arguments here */, (LPSTR)&result, size, NULL);

    'FormatMessage' is passed the address of the variable 'result' - the buffer for the message - instead of its value. The function then tries to write the message on this address, which is on the stack frame of the function, changing the value of the 'result' pointer, making it point to some probable garbage. The call to 'strlen' then sparks an access violation when it tries to access the memory pointed by 'result'. When I removed that extra ampersand, the console pauser did not crash and printed the expected Windows error message, i.e. "%1 is not a valid Win32 application." (or something like that, my OS is in French).

    Anyway, you removed that bug in your fix by using a 'std::string' and passing the address of its data array to the function instead of using a stack-allocated raw buffer.

    The weird thing is that I have been using your IDE for over a year, and I never had this problem until a few days ago. None of my path names had changed either.

    ReplyDelete
    Replies
    1. FormatMessage requires the address of the rsult buffer, not its value. That piece of code is correct.

      I've implemented a fix in the code of Dev-C++ itself that double quotes the program-to-ben-run path, but have removed double the double-quotes-around-everything fix in ConsolePauser because it should only quote the program path, not the command line parameters too.

      I'll release 5.6.3 in the coming couple of days. If the bug persists, feel free to open a ticket here:
      https://sourceforge.net/p/orwelldevcpp/tickets/?source=navbar

      Delete
  20. One little thing I would like to see is the running time of the program after it has executed. Thanks in advance!

    ReplyDelete
  21. Dear all! I set up newer version of Orwell-devcpp from 5.3+ (or something) to the newest version... I got an error pop-up said "No found CD in drive" while the application run loading screen(flash screen) during scan of MinGW32/bin files. Help! thanz!
    now I still use version 5.2.0.1 :-(

    ReplyDelete
  22. excuse me, how can i get Dev-C++ 5.6.2 graphis.h?? help me, please.

    ReplyDelete