Recent

Author Topic: [FPC 3.2.4, Windows] PTC unit broken?  (Read 3776 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3917
    • StrumPract is the musicians best friend
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #15 on: April 16, 2026, 08:26:24 pm »
@Fred vS
So what am I using? Ptc on windows 11. Only difference is I am using FPC trunk. And I checked the examples.

Hum, I just tested with main (trunk of today) of fpc 3.3.1 64 bit on Windows 11 version 25H2 (OS build 26200.8117) and the \fpc-main\packages\ptc\examples\flower.pp demo:

Code: Pascal  [Select][+][-]
  1.  ./flower.exe
  2. An unhandled exception occurred at $000000010000965B:
  3. EAccessViolation: Access violation
  4.   $000000010000965B
  5.   $000000010001EEA1
  6.   $000000010002304F
  7.   $000000010002138C
  8.   $000000010002066C
  9.   $0000000100009F65
  10.   $00000001000095FB
  11.   $00000001000293F2
  12.   $0000000100011017
  13.   $00007FFDD40A621F
  14.   $00007FFDD3F4E603
  15.   $0000000100010BB2
  16.   $00007FFDD40A619F
  17.   $00007FFDD3F52397
  18.   $00007FFDD40A5ADE
  19.   $000000010000965B
  20.   $000000010001EEA1

And with fpc main (trunk of today) 3.3.1 32 bit:

Code: Pascal  [Select][+][-]
  1.  ./flower.exe
  2. An unhandled exception occurred at $00408CFE:
  3. EAccessViolation: Access violation
  4.   $00408CFE
  5.   $0041C871
  6.   $0041FE7D
  7.   $0041DCEB
  8.   $00408CB5
  9.   $00424FE3
  10.   $00402133

« Last Edit: April 16, 2026, 09:38:32 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

LeP

  • Sr. Member
  • ****
  • Posts: 290
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #16 on: April 24, 2026, 09:57:24 pm »
I see this topic and I tried with stable release (4.6 / 3.2.2) and Windows 11 25H2 10.0.26200.8246

Compiling OK, runnning with "cannot recycle because it is not already open" error. But it runs with continue and the "flower color play" is visible.

Hope this can help.

P.S.: Only Windows Defender like AV, with all options active, max protection.
« Last Edit: April 24, 2026, 10:03:28 pm by LeP »
Un Sistema per domarli, un IDE per trovarli, un codice per ghermirli e nel framework incatenarli.
An operating system to tame them, an IDE to find them, a code to catch them and in the framework chain them.

Fred vS

  • Hero Member
  • *****
  • Posts: 3917
    • StrumPract is the musicians best friend
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #17 on: April 24, 2026, 10:12:16 pm »
Compiling OK, runnning with "cannot recycle because it is not already open" error. But it runs with continue and the "flower color play" is visible.

Thanks to try it.
Hum, I dont get any message, only:

Code: Pascal  [Select][+][-]
  1. An unhandled exception occurred at $00408CFE:
  2. EAccessViolation: Access violation

How did you run flower.exe, via terminal or 2xclick or gdb or via Lazarus or else?
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

LeP

  • Sr. Member
  • ****
  • Posts: 290
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #18 on: April 24, 2026, 10:20:55 pm »
Open file under Lazarus IDE, it ask if it's a project, answer YES.

RUN.

[EDIT]: runs directly the exe with double click on it, it works and run right without any message.
[EDIT 1]: All settings like standard installation. FPDebugger, dwarf3 (beta)
« Last Edit: April 24, 2026, 10:31:18 pm by LeP »
Un Sistema per domarli, un IDE per trovarli, un codice per ghermirli e nel framework incatenarli.
An operating system to tame them, an IDE to find them, a code to catch them and in the framework chain them.

Fred vS

  • Hero Member
  • *****
  • Posts: 3917
    • StrumPract is the musicians best friend
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #19 on: April 24, 2026, 10:37:10 pm »
[EDIT]: runs directly the exe with double click on it, it works and run right without any message.

That are excellent news.
But I do not understand why with Roland version 10.0.26200.7462 and mine 10.0.26200.8117 it crash.

I see your version is 10.0.26200.8246, so maybe there is a fix?
I will try to update my Windows version, maybe good news.

Anyway, thanks for your light.

I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3917
    • StrumPract is the musicians best friend
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #20 on: April 24, 2026, 10:58:45 pm »
OK. I updated my Windows 11 and now I have the same version as you 10.0.26200.8246.

But still crash at run:

Code: Pascal  [Select][+][-]
  1. > ./flower.exe
  2. An unhandled exception occurred at $0040910E:
  3. EAccessViolation: Access violation
  4.   $0040910E
  5.   $0041E501
  6.   $00421B0D
  7.   $0041F97B
  8.   $004090C5
  9.   $00426C73
  10.   $00402153  main,  line 139 of flower.pp

I miss something, sure, AV is also only Defender.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

LeP

  • Sr. Member
  • ****
  • Posts: 290
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #21 on: April 24, 2026, 11:09:11 pm »
I don't think is Windows, my experience is that those issues normally were about the code, believing something that is not always true.

Un Sistema per domarli, un IDE per trovarli, un codice per ghermirli e nel framework incatenarli.
An operating system to tame them, an IDE to find them, a code to catch them and in the framework chain them.

Fred vS

  • Hero Member
  • *****
  • Posts: 3917
    • StrumPract is the musicians best friend
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #22 on: April 24, 2026, 11:28:33 pm »
Could you give the command line you are using?
If you use Lazarus, menu Project/Project Options then click on Show Options.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

LeP

  • Sr. Member
  • ****
  • Posts: 290
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #23 on: April 24, 2026, 11:30:37 pm »
Code: Pascal  [Select][+][-]
  1. C:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.exe
  2. -MObjFPC
  3. -Scghi
  4. -O1
  5. -gw3
  6. -gl
  7. -l
  8. -vewnhibq
  9. -FuC:\lazarus\fpc\3.2.2\source\packages\ptc\examples\
  10. -FUlib\x86_64-win64
  11. -FE.
  12. -oflower.exe
  13. flower.pp
  14.  

[EDIT]: my configuration is with two video "cards": one integrated (Intel I9 14 - UHD) and an Nvidia 4070. However, using the executable alternatively or with one or the other always works.
« Last Edit: April 24, 2026, 11:38:23 pm by LeP »
Un Sistema per domarli, un IDE per trovarli, un codice per ghermirli e nel framework incatenarli.
An operating system to tame them, an IDE to find them, a code to catch them and in the framework chain them.

Fred vS

  • Hero Member
  • *****
  • Posts: 3917
    • StrumPract is the musicians best friend
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #24 on: April 24, 2026, 11:42:08 pm »
OK, thanks.
I m busy on a Linux machine at the moment.
I will boot asap in Windows 11 and test it.
Write you later.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3917
    • StrumPract is the musicians best friend
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #25 on: April 25, 2026, 12:05:25 am »
Sadly, using the same parameters as yours, the app still crash the same way.
I am lost.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

LeP

  • Sr. Member
  • ****
  • Posts: 290
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #26 on: April 25, 2026, 12:30:24 am »
Uhmm, may be is the surface used.

How do ptc work ? Do it use DDraw, OpenGl, d3d ?

If possible, try to force one tech or another.
Un Sistema per domarli, un IDE per trovarli, un codice per ghermirli e nel framework incatenarli.
An operating system to tame them, an IDE to find them, a code to catch them and in the framework chain them.

Fred vS

  • Hero Member
  • *****
  • Posts: 3917
    • StrumPract is the musicians best friend
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #27 on: April 25, 2026, 12:38:36 am »
I'm absolutely not an expert on PTC.

I think it uses DirectDraw/DirectX, but I'm not sure.

I tried to get it working as a challenge, but I failed miserably.

I stop the combat.
« Last Edit: April 25, 2026, 12:42:23 am by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

LeP

  • Sr. Member
  • ****
  • Posts: 290
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #28 on: April 25, 2026, 01:20:41 am »
I'm sorry I can't help you further, but my knowledge on the subject is also limited.
Un Sistema per domarli, un IDE per trovarli, un codice per ghermirli e nel framework incatenarli.
An operating system to tame them, an IDE to find them, a code to catch them and in the framework chain them.

Thaddy

  • Hero Member
  • *****
  • Posts: 19115
  • Glad to be alive.
Re: [FPC 3.2.4, Windows] PTC unit broken?
« Reply #29 on: April 25, 2026, 08:03:30 am »
The flower demo tests correct for 64 bit. I won't test 32 bit on Windows. All other demo's work too, as already stated.
Win11 is 25H2 26200 8246 So current release + all patches.
The suggestion that the issue is caused by win11 is bogus, at least for 64 bit.
« Last Edit: April 25, 2026, 09:10:49 am by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

 

TinyPortal © 2005-2018