AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren

Delphi-error

Ein Thema von question · begonnen am 19. Jul 2013 · letzter Beitrag vom 20. Jul 2013
Antwort Antwort
question

Registriert seit: 17. Apr 2013
97 Beiträge
 
#1

Delphi-error

  Alt 19. Jul 2013, 08:52
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?
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#2

AW: Delphi-error

  Alt 19. Jul 2013, 08:56
You seem to try to access an uninitialized object ( not instantiated)
Markus Kinzler
  Mit Zitat antworten Zitat
Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.754 Beiträge
 
Delphi 10.4 Sydney
 
#3

AW: Delphi-error

  Alt 19. Jul 2013, 08:59
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
Klaus
  Mit Zitat antworten Zitat
question

Registriert seit: 17. Apr 2013
97 Beiträge
 
#4

AW: Delphi-error

  Alt 19. Jul 2013, 13:04
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?
  Mit Zitat antworten Zitat
Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.754 Beiträge
 
Delphi 10.4 Sydney
 
#5

AW: Delphi-error

  Alt 19. Jul 2013, 13:08
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
Klaus

Geändert von Klaus01 (19. Jul 2013 um 13:11 Uhr)
  Mit Zitat antworten Zitat
Benutzerbild von Union
Union

Registriert seit: 18. Mär 2004
Ort: Luxembourg
3.487 Beiträge
 
Delphi 7 Enterprise
 
#6

AW: Delphi-error

  Alt 19. Jul 2013, 14:56
Please tag your sourcecode. And post only one question per thread.
Ibi fas ubi proxima merces
sudo /Developer/Library/uninstall-devtools --mode=all
  Mit Zitat antworten Zitat
Furtbichler
(Gast)

n/a Beiträge
 
#7

AW: Delphi-error

  Alt 20. Jul 2013, 07:58
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 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)
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:21 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