Embarcadero / DelphiVCL4Python

Delphi's VCL library as a Python module for building Windows GUI
Other
245 stars 54 forks source link

Error reading address when debugging delphivcl library. #89

Open fansxs opened 5 months ago

fansxs commented 5 months ago

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