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
Pipewire API
by
Fred vS
[
Today
at 05:47:15 pm]
A collection of daily *NI...
by
lebao3105
[
Today
at 05:21:48 pm]
[ANN] PasBuild 1.6.0 rele...
by
cdbc
[
Today
at 05:07:14 pm]
class not found
by
cdbc
[
Today
at 04:32:38 pm]
ShortStrings vs long stri...
by
marcov
[
Today
at 03:30:18 pm]
88 year D. Knuth changes ...
by
Curt Carpenter
[
Today
at 03:08:55 pm]
[ANN] PasBuild 1.5.0 rele...
by
Graeme
[
Today
at 02:30:32 pm]
CADSys4 3D.
by
zamtmn
[
Today
at 02:13:31 pm]
Synchronizing Lazarus pro...
by
marcov
[
Today
at 01:09:21 pm]
Need help with project ma...
by
dseligo
[
Today
at 12:12:04 pm]
Debian removes FPC/Lazaru...
by
marcov
[
Today
at 11:58:36 am]
Qt6/Wayland clipboard: pa...
by
zeljko
[
Today
at 11:53:24 am]
Questions about TFuncSeri...
by
hedgehog
[
Today
at 09:50:46 am]
macOS 14+ Install Instruc...
by
CM630
[
Today
at 07:56:45 am]
Any way to "embed" Window...
by
egsuh
[
Today
at 05:13:50 am]
Update a table with an Au...
by
CraigC
[March 10, 2026, 10:54:23 pm]
TSplitter color property ...
by
backprop
[March 10, 2026, 08:43:28 pm]
Z80 ZX Spectrum and Syste...
by
Cascade
[March 10, 2026, 08:22:14 pm]
could Ardour's YTK be use...
by
robert rozee
[March 10, 2026, 03:18:36 pm]
[revisited] triple click
by
Thaddy
[March 10, 2026, 01:08:40 pm]
Hello! Anything new?
by
JuhaManninen
[March 10, 2026, 11:22:16 am]
C/C++ code to Object Pasc...
by
domasz
[March 10, 2026, 10:44:20 am]
[Solved] Saving a workboo...
by
Kaljakoira
[March 10, 2026, 09:09:59 am]
Good GPU accelerated math...
by
myisjwj
[March 10, 2026, 03:17:06 am]
REST Server/Client, how t...
by
valdir.marcos
[March 09, 2026, 10:18:36 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Access Violation TPQConnection := False (Read 2914 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: 6953
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: 6953
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: 3307
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: 341
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