Menu

#103 Error opening .hpp files with templates

None
fixed
2014-01-28
2013-12-07
IGR2013
No

Good day. There is some bug found in new versions since v5.5.
When I trying to open my header files writen on C++ with templates and their partial specialization, application crashes or just freezes, so I used to call Task Manager.
Here is some information about OS and Dev C++.

Version: 5.5.3
OS version: Windows 8.1 professional x86
Error reported: IGR
Steps needed to reproduce the problem: open single .hpp file with templates and their partial specifications.

Some more information from app:

Error info

Version : 5.5.3
Build Time : November 5 2013 - 19:35
Message : Invalid pointer operation
Address : 0x00102E28

Machine info

Platform : Windows NT
OS version : 6.2 (build 9200)
Computer Name : IGR

Stack trace

0020F85E (0010E85E): TExceptionFrm.GetStackReport (ExceptionFrm - 392)
0020EBE2 (0010DBE2): TEAnalyzer.EHandler (ExceptionFrm - 139)
0020ECD0 (0010DCD0): TEAnalyzer.EHandler (ExceptionFrm - 148)
0020ECD0 (0010DCD0): TEAnalyzer.EHandler (ExceptionFrm - 148)
0020EC24 (0010DC24): TEAnalyzer.EHandler (ExceptionFrm - 146)
0020EC4E (0010DC4E): TEAnalyzer.EHandler (ExceptionFrm - 146)
001CC16F (000CB16F): TCppTokenizer.Reset (CppTokenizer - 137)
001D390F (000D290F): TCppParser.Reset (CppParser - 1774)
00240F13 (0013FF13): TMainForm.CloseEditor (main - 1480)
002433E8 (001423E8): TMainForm.actCloseAllExecute (main - 2195)
0023E3EA (0013D3EA): TMainForm.FormClose (main - 958)
0023E3EA (0013D3EA): TMainForm.FormClose (main - 958)

Please, fix this bug as fast as you can.
My thanks

Discussion

  • orwelldevcpp

    orwelldevcpp - 2013-12-07

    This one has been fixed since a very early 5.5.4 build. I'll release a beta of that version 'soon' if all goes well.

    FYI, the problem is related to a buffer overflow in the tokenizer. If it creates tokens longer than 32767 characters, it will fail. This usually happens to the pattern recognition failure of template code.

     
  • IGR2013

    IGR2013 - 2013-12-07

    Thank you very much for the job, you've done.
    Hope, it goes well.
    And thanks for supporting this project.

    Best regards.
    Your thankful user.

     
  • IGR2013

    IGR2013 - 2013-12-07
    • status: open --> fixed
    • Milestone: -->
     
  • orwelldevcpp

    orwelldevcpp - 2013-12-08
    • status: fixed --> pending
     
  • orwelldevcpp

    orwelldevcpp - 2013-12-08

    Can I have the file that causes the problem?

     
  • orwelldevcpp

    orwelldevcpp - 2014-01-28
    • status: pending --> fixed
     
  • orwelldevcpp

    orwelldevcpp - 2014-01-28

    Fixed as of 5.6.x. Thanks for reporting.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.