Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reading address when debugging delphivcl library. #89

Open
fansxs opened this issue Apr 2, 2024 · 0 comments
Open

Error reading address when debugging delphivcl library. #89

fansxs opened this issue Apr 2, 2024 · 0 comments

Comments

@fansxs
Copy link

fansxs commented Apr 2, 2024

When debugging using the Delphivcl library, stop in the click event of the control, then switch to the variables panel, click on the globals node, and a read address error will pop up, as shown in the figure. But debugging non delphivcl py files is normal.
1
2

The pyscripter version is 4.3.4.0 x64. Here is the example code, thanks :)

from delphivcl import *

class MainForm(Form):

def init(self, owner):
self.Caption = "A VCL Form..."
self.SetBounds(10, 10, 500, 400)
self.Position = "poScreenCenter"

self.lblHello = Label(self)   # For example, breakpoints here, Then click on globals in the variable panel
self.lblHello.SetProps(Parent=self,
    Caption="Hello DelphiVCL for Python", Color=clRed)
self.lblHello.SetBounds(10, 10, 300, 24)

def main():
Application.Initialize()
Application.Title = "Hello Python"
Main = MainForm(Application)
Main.Show()
FreeConsole()
Application.Run()
Main.Destroy()

main()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant