Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
Access Violation TPQConnection := False
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Variable "xyz" doesn't no...
by
creaothceann
[
Today
at 02:46:55 pm]
Problem with Qt5 on macOS
by
mischi
[
Today
at 02:34:37 pm]
Is there a "known good" c...
by
mischi
[
Today
at 02:18:20 pm]
Help with search and repa...
by
Thausand
[
Today
at 01:56:58 pm]
Postgres, ZEOS and Visual...
by
wp
[
Today
at 01:36:44 pm]
Lazarus Bugfix Release 4...
by
Martin_fr
[
Today
at 12:24:59 pm]
Valgrind stops showing li...
by
Martin_fr
[
Today
at 12:09:06 pm]
Form scaling aspect ratio
by
jamie
[
Today
at 12:07:58 pm]
manufacturing sim (inc)
by
speter
[
Today
at 11:38:56 am]
In fpcsrc, many places ca...
by
Thaddy
[
Today
at 09:41:38 am]
Can't I highlight part of...
by
Martin_fr
[
Today
at 08:43:03 am]
Mapping Images Like Odome...
by
SandyG
[
Today
at 06:56:55 am]
Access Violation
by
Thaddy
[
Today
at 06:23:59 am]
Problem Installing CHM He...
by
dbannon
[
Today
at 01:53:29 am]
This worries me about our...
by
dbannon
[
Today
at 01:38:35 am]
[SOLVED] Heaptrc reports ...
by
jamie
[
Today
at 12:48:49 am]
New book on Object Pascal
by
TBMan
[
Today
at 12:39:00 am]
Programmatic filtering in...
by
jamie
[November 13, 2025, 11:30:59 pm]
Fpcupdeluxe
by
Cascade
[November 13, 2025, 10:46:00 pm]
line number when error ha...
by
Martin_fr
[November 13, 2025, 10:37:19 pm]
Unit Masks, matches funct...
by
Martin_fr
[November 13, 2025, 07:31:00 pm]
Minimum and maximum value...
by
ASerge
[November 13, 2025, 07:30:38 pm]
Not visible soAllDirector...
by
LemonParty
[November 13, 2025, 05:44:26 pm]
What is your current pet ...
by
TBMan
[November 13, 2025, 05:07:28 pm]
How to detect if macOS ch...
by
Hansaplast
[November 13, 2025, 04:37:22 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Access Violation TPQConnection := False (Read 2602 times)
LzMan
New member
Posts: 8
Re: Access Violation TPQConnection := False
«
Reply #15 on:
March 04, 2024, 02:40:28 pm »
Normally, I use the debugger of Lazarus. I wrote in a previous post that the AV also happens when I attach the Visual Studio debugger to the standalone executable. The AV is definitely there. The AV is also there in x64dbg.
Logged
rvk
Hero Member
Posts: 6886
Re: Access Violation TPQConnection := False
«
Reply #16 on:
March 04, 2024, 03:07:23 pm »
Quote from: LzMan on March 04, 2024, 02:40:28 pm
Normally, I use the debugger of Lazarus.
What debugger is that exactly?
Lazarus can have several.
Gdb or fp-debugger.
And depending on the debugger it's also important which debugger options you set.
But so it's not the ide itself that's the problem but the attachment of a debugger.
I'm not familiar with x64dbg or de debugger from VS so I don't know if there are known issues there.
«
Last Edit: March 04, 2024, 03:09:50 pm by rvk
»
Logged
LzMan
New member
Posts: 8
Re: Access Violation TPQConnection := False
«
Reply #17 on:
March 04, 2024, 06:25:57 pm »
Can we stay on topic, please? How can I debug the LCL?
Logged
rvk
Hero Member
Posts: 6886
Re: Access Violation TPQConnection := False
«
Reply #18 on:
March 04, 2024, 07:09:08 pm »
Quote from: LzMan on March 04, 2024, 06:25:57 pm
Can we stay on topic, please? How can I debug the LCL?
You would need to rebuild Lazarus with debug option.
https://forum.lazarus.freepascal.org/index.php?topic=61774.0
The problem is that you probably don't want LCL because the database function is not from LCL but from FPC. You could build both with debugging on to be able to trace through the source.
How did you install FPC and Lazarus?
You could try fpcupdeluxe but I'm not sure how to set the debug options (never used fpcupdeluxe).
Logged
Zvoni
Hero Member
Posts: 3140
Re: Access Violation TPQConnection := False
«
Reply #19 on:
March 04, 2024, 07:19:25 pm »
Instead of waxing philosophical questions, TS should try a barebone sample-app without „visuals“ (read: simple console app), and check if his AV still appears (my bet is: no, it won’t AV if done correctly)
Logged
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
jcmontherock
Sr. Member
Posts: 316
Re: Access Violation TPQConnection := False
«
Reply #20 on:
March 04, 2024, 11:47:00 pm »
With MySQL i'm using:
Code: Pascal
[Select]
[+]
[-]
if
Connection1
.
Connected
then
Connection1
.
Close
;
without problem...
Logged
Windows 11 UTF8-64 - Lazarus 4.2-64 - FPC 3.2.2
Print
Pages:
1
[
2
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
Access Violation TPQConnection := False
TinyPortal
© 2005-2018