User forums > Using Code::Blocks

An unhandled exception ...

<< < (3/5) > >>

oBFusCATed:
Do the problem still happen if you disable optimizations? (set a global variable "cb_release_type=-g -O0")

LETARTARE:
No, no improvement

LETARTARE:
By finding out why 

--- Quote ---A remark : 'control->GetEOLMode()' return 0 (CRLF) while the file contains only 'LF' !
--- End quote ---
I replaced

--- Code: --- // control->ConvertEOLs(control->GetEOLMode());
--- End code ---
by

--- Code: ---control->ConvertEOLs(2);
--- End code ---
in 'Scintilla.h' we find

--- Code: ---#define SC_EOL_LF 2
--- End code ---

and then BINGO : it works, no more problems !!

It is therefore a bad detection of the end of line by

--- Code: ---int wxScintilla::GetEOLMode() const
{
    return SendMsg(SCI_GETEOLMODE, 0, 0);
}
--- End code ---
with Win32.

Gentlemen developers, to your keyboards!

stahta01:

--- Quote from: LETARTARE on July 04, 2020, 05:48:39 pm ---By finding out why 

--- Quote ---A remark : 'control->GetEOLMode()' return 0 (CRLF) while the file contains only 'LF' !
--- End quote ---
I replaced

--- Code: --- // control->ConvertEOLs(control->GetEOLMode());
--- End code ---
by

--- Code: ---control->ConvertEOLs(2);
--- End code ---
in 'Scintilla.h' we find

--- Code: ---#define SC_EOL_LF 2
--- End code ---

and then BINGO : it works, no more problems !!

It is therefore a bad detection of the end of line by

--- Code: ---int wxScintilla::GetEOLMode() const
{
    return SendMsg(SCI_GETEOLMODE, 0, 0);
}
--- End code ---
with Win32.

Gentlemen developers, to your keyboards!

--- End quote ---

Not till you post what settings you had inside Code::Blocks!
End of Line options are:
The real important two are
"Ensure Consistent EOLs" and "End of Line Mode".

Tim S.

LETARTARE:
Yes, you are right.
I use with Win-32

--- Quote ---Ensure Consistent EOLs = Yes
End of Line : CRLF
--- End quote ---

Well, the file I used contained only Linux end of line (LF) and with the previous options chosen: CB wants to modify the end of line of the file with the end of line of the option and crashes with Win32 !

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version