Recent

Author Topic: Return causes Access violation  (Read 235 times)

Ruptor

  • Full Member
  • ***
  • Posts: 208
Return causes Access violation
« on: June 27, 2026, 03:33:49 pm »
I upgraded to trunk IDE and FPC using fpcupdeluxe that hid the lazarus_fpcupdeluxe.sh and never put a desktop icon but put one in the start menu that didn't work. Anyway started lazarus, compiled my code that ran on 3.2.2 but it gives an Access violation when I hit return to give the mouse cursor position. What is it complaining about? On 3.2.2 it returned the mouse position and continued. Going backwards it seems.

Bart

  • Hero Member
  • *****
  • Posts: 5757
    • Bart en Mariska's Webstek
Re: Return causes Access violation
« Reply #1 on: June 27, 2026, 03:36:22 pm »
Without any code example it's impossible to tell.

Bart

jamie

  • Hero Member
  • *****
  • Posts: 7891
Re: Return causes Access violation
« Reply #2 on: June 27, 2026, 04:02:12 pm »
I upgraded to trunk IDE and FPC using fpcupdeluxe that hid the lazarus_fpcupdeluxe.sh and never put a desktop icon but put one in the start menu that didn't work. Anyway started lazarus, compiled my code that ran on 3.2.2 but it gives an Access violation when I hit return to give the mouse cursor position. What is it complaining about? On 3.2.2 it returned the mouse position and continued. Going backwards it seems.

Ah yes, the old Press Enter key syndrome.! :o

Jamie

The only true wisdom is knowing you know nothing

Ruptor

  • Full Member
  • ***
  • Posts: 208
Re: Return causes Access violation [Solved]
« Reply #3 on: June 27, 2026, 06:56:49 pm »
I have been hacking my code to get a small bit to demonstrate the problem. It appears the old 3.2.2 compiler lets you see points on a canvas after it has been freed so problem is solved.

 

TinyPortal © 2005-2018