Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Programming
»
Packages and Libraries
»
TLazSerial component loses published properties on run (solved)
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
FAQ
Wiki
Bugtracker
Packages
IRC channel
Developer Blog
Follow us on Twitter
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: TLazSerial component loses published properties on run (solved) (Read 1090 times)
PStechPaul
Jr. Member
Posts: 72
TLazSerial component loses published properties on run (solved)
«
on:
May 04, 2017, 03:30:56 am »
I have ported most of my Ortmaster project to Lazarus and I placed a
TLazSerial
component on one of the forms. I named the component
CommSerialPort
. While editing, the usual properties show up, such as
Active
. But when I run the application, and stop on a breakpoint with CommSerialPort, the properties are shown as the private equivalents, such as
FActive
. At one point I had set
CommSerialPort.Name
to 'COM6", which of course changed the name of the component, but I fixed that. Any ideas how this could happen, and how to fix it? Thanks!
«
Last Edit: May 04, 2017, 04:12:51 am by PStechPaul
»
Logged
PStechPaul
Jr. Member
Posts: 72
Re: TLazSerial component loses published properties on run
«
Reply #1 on:
May 04, 2017, 04:12:23 am »
I'm not exactly sure how I did it, but the application is now working. I did add all the pertinent files to the project - perhaps that had something to do with it. Actually it worked for a while, until I got a run-time error, but the communication module needs work.
Logged
PStechPaul
Jr. Member
Posts: 72
Re: TLazSerial component loses published properties on run (solved)
«
Reply #2 on:
May 04, 2017, 05:16:57 am »
Not exactly related, but my Ortmaster application does not stop execution when running in the IDE debugger. I need to select the
Run>Stop
menu item. The application itself seems to close OK. I have some code that executes when the "
close
" button "
X
" is clicked, but eventually it calls
Application.Terminate
.
It seems to hang up here:
Code: Pascal
[Select]
procedure
AdjustFormBounds
(
const
AForm
:
TCustomForm
;
out SizeRect
:
TRect
)
;
begin
// the LCL defines the size of a form without border, win32 with.
// -> adjust size according to BorderStyle
SizeRect
:
=
AForm
.
BoundsRect
;
Windows
.
AdjustWindowRectEx
(
@
SizeRect
,
CalcBorderStyleFlags
(
AForm
)
or
CalcBorderIconsFlags
(
AForm
)
,
False
,
CalcBorderStyleFlagsEx
(
AForm
)
or
CalcBorderIconsFlagsEx
(
AForm
)
)
;
end
;
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Programming
»
Packages and Libraries
»
TLazSerial component loses published properties on run (solved)
Recent
TDBCombobox useless?
by
wwerner
[
Today
at 07:20:47 pm]
how to disable directive
by
taazz
[
Today
at 06:49:46 pm]
Strange problem
by
taazz
[
Today
at 06:48:16 pm]
FPHTTPClient + GitHub = :...
by
Phil
[
Today
at 05:42:48 pm]
Help conversion string UT...
by
critter
[
Today
at 05:21:01 pm]
Advise on how to create a...
by
Thaddy
[
Today
at 05:20:40 pm]
Desabilitar componentes d...
by
arirod
[
Today
at 05:16:37 pm]
Looking for devs interest...
by
nightraven
[
Today
at 04:51:45 pm]
macOS 32-bit app warning
by
Clover
[
Today
at 04:34:52 pm]
Resurrecting old janSQL l...
by
bee
[
Today
at 04:15:34 pm]