AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

My Delphi 2010 is sick

Ein Thema von WojTec · begonnen am 4. Jul 2012 · letzter Beitrag vom 9. Jul 2012
Antwort Antwort
Seite 1 von 3  1 23      
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

My Delphi 2010 is sick

  Alt 4. Jul 2012, 12:19
It is 14.0.3593.25826.

This thread can be continuation of that thread: Delphi don't recompile changed code.

I have program v1.0. Now I'm working on v1.1. So I want to make some small modification in one of the dialogs. It's simple: just added conditional call another function.

Delphi-Quellcode:
if cbPath.Checked then // <-- exceptions here
  // olde code
else
  // new code
;
That's all. After run, app raises AV and EReadError (can't read value from some component property I don't uses it in event handler ). Both are in if line (when if removed then working )

WTF is that

Geändert von WojTec ( 4. Jul 2012 um 12:23 Uhr)
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

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

AW: My Delphi 2010 is sick

  Alt 4. Jul 2012, 12:34
Is cPath existing and of the right type?
Markus Kinzler
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#3

Re: My Delphi 2010 is sick

  Alt 4. Jul 2012, 15:03
cbPath: TCheckBox, exists. I'm not talking about compilation, but about generated EXE.

Geändert von WojTec ( 4. Jul 2012 um 15:07 Uhr)
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

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

AW: My Delphi 2010 is sick

  Alt 4. Jul 2012, 15:28
Objects in Delphi are just references (pointers). These could reference into nirvana.
Markus Kinzler
  Mit Zitat antworten Zitat
Sailor

Registriert seit: 20. Jul 2008
Ort: Balaton
112 Beiträge
 
Delphi 2010 Professional
 
#5

AW: My Delphi 2010 is sick

  Alt 4. Jul 2012, 15:51
Probably cbPath has not yet been created. Check it by adding "IF cbPath <> NIL" to the first line.
  Mit Zitat antworten Zitat
Benutzerbild von jaenicke
jaenicke

Registriert seit: 10. Jun 2003
Ort: Berlin
9.359 Beiträge
 
Delphi 11 Alexandria
 
#6

AW: My Delphi 2010 is sick

  Alt 4. Jul 2012, 16:19
An access violation, ok, but the most important information you forgot: at which address?

Regarding the missing properties:
Did you open every form in Delphi without getting a similar error?
Sebastian Jänicke
Alle eigenen Projekte sind eingestellt, ebenso meine Homepage, Downloadlinks usw. im Forum bleiben aktiv!
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#7

Re: My Delphi 2010 is sick

  Alt 4. Jul 2012, 19:51
So, I have custom constructor, I'm setting components in this constructor, all what happen later depend on these settings - and working, till I add this check box or combo box (I tried both).

For example I'm drawing gradient, in method I'm using cbPath.Checked - working.
When I add this condition then stop working

Code:
---------------------------
Debugger Exception Notification
---------------------------
Project x.exe raised exception class EAccessViolation with message 'Access violation at address 0062DCF7 in module 'x.exe'. Read of address 00000000'.
---------------------------
Break  Continue  Help  
---------------------------
Code:
---------------------------
Debugger Exception Notification
---------------------------
Project x.exe raised exception class EReadError with message 'Error reading edtSteps.SpinOptions.MinValue: Access violation at address 0062DCF7 in module 'x.exe'. Read of address 00000000'.
---------------------------
Break  Continue  Help  
---------------------------
This behaviour is completely nonesense for me...

  Mit Zitat antworten Zitat
Benutzerbild von himitsu
himitsu
Online

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.177 Beiträge
 
Delphi 12 Athens
 
#8

AW: Re: My Delphi 2010 is sick

  Alt 4. Jul 2012, 22:47
address 00000xxx = nil

Something does not exist.

Probably cbPath has not yet been created. Check it by adding "IF cbPath <> NIL" to the first line.
or if not Assigned(cbPath) then DoError; , Assert(Assigned(cbPath)); , Assert(cbPath <> nil); , ...
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests

Geändert von himitsu ( 4. Jul 2012 um 22:49 Uhr)
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#9

Re: My Delphi 2010 is sick

  Alt 5. Jul 2012, 09:03
@himitsu, you are talking about first or second address in message?

Let's say Delphi creates it incorrectly (I repeat: error after changes, before working) - what to do?
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

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

AW: My Delphi 2010 is sick

  Alt 5. Jul 2012, 09:27
The second. The First is the adress of the Code itself.
Markus Kinzler
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 1 von 3  1 23      


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 17:41 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