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

EAccessViolation when switching stands #65

Open
stevejordi opened this issue Sep 17, 2021 · 4 comments
Open

EAccessViolation when switching stands #65

stevejordi opened this issue Sep 17, 2021 · 4 comments
Assignees
Labels

Comments

@stevejordi
Copy link

stevejordi commented Sep 17, 2021

Was debugging my app and got several EAccessVIolation errors when switching Frames.
Looks like it's TSubjectStand that causes this.
The WizardSimpleProject demo provided behaves like this and I use the same behavior in my app.
Note: the EAccessViolation appears only in debug mode, not in release mode. It makes debugging harder.

Compile it and run it with debugger.
When you pass the first frame (Enter 1) and click the StepButton you get
Project WizardSimpleProject.exe raised exception class $C0000005 with message 'access violation at 0x008e7845: read of address 0x00000004'.

Click Continue
Project WizardSimpleProject.exe raised exception class EAccessViolation with message 'Access violation at address 008E7845 in module 'WizardSimpleProject.exe'. Read of address 00000004'.

Then Frame2 is presented. Type 2 and StepButton to switch to Frame3, again the same EAccessViolation
Project WizardSimpleProject.exe raised exception class EAccessViolation with message 'Access violation at address 008E7845 in module 'WizardSimpleProject.exe'. Read of address 00000004'.
and
Project WizardSimpleProject.exe raised exception class EAccessViolation with message 'Access violation at address 008E7845 in module 'WizardSimpleProject.exe'. Read of address 802A8ADF'.

Then Fram3 is presented.
FinishButton comes back to the initial view without error.

Looks like the frame is manipulated before being fully initialized?

@andrea-magni
Copy link
Owner

Hi @stevejordi , thanks for pointing this out.
Now should be fixed, let me know if everything is fine, thanks!

@stevejordi
Copy link
Author

stevejordi commented Sep 18, 2021

Just removed the previous version and installed this one. It continues to have the problem.
1st error
2nd error

Again, appears only when debugging from the IDE. The exe file seems to be fine even if in Debug instead of Release target.

@andrea-magni andrea-magni reopened this Sep 20, 2021
@andrea-magni
Copy link
Owner

Hi, weird. Would you please tell me:

  • Delphi version (11?)
  • Target Platform you are addressing (Win32?)

Thanks

@stevejordi
Copy link
Author

Sure, sorry.
Yes, Delphi version 11.
Target Win32-bit for debugging.

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

No branches or pull requests

2 participants