Recent

Author Topic: Access Violation shortly after editing TStringList property in Object Inspector  (Read 8910 times)

62mkv

  • New member
  • *
  • Posts: 9
steps to reproduce:
1. create empty project (GUI Application)
2. put an TSQLTransaction component on a form
3. edit Params (by pressing ...)
4. try to save

here I get the following (screenshot is in the file), translation as follows:
Streams (or streaming) error
Access violation

Path to unhandled instance is:
TForm1.SQLTransaction1

WHYYY ?? how to set such params ?? is it my WinXP that's bugging, or Lazarus IDE, or whatever ?

Lazarus 0.9.29 snapshot 2010-04-24 FPC 2.4.0 SVN 24868 Win32
WinXP Pro SP3

62mkv

  • New member
  • *
  • Posts: 9
have just found the very same description in bugtracker:

http://bugs.freepascal.org/view.php?id=14437

so, all points that I have to patch my FPC to 2.5.1...

if anyone is so generous to put me an URL on HOWTO do that...
Lazarus 0.9.29 snapshot 2010-04-24 FPC 2.4.0 SVN 24868 Win32
WinXP Pro SP3

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9908
  • Debugger - SynEdit - and more
    • wiki
I have not tested this, but the very latest entry on the bug (the fpc bug) says that "fixed in" was moved to 2.4.0 (maybe 2.4.1?).

If that is correct, then download the latest snapshot of Lazarus.
http://www.hu.freepascal.org/lazarus/

For Windows an installer exists that includes fpc. For other OS, separate downloads exist.

If you want 2.5.1 you need svn. Google for "FPC buildfaq" (or check the wiki for "svn")

62mkv

  • New member
  • *
  • Posts: 9
I have got an FPC 2.5.1 from here: ftp://ftp.freepascal.org/pub/fpc/snapshot

but as far as I can see, it contains no "source" folder, and Lazarus reports errors when I try to save Options (I change 2.2.4 to 2.5.1 in 3 fields for FPC paths).

also, now I can't compile even the simplest project:
registersqldb.pas(41,22) Fatal: Can't find unit LResources used by registersqldb

(possibly, due to the very same reason - lack of "source" folder)

help is very appreciated...
Lazarus 0.9.29 snapshot 2010-04-24 FPC 2.4.0 SVN 24868 Win32
WinXP Pro SP3

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9908
  • Debugger - SynEdit - and more
    • wiki
You still haven't said what OS you are on....

But you don't need the fpc source. Lazarus only uses them, for code completion.

So without fpc sources if you type:
  TObject.
and hope for the list of methods, it may not be there, or at least may be incomplete.

again : on windows, you can download the snapshot => install it in a diff directory, and use the fpc there (including source) => only if you move the folder containing fpc, you must look for fpc.cfg and edit it.

---------
as for your error:

Have you recompiled the whole of Lazarus itself (LCL, IDE, packages, ...)

When you compile a project, fpc only looks at the ppu files.

All your ppu files are for the older fpc.  PPU files are *never* compatible between any two different fpc versions. So the older ones are ignored by the new fpc => and you get the error.

62mkv

  • New member
  • *
  • Posts: 9
My OS is on the signature, it's been there since the very first post... sad that you didn't notice..

Yes it is Windows, and I've download snapshot, and installed it into
%Lazarus%\fpc\2.5.1\..
(nearby to %Lazarus%\fpc\2.2.4)

No I didn't recompile anything. Do I have to ? If yes, then HOW ?

I've just changed 3 options on an "Environment" tab of Lazarus settings:
1) path to FPC.exe
2) path to FPC source (which doesn't exist)
3) path to Make

shortly, I've changed all the options that I saw, having 2.2.4 in the path :)

and this (2.5.1) folder already has all the .ppu files, at least
C:\Develop\lazarus\fpc\2.5.1\units\i386-win32\rtl\system.ppu is on the place..

but still, I cant' compile my project:
registersqldb.pas(41,22) Fatal: Can't find unit LResources used by registersqldb

aha.. guess for now (and thanx to Martin_fr)  I know why... this unit is part of LCL, not FPC\units... so I have to recompile LCL at least..

if anyone helps THANX in advance...

Lazarus 0.9.29 snapshot 2010-04-24 FPC 2.4.0 SVN 24868 Win32
WinXP Pro SP3

62mkv

  • New member
  • *
  • Posts: 9
As I finally appeared to be incapable of rebuilding Lazarus for FPC 2.5.1, I have simply downloaded snapshot version of Lazarus with builtin FPC 2.4.0, and this problem seems to be gone

Thanks Martin_fr !!
Lazarus 0.9.29 snapshot 2010-04-24 FPC 2.4.0 SVN 24868 Win32
WinXP Pro SP3

 

TinyPortal © 2005-2018