Application No Longer Compiles... lazarus / 8-Other ---------------------------------------------------------------------- burty89 · 2005-12-03 16:33 I have an application I am developing using lazarus and it was compiling perfectly until today, when I get this after clicking build... QuoteWinXP.pas(13,19) Hint: Unit "windows" not used in WinXP WinXP.pas(13,29) Hint: Unit "messages" not used in WinXP C:\Documents and Settings\Paul\My Documents\Burton Software\Shared Code\Graphics\uGraphicRoutines.pas(12,116) Hint: Parameter "Opacity" not used fMain.pas(75,7) Hint: Local variable "Buffer" does not seem to be initialized fMain.pas(79,9) Hint: Local variable "BytesRead" does not seem to be initialized fMain.pas(98,3) Note: Local variable "MsgRect" is assigned but never used fMain.pas(36,35) Hint: Parameter "Sender" not used fMain.pas(37,35) Hint: Parameter "Sender" not used fMain.pas(38,30) Hint: Parameter "Sender" not used fMain.pas(39,26) Hint: Parameter "Sender" not used fMain.pas(40,40) Hint: Parameter "LastSocket" not used fMain.pas(33,24) Hint: Parameter "Sender" not used fMain.pas(34,13) Hint: Parameter "LastSocket" not used fMain.pas(8,50) Error: Compilation aborted   $004011FC Anybody know what the last two lines are all about? Why is it failing? Is $004011FC supposed to be useful in finding out? ---------------------------------------------------------------------- burty89 · 2005-12-04 11:28 Nobody??? ---------------------------------------------------------------------- Anonymous · 2005-12-04 11:45 OK I tried running the compiler from the command line and got this: QuoteC:\Documents and Settings\Paul\My Documents\MaraTalk\Client>fpc -S2cgi -OG1 -gl -WG -vewnhi -l -FuC:\BurtonSoftwareSharedCode\Win32API\ -FuC:\lazarus\components \lnetpackage-0.2-st\ -Fu..\..\..\..\..\lazarus\components\lnetpackage-0.2-st\ide \lib\i386-win32\ -Fu..\..\..\..\..\lazarus\components\lnetpackage-0.2-st\lib\i38 6-win32\ -Fu..\..\..\..\..\lazarus\lcl\units\i386-win32\ -Fu..\..\..\..\..\lazar us\lcl\units\i386-win32\win32\ -Fu..\..\..\..\..\lazarus\packager\units\i386-win 32\ -Fu. maratalk.lpr -dLCL -dLCLwin32 Hint: Start of reading config file C:\lazarus\pp\bin\i386-win32\fpc.cfg Hint: End of reading config file C:\lazarus\pp\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.0.0 [2005/05/08] for i386 Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Win32 for i386 Compiling maratalk.lpr Compiling fmain.pas fmain.pas(90,7) Hint: Local variable "Buffer" does not seem to be initialized fmain.pas(94,9) Hint: Local variable "BytesRead" does not seem to be initialized fmain.pas(44,27) Hint: Parameter "Sender" not used fmain.pas(45,34) Hint: Parameter "Sender" not used fmain.pas(46,25) Hint: Parameter "Sender" not used fmain.pas(47,13) Hint: Parameter "LastMessage" not used fmain.pas(47,40) Hint: Parameter "LastSocket" not used fmain.pas(48,29) Hint: Parameter "Sender" not used fmain.pas(49,13) Hint: Parameter "LastMessage" not used fmain.pas(49,40) Hint: Parameter "LastSocket" not used fmain.pas(50,24) Hint: Parameter "Sender" not used fmain.pas(50,60) Hint: Parameter "LastMessage" not used fmain.pas(51,13) Hint: Parameter "LastSocket" not used fmain.pas(52,26) Hint: Parameter "Sender" not used fmain.pas(53,40) Hint: Parameter "LastSocket" not used fmain.pas(8,50) Error: Compilation aborted An unhandled exception occurred at $0040D77A : EAccessViolation : Access violation   $0040D77A   $0040DF65   $0040E063   $0040D3C4   $00409456   $00497443   $00409331   $0046B03E   $00409331   $0046AD22   $0046B04B   $00409331   $004B8E6F   $00409331   $0045A52A   $00409331   $0041F576 Error: C:\lazarus\pp\bin\i386-win32\ppc386.exe returned an error exitcode (norma l if you did not specifiy a source file to be compiled) I would guess this is a compiler bug then yeah? ---------------------------------------------------------------------- burty89 · 2005-12-04 11:51 OK I found the problem myself... In my code I had written the line ShowMessage('Message Text' + #1310 + #1310 + 'More Text'); Obviously that needs changing to #13#10... I would have expected fpc to catch that rather than giving an access violation... ---------------------------------------------------------------------- matthijs · 2005-12-04 13:51 This only proofs that you cannot take into account every error a user can make This error might have been on line 8 in your fmain.pas? ---------------------------------------------------------------------- Vincent Snijders · 2005-12-04 14:31 I submitted fpc bug report. ---------------------------------------------------------------------- burty89 · 2005-12-04 22:16 Actually no, the error wasn't on line 8, line 8 was part of the uses clause that had nothing wrong with it...