Forum > Windows

I get access violation when running my project in windows xp

(1/5) > >>

Froxter:
My project is setted to run in 32bit but each time I try execute it in windows XP i get an access violation in main.pas (but i give the other codes another causes the problem) the weird thing is that running it in windows 7 and above there are not errors. I know I can just say that you need at least windows 7 to run it but I really need this thing executes in windows xp. Thank you

Thaddy:
The only easy way to get around this, is using an older version of Lazarus.
The problem is that the Syn controls and other code use Windows api calls that are only available from Windows Vista and higher, not XP. E.g. High DPI.
I guess nobody wants to fix that for a legacy platform.
Older versions are still avalable, but do not expect newer features will work.

Martin_fr:

--- Quote from: Thaddy on April 25, 2025, 02:36:53 pm ---The only easy way to get around this, is using an older version of Lazarus.
The problem is that the Syn controls and other code use Windows api calls that are only available from Windows Vista and higher, not XP. E.g. High DPI.
I guess nobody wants to fix that for a legacy platform.
Older versions are still avalable, but do not expect newer features will work.

--- End quote ---

If that "Syn" is about SynEdit, then which calls are that? They should be kept compatible. And afaik they run on XP inside the IDE.

Thaddy:
There seem to be calls that are only Vista and higher. If a program used to work with lower versions, then that is the case.
It is not his code, but somewhere in the libraries he uses.
I am not prepared to debug those.

440bx:
@Froxter,

post a screenshot of the access violation, that information could be helpful in solving the problem.

Navigation

[0] Message Index

[#] Next page

Go to full version