Skip to content

Error reading address when debugging delphivcl library. #89

Open
@fansxs

Description

@fansxs

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()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Error reading address when debugging delphivcl library. · Issue #89 · Embarcadero/DelphiVCL4Python