Menu

SigSegV in GLSZLibExApi...

Help
azrael11
2016-01-11
2016-01-13
  • azrael11

    azrael11 - 2016-01-11

    I use Lazarus 1.4.4 and the new GLScene 1.4 for LCL
    I try this and get a SigSegV error ...In delphi 7 works just fine...

    [CODE]MyStrm: TStream;ex_archivemanager: TGLSArchiveManager;

    ex_archivemanager:= TGLSArchiveManager.Create(MainForm);
    ex_archivemanager.Archives.Add.Name:= 'name1';  ex_archivemanager.Archives[0].LoadFromFile(ex_program_path+ 'data\loading.zlib');

    for i:= 0 to ex_archivemanager.Archives[0].ContentList.Count - 1 do
        begin
          MyStrm:= ex_archivemanager.Archives[0].GetContent('loading/'+ Loading_Materials[i]+ '.png');       // In the line above i get a SigSegV error...       // i debug it and i found in the GLSZLibExApi in the line 424: ZLIB_Version:= zlibversionpchar;       // The zlibversionpchar before run it give 0..
          AddMaterial(Mat_Loading,MyStrm,Loading_Materials[i],False,'');
          FreeAndNil(MyStrm);
        end;[/CODE]
    P.S. In the bottom of the comment dissapear  the fast response so i can't reply on anything...
    i talk about the sourceforge discussion... is something i do or...

    Thank you...

     
  • Pavel Vassiliev

    Pavel Vassiliev - 2016-01-11

    Hi azrael11,
    Hm, GLSZLibEx and GLSZLibExAPI for Lazarus version are the same as earlier unlike for RAD Studio where they removed becouse it has now own unit to workaround such archives.
    I've compiled the last GLSceneLCL on Lazarus 1.4.4 and all installed correctly. Remove old pachages.
    PW

     
  • arc-azrael11

    arc-azrael11 - 2016-01-11

    The installation of glscene is just fine...
    My installation is clear ... i remove everything and installed from the start ...
    Lazarus/freepascal and glscene only...

    So... any thoughts
    1. When the ZLIB_Version take the zlibversionpchar then zlibversionpchar must have a version number... but instaed it returns "0" .. so where in the code the zlibversionpchar takes the "version number"

    Thank you...

     
  • Pavel Vassiliev

    Pavel Vassiliev - 2016-01-12

    arc-azrael11,
    No guess of your SigSegV bug. What's about other samples for Lazarus? Try to compare your current and previous code by using Beyond Compare tool. It'll should help.
    PW

     
  • arc-azrael11

    arc-azrael11 - 2016-01-12

    The code writting from the start..
    Let me check other samples and report...

    Thank you...

     
  • arc-azrael11

    arc-azrael11 - 2016-01-12

    Results...
    Both ArchiveEdit and ArchiveDemo not working ..

    1. In ArchiveEdit add the missing "icons.res" and correct the line
      FolderSelect in 'FolderSelect.pas', glscene_designtime {FolderSel};
      with
      FolderSelect in 'FolderSelect.pas', glscenelcl_designtime {FolderSel};

    but it stops in the FXCollectionEditorLCL says the PropEdits can't find even if i add it and it has incompatible ppu...

    1. ArchiveDemo get the above SigSegV...

    Thank you...

     
  • Jerome.D (BeanzMaster)

    Hi,
    perhaps stupid but do you have duplicate ZLib.dll in your system path ?
    Try to move the dll directly in the folder app for see

     
  • arc-azrael11

    arc-azrael11 - 2016-01-13

    Jerome,

    I move the zlib1.dll in folder app now the zlibversionpchar takes a number... but i get and error
    right in this line again

    ZLIB_Version:= zlibversionpchar;

    The error "Cannot access memory at address 0x100009180...

    Hmmm..

    Thank you..

     

    Last edit: arc-azrael11 2016-01-13
  • Jerome.D (BeanzMaster)

    You surelly don't have the right Zlib dll version

     
    • arc-azrael11

      arc-azrael11 - 2016-01-13

      Jerome...

      The zlib version is 1.2.3
      I think it is the right one..

      Thank you...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.