Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Delphi-error (https://www.delphipraxis.net/175795-delphi-error.html)

question 19. Jul 2013 08:52

Delphi-error
 
Hello,

I have made a Delphi project group and under the project I have created a new project including some unit and forms.
When I run the program ,it shows the following error-

“Zugriffsverletzung bei Adresse 0040538B in Module ‘projectName.exe’. Lesen von Adresse 00000000".


Could anybody please tell me, what does this error means?

mkinzler 19. Jul 2013 08:56

AW: Delphi-error
 
You seem to try to access an uninitialized object ( not instantiated)

Klaus01 19. Jul 2013 08:59

AW: Delphi-error
 
Hi,

when do you see this error message?
During programm startup?

Something is trying to access an Instance which has been created or has already been freed.

Klaus

question 19. Jul 2013 13:04

AW: Delphi-error
 
Hi,
I have another question

I have created one form which has he following attributes:
type
TForm1 = class(TForm)
btnEnter: TButton;
btnDisplay: TButton;
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure btnEnterClick(Sender: TObject);
procedure btnDisplayClick(Sender: TObject);
I have another form form2 which has its own button, but I would like to inherit the form1 into form2, but I don’t want to inherit the complete form1 ,just few functionality,such as ( btnEnter: TButton; procedure btnEnterClick(Sender: TObject) ), but I don’t have idea ,how to inherit a form partially.
Do you have any suggestion please?

Klaus01 19. Jul 2013 13:08

AW: Delphi-error
 
Hi,

create a third unit with the button methods/procedure/actions.
This unit can then be used in form1 and form2.

Basicaly split functional things from user-interface.

Klaus

Union 19. Jul 2013 14:56

AW: Delphi-error
 
Please tag your sourcecode. And post only one question per thread.

Furtbichler 20. Jul 2013 07:58

AW: Delphi-error
 
Zitat:

Zitat von question (Beitrag 1222011)
Could anybody please tell me, what does this error means?

Why didn't you let google translate this for you. That's what I usually do when a stranger tells me something I don't understand.
Zitat:

Zitat von google
"Access violation at address 0040538B in module 'projectName.exe'. Read from address 00000000 ".

And almost every programmer will know what 'Read from address 0000000' means (zero, null, nil etc)


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:52 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz