Recent

Author Topic: I get access violation when running my project in windows xp  (Read 835 times)

dsiders

  • Hero Member
  • *****
  • Posts: 1403
Re: I get access violation when running my project in windows xp
« Reply #15 on: April 25, 2025, 07:58:16 pm »
Indeed, I can confirm. Even dropping a TShellTreeview onto a form gives the error (Laz 4.99). That should be reported. It should still work.

I assume you mean on XP. Or Windows in general?

Because it still works on Linux+QT6.
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11130
  • Debugger - SynEdit - and more
    • wiki
Re: I get access violation when running my project in windows xp
« Reply #16 on: April 25, 2025, 08:07:35 pm »
Actually, just try with the patch from the following commit please.
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/92d902d141a43d33fb971477f119929319b246e6

That should work / works for me.

Let me know, so  I can add it to the 4.0 fixes branch.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11130
  • Debugger - SynEdit - and more
    • wiki
Re: I get access violation when running my project in windows xp
« Reply #17 on: April 25, 2025, 08:13:08 pm »
The shelltreeview has a public (not published) option "UseBuiltinIcons" which defaults to true.

If set, it tries to get some icon from the OS, but gets nil on XP.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11130
  • Debugger - SynEdit - and more
    • wiki
Re: I get access violation when running my project in windows xp
« Reply #18 on: April 25, 2025, 08:14:02 pm »
Indeed, I can confirm. Even dropping a TShellTreeview onto a form gives the error (Laz 4.99). That should be reported. It should still work.

I assume you mean on XP. Or Windows in general?

Yes, XP. Confirming the original issue.

jamie

  • Hero Member
  • *****
  • Posts: 6888
Re: I get access violation when running my project in windows xp
« Reply #19 on: April 27, 2025, 12:00:43 am »
I belive @wp made those changes way back to use system icon.
The only true wisdom is knowing you know nothing

wp

  • Hero Member
  • *****
  • Posts: 12784
Re: I get access violation when running my project in windows xp
« Reply #20 on: April 27, 2025, 01:09:44 am »
In a related thread (https://forum.lazarus.freepascal.org/index.php/topic,70936.msg553261.html) the OP confirms that Martin's code does fix his issue with TShellTreeView in XP.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11130
  • Debugger - SynEdit - and more
    • wiki
Re: I get access violation when running my project in windows xp
« Reply #21 on: April 27, 2025, 01:23:11 am »
Great, applied to fixes branch.

 

TinyPortal © 2005-2018