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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Console position question
by
440bx
[
Today
at 07:03:16 am]
Animated Lines in a Circl...
by
Boleeman
[
Today
at 06:33:21 am]
Simple Sine Table Generat...
by
d2010
[
Today
at 06:19:04 am]
Intuit Quickbooks Desktop...
by
dodgebros
[
Today
at 06:07:47 am]
Unable to access the wiki
by
Thaddy
[
Today
at 05:32:40 am]
TBCFluentProgressRing bug
by
lainz
[
Today
at 05:01:29 am]
Hnefatafl Viking-Chess(ra...
by
Guva
[
Today
at 04:49:01 am]
Little Red Riding Hood (t...
by
gerbil76115
[
Today
at 04:17:07 am]
Z Index Demo
by
Gigatron
[
Today
at 02:04:17 am]
A little bug in fpsimages...
by
wp
[
Today
at 12:31:24 am]
Selecting Memo lines drif...
by
munair
[May 16, 2025, 11:12:22 pm]
Idea how to quickly fix a...
by
ALLIGATOR
[May 16, 2025, 09:44:54 pm]
External ACCESS VIOLATION...
by
alpine
[May 16, 2025, 09:09:55 pm]
File extensions, pas & pp...
by
PeterBB
[May 16, 2025, 08:55:54 pm]
BGRAGtkBitmap
by
Fred vS
[May 16, 2025, 08:29:17 pm]
Does TIpHtmlPanel support...
by
wp
[May 16, 2025, 07:20:01 pm]
I can write your README.m...
by
wp
[May 16, 2025, 07:13:30 pm]
Lazarus Release 4.0
by
TBMan
[May 16, 2025, 07:06:34 pm]
Break program and debug
by
MarkMLl
[May 16, 2025, 05:11:32 pm]
FPC 3.2.2 + NASM Windows ...
by
paule32
[May 16, 2025, 03:29:55 pm]
Range check, converting e...
by
tetrastes
[May 16, 2025, 02:42:33 pm]
Mandel3D and OpenGL
by
Boleeman
[May 16, 2025, 02:11:27 pm]
Animated Oscillating Line...
by
Boleeman
[May 16, 2025, 01:34:10 pm]
Practical Ways to Help La...
by
440bx
[May 16, 2025, 01:32:05 pm]
TSynCompletion failing wh...
by
Martin_fr
[May 16, 2025, 12:43:42 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Access Violation TPQConnection := False (Read 2231 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: 6716
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: 6716
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: 2964
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: 294
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.0-64 - FPC 3.2.2
Print
Pages:
1
[
2
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
Access Violation TPQConnection := False
TinyPortal
© 2005-2018