corneliusdavid/AutoGetIt

Access Violation

dfilteau opened this issue · 12 comments

Compiled in 32-bit Windows platform using Delphi 10.4 (Version 27.0.38860.1461) and running in Admin mode, I'm getting the following error in the Demo2 application when I click the "Refresh Package List" button:

"Access violation at address 0040A35A in module 'AutoGetItVCL.exe', Write of address 00000044."

I'm probably missing something here but any suggestion outside of the likes of "get a life" and "learn to code" would be appreciated.

TIA!

I've upgraded to Delphi 10.4.2 (27.0.40680.4203) so can't exactly reproduce your environment.

What exactly do you mean by getting the error "in the Demo2 application"? Does that mean it starts listing packages but when it reaches a line that contains "Demo2" it breaks? I couldn't find "Demo2" anywhere in the list of packages, so am a little confused.

Can you build/run in debug mode and put break-points in and give me more information about where it breaks and perhaps some key variable values?

What exactly do you mean by getting the error "in the Demo2 application"? Does that mean it starts listing packages but when it reaches a line that contains "Demo2" it breaks?
When I click on the "Refresh Package List" button it dies immediately.

I couldn't find "Demo2" anywhere in the list of packages, so am a little confused.
My bad on that. I'm the one that's confused. I meant I was running AutoGetItVCL.

Can you build/run in debug mode and put break-points in and give me more information about where it breaks and perhaps some key variable values?
Will do, and thank you for your quick response.

In debug mode, I'm getting this error when I return from TfrmAutoGetItMain.BDSBinDir in ufrmAutoGetItMain.pas.

image

image

I'll keep looking.

Downloading the 10.4.2 update now. maybe that'll help.

Nice work, BTW!

Thanks--I've got info for the API and am reworking everything to use the API instead of the command-line.  It'll be MUCH better!

Anyway, the function BDSRootPath looks in the registry to find the RootDir folder for Delphi. Perhaps there's a permissions error? Or, you mentioned you were running it as admin, perhaps Delphi was installed for a user and the Admin doesn't know about the versions of Delphi so that BDSRootPath is blank! I didn't test for that...

I checked the values returned and it looks like it had the correct version (21.0) and the right BIN directory.

I'll update to 10.4.2 and check it again.

Once I get it working it'll sure save time reinstalling/re-configuring.

10.4.2 installed.

Win32 error:
image

Win64 error:
image

I'll try debugging.

image

So path is retrieved successfully

This is very strange, not sure what to tell you. But I'd look into that "E2029 '(' expected" error in your screen shot--there may be something else messed up in your environment.

image

Looks legit but I'll keep looking.