Embarcadero/DelphiVCL4Python

Error reading address when debugging delphivcl library.

fansxs opened this issue · 0 comments

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