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
Fpcupdeluxe
by
totya
[
Today
at 09:42:30 pm]
What am I missing here? [...
by
Ten_Mile_Hike
[
Today
at 09:11:10 pm]
[New Component] ExtTabCtr...
by
wp
[
Today
at 08:31:58 pm]
Which Control should I us...
by
wp
[
Today
at 08:25:37 pm]
Can /my/ AI help me with ...
by
microxa
[
Today
at 08:25:36 pm]
[ANN] PasBuild v1.9.0 Rel...
by
Graeme
[
Today
at 08:14:26 pm]
Instruction-level paralle...
by
MathMan
[
Today
at 08:11:33 pm]
If FileExists(
by
Remy Lebeau
[
Today
at 07:58:06 pm]
Codepage issue in console...
by
Hartmut
[
Today
at 07:52:43 pm]
Lazarus syntax helpers
by
Weiss
[
Today
at 07:48:31 pm]
Implementing an Elo ratin...
by
Warfley
[
Today
at 06:33:56 pm]
[SOLVED]Program experienc...
by
Thaddy
[
Today
at 05:39:33 pm]
RunFormula: math expressi...
by
stormray
[
Today
at 03:30:10 pm]
Error with last fixes_3.2...
by
patyit
[
Today
at 01:54:04 pm]
Message CM_ShowingChanged...
by
AlexTP
[
Today
at 01:21:03 pm]
Single and Double, Conver...
by
MathMan
[
Today
at 10:36:23 am]
MOVED: Eye Candy TESCheme
by
theo
[
Today
at 10:06:43 am]
storing assets for releas...
by
Handoko
[
Today
at 08:35:23 am]
TCHATGPT — An Artificial ...
by
marcelomaurinmartins@gmai
[
Today
at 02:20:11 am]
Mundo Medieval 3D MMORPG ...
by
Rodrigo Robles
[June 14, 2026, 05:26:38 pm]
Fast Canvas Library V1.05...
by
Gigatron
[June 14, 2026, 04:57:35 pm]
SynEdit theme
by
LemonParty
[June 14, 2026, 02:01:33 pm]
What happened to CocoaWSC...
by
Frank
[June 14, 2026, 01:31:19 pm]
Very rough version of a s...
by
Hansvb
[June 14, 2026, 12:44:31 pm]
Pdf Viewer in Pascal
by
Dzandaa
[June 14, 2026, 11:44:26 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Access Violation TPQConnection := False (Read 3071 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: 7045
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: 7045
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: 3399
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: 356
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.6-64 - FPC 3.2.2
Print
Pages:
1
[
2
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
Access Violation TPQConnection := False
TinyPortal
© 2005-2018