Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Installing package (VCL): access violation in bds.exe


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 5 - Last Post: Feb 6, 2017 12:12 AM Last Post By: Frank Staal
Robert [NL] Mit...

Posts: 100
Registered: 5/23/04
Installing package (VCL): access violation in bds.exe  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 31, 2017 2:47 AM
Using Embarcadero® Delphi 10.1 Berlin Version 24.0.25048.9432 (update 2)
VCL, 32 bit Windows

I try to install a package (which I wrote myself), but I get "Access violation at address 3EA68791 in module 'bds.exe'. Read of address 00000010".

The package is big, 56642 lines when building; 60 components, but for XE8 (and long time ago Delphi 7) this was no problem.

Building the package is successful, also building and running a project that uses this package is successfull. However I can not change forms that contain any components from the package (which is logical because these are not installed)

What I tried so far:
- Search forum and google for "access violation in module bds.exe"
- Clean project/restart Delphi IDE
- Comment out all RegisterComponents lines (still same error)

I don't know where to start. The error message is rather vague. Any suggestion how to get more information? Has bds.exe changed for XE 10.1?
Peter Below

Posts: 1,227
Registered: 12/16/99
Re: Installing package (VCL): access violation in bds.exe  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 31, 2017 10:14 AM   in response to: Robert [NL] Mit... in response to: Robert [NL] Mit...
Robert [NL] Mittendorff wrote:

Using Embarcadero® Delphi 10.1 Berlin Version 24.0.25048.9432 (update
2) VCL, 32 bit Windows

I try to install a package (which I wrote myself), but I get "Access
violation at address 3EA68791 in module 'bds.exe'. Read of address
00000010".

The package is big, 56642 lines when building; 60 components, but for
XE8 (and long time ago Delphi 7) this was no problem.

If you get an exception like that it indicates that some of your code
is trying to access an object through a nil reference, either in a unit
initialization section, or in code called from a Register procedure the
IDE will call when the package is loaded.


Building the package is successful, also building and running a
project that uses this package is successfull. However I can not
change forms that contain any components from the package (which is
logical because these are not installed)

What I tried so far:
- Search forum and google for "access violation in module bds.exe"
- Clean project/restart Delphi IDE
- Comment out all RegisterComponents lines (still same error)

THat points to a unit Initialization section as the error location.

I don't know where to start. The error message is rather vague. Any
suggestion how to get more information? Has bds.exe changed for XE
10.1?

The OPenTools API tends to change a little between versions. That can
have untoward effects if you register component or property editors, or
an IDE expert. Anything like that involved in your case?

--
Peter Below
TeamB

Robert [NL] Mit...

Posts: 100
Registered: 5/23/04
Re: Installing package (VCL): access violation in bds.exe  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 2, 2017 5:21 AM   in response to: Peter Below in response to: Peter Below
THat points to a unit Initialization section as the error location.

I don't have any initialization sections


The OPenTools API tends to change a little between versions. That can
have untoward effects if you register component or property editors, or
an IDE expert. Anything like that involved in your case?

I don't have any property editors or IDE experts, only components to register.

I will try to split my package in smaller ones and see what happens (can take some days; I have a lot of dependency between the components, so i fear a lot of circular references)
Paulo França La...

Posts: 16
Registered: 1/26/17
Re: Installing package (VCL): access violation in bds.exe  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 31, 2017 10:41 PM   in response to: Robert [NL] Mit... in response to: Robert [NL] Mit...
The package is big, 56642 lines when building; 60 components, but for XE8 (and long time ago Delphi 7) this was no problem.

Have you already tried with Berlin without the Update 2? Just to be sure it's not a problem with this latest Delphi update?
Robert [NL] Mit...

Posts: 100
Registered: 5/23/04
Re: Installing package (VCL): access violation in bds.exe  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 2, 2017 5:25 AM   in response to: Paulo França La... in response to: Paulo França La...
Have you already tried with Berlin without the Update 2? Just to be sure it's not a problem with this latest Delphi update?

I skipped original Berlin version and update 1 for VCL, so I don't know. Not sure if I can uninstall update 2. It will be probably a risk for my other projects.
Frank Staal

Posts: 115
Registered: 12/9/99
Re: Installing package (VCL): access violation in bds.exe  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 6, 2017 12:12 AM   in response to: Robert [NL] Mit... in response to: Robert [NL] Mit...
Robert [NL] Mittendorff wrote:
Have you already tried with Berlin without the Update 2? Just to be sure it's not a problem with this latest Delphi update?

I skipped original Berlin version and update 1 for VCL, so I don't know. Not sure if I can uninstall update 2. It will be probably a risk for my other projects.

A few weeks ago I had the same thing, strange Access Violation in the IDE while the compiled program simply worked. That turned out to be a .dll the IDE could not load. And to top it of it was a 32 bit dll in a 64 bit system, so it should be in SysWOW64. Maybe that helps.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02