[lazarus] Access Violation compiling Lazarus / LCL

2007-02-20 Thread tanila
Hello All, since the last two days I can't compile the LCL (gtk) any more. Compilation stops here: Compiling ldockctrl.pas Compiling ldockctrledit.pas Compiling lclmessageglue.pas Fatal: Compilation aborted An unhandled exception occurred at $00596D6C : EAccessViolation : Access

[lazarus] Access violation ?

2006-01-28 Thread A.J. Venter
Hi all, I am trying to build a native gzip uncompressor into a unit for use by programs, no difficulty right, I just use paszlib and stole (with some adaptation) the code from the minigzip example to come up with this function (I chose a function in order to feed the output back to a graphical

Re: [lazarus] Access violation ?

2006-01-28 Thread A.J. Venter
Another note on this, I stripped the function into a unit all of it's own (no package), then I called this function from a lazarus program and got an access violation as soon as I called gz_uncompress. I then created a very simple little plain pascal program calling the same unit with

Re: [lazarus] Access violation ?

2006-01-28 Thread Mattias Gaertner
On Sat, 28 Jan 2006 15:01:41 +0200 A.J. Venter [EMAIL PROTECTED] wrote: Hi all, I am trying to build a native gzip uncompressor into a unit for use by programs, no difficulty right, I just use paszlib and stole (with some adaptation) the code from the minigzip example to come up with this

Re: [lazarus] Access violation

2005-12-08 Thread Michael Van Canneyt
On Thu, 8 Dec 2005, Arí Ricardo Ody wrote: Why the attached program issues access violation in the call of procedure LoadDirFiles? I try to remove the TStringList parameter and the violation persists... May someone give me an explanation? You must create the stringlist first, before

Re: [lazarus] Access violation

2005-12-08 Thread Arí Ricardo Ody
Done! Thank you! At 14:53 8/12/2005, you wrote: On Thu, 8 Dec 2005, Arí Ricardo Ody wrote: Why the attached program issues access violation in the call of procedure LoadDirFiles? I try to remove the TStringList parameter and the violation persists... May someone give me an

[lazarus] Access violation when accessing pixel data

2005-12-05 Thread Ger Remmers
Hi all, When trying to read the pixel data in an image I get an access violation Procedure SCanImage; type TPixelValue = record case integer of 1 :(ColorValue : TColor); 2 :(ColorArray : array[1..4] of byte); end; var HCount, VCount : integer; PixelValue : TPixelValue; begin

Re: [lazarus] Access violation when accessing pixel data

2005-12-05 Thread Alan Chamberlain
I had a similar problem porting a Delphi 7 app to Lazarus. I solved it by using LazIntfImage as below: var I,J, Xres,YRes: integer; Val: longint; SrcIntfImage:TLazIntfImage; Curcolor :TFPColor; Data: array of real; begin with OpenDialog do begin DefaultExt