Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Bug in 'source code formatter (AStyle)'
mushakk:
When I try to format generated code (gcc -E) sometimes the plugin crashes :(
Some of the lines in these files are up to 2840 chars!
Thx for your work!
dje:
Hi !
I think your description is light...
Nightly ? OS? GCC version ? Bug report (*.RPT) ? File that made AStyle crash ?
It would be useful to debug. Don't forget to put the bug on BerliOS !
Dje
Ceniza:
It would be great if you could provide a sample file that causes the plugin to crash.
mushakk:
Sorry I'm using yesterday version (20 jun)
With this example file the app crashes.
--- Quote ---Don't forget to put the bug on BerliOS
--- End quote ---
I'm new here. How can I do that? url for bugs?
[attachment deleted by admin]
MortenMacFly:
--- Quote from: mushakk on June 20, 2007, 12:09:36 pm ---With this example file the app crashes.
--- End quote ---
That's the culprit (asstreamiterator.h):
--- Code: --- wxChar buffer[2048];
--- End code ---
It will result in crashing at line 47 in asstreamiterator.cpp:
--- Code: --- *filterPtr++ = *m_In;
--- End code ---
(Notice that filterPtr equals buffer.)
So - you might want to just increase the value in the header to e.g. 4096 and that's basically it.
With regards, Morten.
Navigation
[0] Message Index
[#] Next page
Go to full version