Autor Beitrag
Hack Gott
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 409

Windows Vista
Delphi 2005 Personal, Delphi 7
BeitragVerfasst: So 07.12.08 21:13 
Hallo allerseits,

in meinem Projekt arbeite ich an einer Form mit (zur Zeit) 31 Komponenten darauf. Soweit so gut. Heute wollte ich mal wieder eine kleine Neuerung reinbesseren. Also habe ich ein paar neue Komponenten darauf geklatscht. Und hier beginnt es seltsam zu werden. Mit einer zusätzlichen Komponente (völlig egal welcher) startet das Programm normal, beim Beenden aber sagt es "Exception EInvalidPointer in Modul Project1.exe bei 0000277C. Ungültige Zeigeroperation".
Nehme ich die neue Komponente wieder runter läuft es wieder reibungslos.

Setze ich sogar mehr als eine neue Komponente darauf startet es nicht mal mehr und redet nur noch von einer EAccsessViolation beim Lesen von Adresse 0000000000.

Was noch interessant sein könnte: Die Form ist 3x vererbt worden. Hat aber schon des öfteren geklappt mit neuen Komponenten.

Was könnte den da schief laufen?
Was könnte ich noch ausprobieren?
Wie bekomme ich den nun noch Komponenten auf die Form?

:cry: :cry: :cry:

Hilfe!

Arne

_________________
"Je mehr Käse, desto mehr Löcher; Je mehr Löcher, desto weniger Käse. Daraus folgt: Je mehr Käse desto weniger Käse!"
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 07.12.08 21:17 
Hast du irgendetwas in FormCreate oder FormShow oder so drin? Dann deaktiviere das am besten mal schrittweise.

Gibt es eigene Komponenten? Oder sind alles Standardkomponenten?

An der Anzahl der Komponenten kann das nicht direkt liegen, aber wenn es fehlerhafte Speicherzugriffe gibt, dann kann es sein, dass diese durch den veränderten Speicherbedarf beim Start zu Tage treten.
Hack Gott Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 409

Windows Vista
Delphi 2005 Personal, Delphi 7
BeitragVerfasst: So 07.12.08 21:28 
user profile iconjaenicke hat folgendes geschrieben Zum zitierten Posting springen:
Hast du irgendetwas in FormCreate oder FormShow oder so drin? Dann deaktiviere das am besten mal schrittweise.

Gibt es eigene Komponenten? Oder sind alles Standardkomponenten?

An der Anzahl der Komponenten kann das nicht direkt liegen, aber wenn es fehlerhafte Speicherzugriffe gibt, dann kann es sein, dass diese durch den veränderten Speicherbedarf beim Start zu Tage treten.


Also, Ich habe jetzt einfach mal alles in FormShow und FormCreate deaktiviert und dann zwei Labels erstellt.
-> Ergebniss: Ich bekomme eine Gnadenfrist. Das Programm startet zwar, aber beim Beenden bekomme ich jetzt eine "EAccsessViolation in ..."

Auf der Form sind nur 4 verschiedene Komponenten
*PopupMenü
*Image
*Label
*Timer

Die einzige Komponente, die nicht ganz "Standard" ist das Image, weil ich dort mit pngimage.pas PNGs geladen habe...

_________________
"Je mehr Käse, desto mehr Löcher; Je mehr Löcher, desto weniger Käse. Daraus folgt: Je mehr Käse desto weniger Käse!"
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 08.12.08 14:17 
Kannst Du die PNG kurzzeitig entfernen? Bzw. verwende dort mal eine aktualisierte VErsion der Unit.

Ferner untersuche mal den Callstack zum Crash-Zeitpunkt (EurekaLog oder madExcept) und poste diesen mal hier.

An der Anzahl der Komponenten liegt es sicher nicht. Hatte schon teilweise Testprojekte mit >4000 (non-standard)-Komponenten auf einer Form ... Das Zeichnen ist zwar dann ewig lahm, aber geht ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mo 08.12.08 14:50 
Ich würd eher sagen, dass du ein anderes Problem hast, dass jetzt "zufällig" auftaucht, weil z.B. die Speicherverteilung durch die zusätzlichen Komponenten anders ist, o.ä.
Schau mal unter Projekt -> Optionen -> Compiler, und schalt dort die Laufzeitfehler an. Danach noch einmal das Projekt neu erzeugen, und dann mal schauen, ob der irgendwo anschlägt.

_________________
PROGRAMMER: A device for converting coffee into software.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 08.12.08 14:54 
Vor allem die Bereichsüberprüfung wäre sinnvoll (aber nur zum Debuggen), aber erstmal schauen was bei dem was user profile iconBenBE meinte herauskommt.
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Mo 08.12.08 15:44 
Und je nach Delphi-Version gab es auch mal eine Funktion Suchen->Laufzeitfehler suchen (wenn, dann nur zur Laufzeit verfügbar).

Hier kannst du dann mal die Adresse eingeben, an der der Fehler aufgetreten ist... also nicht die, wo er hingefasst hat, sondern die wo er grade war. Ist meistens aus der Meldung ersichtlich welche das ist, sofern das mit ausgegeben wird.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Hack Gott Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 409

Windows Vista
Delphi 2005 Personal, Delphi 7
BeitragVerfasst: Mo 08.12.08 16:51 
user profile iconBenBE hat folgendes geschrieben Zum zitierten Posting springen:
Kannst Du die PNG kurzzeitig entfernen? Bzw. verwende dort mal eine aktualisierte VErsion der Unit.

Ferner untersuche mal den Callstack zum Crash-Zeitpunkt (EurekaLog oder madExcept) und poste diesen mal hier.

An der Anzahl der Komponenten liegt es sicher nicht. Hatte schon teilweise Testprojekte mit >4000 (non-standard)-Komponenten auf einer Form ... Das Zeichnen ist zwar dann ewig lahm, aber geht ...


Das ist leider die aktuellste Version. Nach langem Googlen bin ich aber dann noch auf diesen Foreneintrag gestoßen: www.delphipraxis.net/post888259.html Wirklich anfangen kann ich damit aber irgendwie nichts, aber vielleicht könnt ihr mir ja auf die Sprünge helfen...?

madExcept liefert folgende Daten (bei nur einer Komponente zusätzlich):
ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
date/time         : 2008-12-08, 16:45:00, 698ms
computer name     : ARNES-PC
user name         : Arne
operating system  : Windows Vista Service Pack 1 build 6001
system language   : German
system up time    : 26 minutes 37 seconds 
program up time   : 6 seconds 
processor         : Intel(R) Celeron(R) M CPU        530  @ 1.73GHz
physical memory   : 1675/3063 MB (free/total)
free disk space   : (C:) 66,20 GB
display mode      : 1280x800, 32 bit
process id        : $119c
allocated memory  : 55,72 MB
command line      : "C:\Users\Arne\Desktop\Bibliotheksmanager 2008\Project1.exe" download:db
executable        : Project1.exe
exec. date/time   : 2008-12-08 16:44
version           : 1.5.5.172
madExcept version : 2.7k
exception class   : EInvalidPointer
exception message : Ungültige Zeigeroperation.

main thread ($5e4):
00402797 +0013 Project1.exe System            @FreeMem
00403c48 +000c Project1.exe System            TObject.FreeInstance
00403ffe +0002 Project1.exe System            @ClassDestroy
00449106 +001e Project1.exe Graphics          TFont.Destroy
00403c90 +0008 Project1.exe System            TObject.Free
00449cdb +0023 Project1.exe Graphics          TCanvas.Destroy
0046b4bd +0019 Project1.exe Controls          TControlCanvas.Destroy
00403c90 +0008 Project1.exe System            TObject.Free
00474dbc +0020 Project1.exe Controls          TGraphicControl.Destroy
00464249 +001d Project1.exe ExtCtrls          TImage.Destroy
0046f301 +008d Project1.exe Controls          TWinControl.Destroy
00485ac4 +0028 Project1.exe Forms             TScrollingWinControl.Destroy
004866e6 +00c6 Project1.exe Forms             TCustomForm.Destroy
004458df +0047 Project1.exe Classes           TComponent.DestroyComponents
00484972 +0032 Project1.exe Forms             DoneApplication
00432faa +0026 Project1.exe SysUtils          DoExitProc
004049fd +0021 Project1.exe System            @Halt0
0053f6b4 +1420 Project1.exe Project1 420 +323 initialization
7657490f +0010 kernel32.dll                   BaseThreadInitThunk

thread $d0c:
77959a94 +00 ntdll.dll              KiFastSystemCallRet
77959252 +0a ntdll.dll              NtWaitForSingleObject
76502fab +5b WS2_32.dll             WahReferenceContextByHandle
76501690 +9c WS2_32.dll             select
0042e825 +0d Project1.exe madExcept CallThreadProc
0042e867 +37 Project1.exe madExcept ThreadExceptFrame
7657490f +10 kernel32.dll           BaseThreadInitThunk
>> created by main thread ($5e4) at:
76192d7d +00 wininet.dll            

thread $17bc:
77959a94 +00 ntdll.dll     KiFastSystemCallRet
779593e2 +0a ntdll.dll     NtWaitForWorkViaWorkerFactory
7657490f +10 kernel32.dll  BaseThreadInitThunk

thread $648:
77959a94 +00 ntdll.dll     KiFastSystemCallRet
779593e2 +0a ntdll.dll     NtWaitForWorkViaWorkerFactory
7657490f +10 kernel32.dll  BaseThreadInitThunk

thread $df8:
77959a94 +00 ntdll.dll              KiFastSystemCallRet
77958ce2 +0a ntdll.dll              NtRemoveIoCompletion
76575234 +23 kernel32.dll           GetQueuedCompletionStatus
0042e825 +0d Project1.exe madExcept CallThreadProc
0042e867 +37 Project1.exe madExcept ThreadExceptFrame
7657490f +10 kernel32.dll           BaseThreadInitThunk
>> created by thread $17bc at:
76782591 +00 RPCRT4.dll             

thread $dac:
77959a94 +00 ntdll.dll     KiFastSystemCallRet
77959242 +0a ntdll.dll     NtWaitForMultipleObjects
7657490f +10 kernel32.dll  BaseThreadInitThunk

thread $7bc: <priority:1>
77959a94 +00 ntdll.dll     KiFastSystemCallRet
77958ce2 +0a ntdll.dll     NtRemoveIoCompletion
7657490f +10 kernel32.dll  BaseThreadInitThunk

modules:
00400000 Project1.exe  1.5.5.172        C:\Users\Arne\Desktop\Bibliotheksmanager 2008
16080000 mdnsNSP.dll   1.0.5.11         C:\Program Files\Bonjour
70b10000 AcLayers.DLL  6.0.6001.18089   C:\Windows\AppPatch
72600000 winspool.drv  6.0.6001.18000   C:\Windows\system32
72a20000 ShimEng.dll   6.0.6000.16386   C:\Windows\system32
73230000 pnrpnsp.dll   6.0.6001.18000   C:\Windows\system32
733a0000 winrnr.dll    6.0.6000.16386   C:\Windows\System32
733b0000 wshbth.dll    6.0.6000.16386   C:\Windows\system32
733c0000 napinsp.dll   6.0.6001.18000   C:\Windows\system32
73400000 rasadhlp.dll  6.0.6000.16386   C:\Windows\system32
73c60000 sensapi.dll   6.0.6000.16386   C:\Windows\system32
74490000 wsock32.dll   6.0.6001.18000   C:\Windows\system32
74c00000 NLAapi.dll    6.0.6001.18000   C:\Windows\system32
74c20000 OLEACC.dll    4.2.5406.0       C:\Windows\system32
74c60000 WINMM.dll     6.0.6001.18000   C:\Windows\system32
74ca0000 TAPI32.dll    6.0.6000.16386   C:\Windows\system32
74ed0000 comctl32.dll  6.10.6001.18000  C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc
75090000 RASAPI32.dll  6.0.6001.18000   C:\Windows\system32
751d0000 uxtheme.dll   6.0.6001.18000   C:\Windows\system32
752c0000 rtutils.dll   6.0.6000.16386   C:\Windows\system32
75390000 rasman.dll    6.0.6001.18000   C:\Windows\system32
75460000 wshtcpip.dll  6.0.6001.18000   C:\Windows\System32
75590000 schannel.dll  6.0.6001.18000   C:\Windows\system32
757a0000 mswsock.dll   6.0.6001.18000   C:\Windows\system32
75800000 wship6.dll    6.0.6001.18000   C:\Windows\System32
75810000 version.dll   6.0.6001.18000   C:\Windows\system32
758b0000 credssp.dll   6.0.6001.18000   C:\Windows\system32
75970000 dhcpcsvc6.DLL 6.0.6001.18000   C:\Windows\system32
759a0000 WINNSI.DLL    6.0.6001.18000   C:\Windows\system32
759b0000 dhcpcsvc.DLL  6.0.6001.18000   C:\Windows\system32
759f0000 IPHLPAPI.DLL  6.0.6001.18000   C:\Windows\system32
75a90000 CRYPT32.dll   6.0.6001.18000   C:\Windows\system32
75b90000 MPR.dll       6.0.6001.18000   C:\Windows\system32
75bf0000 MSASN1.dll    6.0.6000.16386   C:\Windows\system32
75c30000 DNSAPI.dll    6.0.6001.18000   C:\Windows\system32
75e40000 NETAPI32.dll  6.0.6001.18157   C:\Windows\system32
75f80000 apphelp.dll   6.0.6001.18000   C:\Windows\system32
76010000 Secur32.dll   6.0.6001.18000   C:\Windows\system32
76030000 USERENV.dll   6.0.6001.18000   C:\Windows\system32
76170000 wininet.dll   7.0.6001.18148   C:\Windows\system32
762d0000 msvcrt.dll    7.0.6001.18000   C:\Windows\system32
76380000 WLDAP32.dll   6.0.6001.18000   C:\Windows\system32
763d0000 MSCTF.dll     6.0.6001.18000   C:\Windows\system32
764a0000 SHLWAPI.dll   6.0.6001.18000   C:\Windows\system32
76500000 WS2_32.dll    6.0.6001.18000   C:\Windows\system32
76530000 kernel32.dll  6.0.6001.18000   C:\Windows\system32
76610000 URLMON.DLL    7.0.6001.18148   C:\Windows\system32
76740000 RPCRT4.dll    6.0.6001.18051   C:\Windows\system32
76810000 ADVAPI32.dll  6.0.6001.18000   C:\Windows\system32
768e0000 comdlg32.dll  6.0.6001.18000   C:\Windows\system32
76960000 oleaut32.dll  6.0.6001.18000   C:\Windows\system32
769f0000 user32.dll    6.0.6001.18000   C:\Windows\system32
76a90000 shell32.dll   6.0.6001.18062   C:\Windows\system32
775a0000 SETUPAPI.dll  6.0.6001.18000   C:\Windows\system32
77730000 USP10.dll     1.626.6001.18000 C:\Windows\system32
777b0000 ole32.dll     6.0.6001.18000   C:\Windows\system32
77900000 ntdll.dll     6.0.6001.18000   C:\Windows\system32
77a30000 PSAPI.DLL     6.0.6000.16386   C:\Windows\system32
77a40000 Normaliz.dll  6.0.6000.16386   C:\Windows\system32
77a80000 IMM32.DLL     6.0.6001.18000   C:\Windows\system32
77aa0000 NSI.dll       6.0.6001.18000   C:\Windows\system32
77ab0000 GDI32.dll     6.0.6001.18023   C:\Windows\system32
77b00000 iertutil.dll  7.0.6001.18148   C:\Windows\system32
77b50000 LPK.DLL       6.0.6001.18000   C:\Windows\system32

hardware:
+ Acronis Devices
  - Acronis True Image Backup Archive Explorer (driver 11-15-2005)
+ AVM USB-Fernanschluss
  - WLAN.home  (182.177.100.142) (driver 1.11.1.1)
+ Batteries
  - Microsoft ACPI-konforme Kontrollmethodenbatterie
  - Microsoft-Netzteil
+ Computer
  - ACPI x86-basierter PC
+ Disk drives
  - ST9120822AS
+ Display adapters
  - Mobile Intel(R) 965 Express Chipset Family (driver 7.14.10.1437)
  - Mobile Intel(R) 965 Express Chipset Family (driver 7.14.10.1437)
+ DVD/CD-ROM drives
  - HL-DT-ST DVDRAM GSA-T20L ATA Device
+ Human Interface Devices
  - HID-konformes Gerät
  - HP Quick Launch Buttons (driver 4.20.5.0)
+ IDE ATA/ATAPI controllers
  - IDE-Kanal
  - IDE-Kanal
  - Intel(R) 82801HEM/HBM SATA AHCI Controller (driver 7.5.0.1017)
  - Intel(R) ICH8M Ultra ATA Storage Controllers - 2850 (driver 8.2.0.1011)
+ Keyboards
  - HID-Tastatur
  - Standard 101/102-Key or Microsoft Natural PS/2 Keyboard with HP QLB (driver 1.0.0.1)
+ Mice and other pointing devices
  - Synaptics PS/2 Port TouchPad (driver 11.0.7.0)
+ Modems
  - Agere Systems HDA Modem (driver 2.1.88.0)
+ Monitors
  - PnP-Monitor (Standard)
+ Netzwerkadapter
  - Broadcom 802.11g-Netzwerkadapter (driver 4.150.20.0)
  - Hamachi Network Interface (driver 6.0.2.2)
  - Intel(R) 82562GT 10/100 Network Connection (driver 9.12.17.0)
+ Processors
  - Intel(R) Celeron(R) M CPU        530  @ 1.73GHz
+ Sound, video and game controllers
  - SoundMAX Integrated Digital HD Audio (driver 6.10.1.5230)
+ Storage controllers
  - Microsoft iSCSI-Initiator
+ Storage volume shadow copies
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
+ System devices
  - ACPI-Deckel
  - ACPI-Energiezustandknopf
  - ACPI-Lüfter
  - ACPI-Lüfter
  - ACPI-Lüfter
  - ACPI-Lüfter
  - ACPI-Lüfter
  - ACPI-Schalter
  - ACPI-Thermozone
  - ACPI-Thermozone
  - ACPI-Thermozone
  - ACPI-Thermozone
  - ACPI-Thermozone
  - Anwendungsschnellstarttaste
  - DMA-Controller
  - Eingebetteter, Microsoft ACPI-konformer Controller
  - Erweiterter E/A-Bus
  - Hauptplatinenressourcen
  - Hauptplatinenressourcen
  - Hauptplatinenressourcen
  - High Definition Audio-Controller
  - High Precision Event Timer (driver 7.0.0.1011)
  - Intel(R) 82801 PCI Bridge - 2448 (driver 7.0.0.1011)
  - Intel(R) ICH8 Family PCI Express Root Port 1 - 283F (driver 8.3.0.1013)
  - Intel(R) ICH8 Family PCI Express Root Port 2 - 2841 (driver 8.3.0.1013)
  - Intel(R) ICH8M LPC Interface Controller - 2815 (driver 8.3.0.1013)
  - Microsoft ACPI-konformes System
  - Microsoft Composite Battery
  - Microsoft Windows-Verwaltungsschnittstelle für ACPI
  - Microsoft-Systemverwaltungs-BIOS-Treiber
  - Mobile Intel(R) GME965/GLE960 Express Processor to DRAM Controller - 2A10  (driver 8.3.1.1004)
  - Numerischer Coprozessor
  - PCI-Bus
  - PnP-Softwaregeräte-Enumerator
  - Programmierbarer Interruptcontroller
  - System CMOS/Echtzeituhr
  - Systemlautsprecher
  - Systemplatine
  - Systemzeitgeber
  - Terminalserver-Maustreiber
  - Terminalserver-Tastaturtreiber
  - UMBus-Enumerator
  - UMBus-Stamm-Bus-Enumerator
  - Volume-Verwaltung
+ Universal Serial Bus controllers
  - Intel(R) ICH8-Familie USB universeller Hostcontroller - 2830
  - Intel(R) ICH8-Familie USB universeller Hostcontroller - 2831
  - Intel(R) ICH8-Familie USB universeller Hostcontroller - 2832
  - Intel(R) ICH8-Familie USB universeller Hostcontroller - 2834
  - Intel(R) ICH8-Familie USB2 erweiterter Hostcontroller - 2836
  - Intel(R) ICH8-Familie USB2 erweiterter Hostcontroller - 283A
  - USB-Root-Hub
  - USB-Root-Hub
  - USB-Root-Hub
  - USB-Root-Hub
  - USB-Root-Hub
  - USB-Root-Hub

disassembling:
[...]
00402789   call    dword ptr [$540048]    ; System.SysFreeMem
0040278f   mov     ebx, eax
00402791   test    ebx, ebx
00402793   jz      loc_4027a0
00402795   mov     al, 2
00402797 > call    +$130 ($4028cc)        ; System.Error
0040279c   jmp     loc_4027a0
0040279e   xor     ebx, ebx
004027a0   mov     eax, ebx
004027a2   pop     ebx
004027a3   ret


Und bei 2 oder mehr Komponenten zusätzlich (er startet nicht, bringt direkt den Fehler und crascht dann):
ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
date/time         : 2008-12-08, 16:54:17, 3ms
computer name     : ARNES-PC
user name         : Arne
operating system  : Windows Vista Service Pack 1 build 6001
system language   : German
system up time    : 35 minutes 54 seconds 
program up time   : 8 seconds 
processor         : Intel(R) Celeron(R) M CPU        530  @ 1.73GHz
physical memory   : 1677/3063 MB (free/total)
free disk space   : (C:) 66,19 GB
display mode      : 1280x800, 32 bit
process id        : $124c
allocated memory  : 50,54 MB
command line      : "C:\Users\Arne\Desktop\Bibliotheksmanager 2008\Project1.exe" download:db
executable        : Project1.exe
exec. date/time   : 2008-12-08 16:54
version           : 1.5.5.172
madExcept version : 2.7k
exception class   : EAccessViolation
exception message : Zugriffsverletzung bei Adresse 00000000. Lesen von Adresse 00000000.

main thread ($11b8):
00000000 +000 ???                            
77959b66 +081 ntdll.dll                      RtlRaiseStatus
779599f2 +00a ntdll.dll                      KiUserExceptionDispatcher
004459b0 +040 Project1.exe Classes           TComponent.Notification
0046bf63 +00f Project1.exe Controls          TControl.Notification
00486857 +00f Project1.exe Forms             TCustomForm.Notification
0044587d +01d Project1.exe Classes           TComponent.RemoveComponent
004456ed +055 Project1.exe Classes           TComponent.Destroy
0046bcec +0a8 Project1.exe Controls          TControl.Destroy
00403ffe +002 Project1.exe System            @ClassDestroy
0044995a +01e Project1.exe Graphics          TBrush.Destroy
0046f301 +08d Project1.exe Controls          TWinControl.Destroy
00485ac4 +028 Project1.exe Forms             TScrollingWinControl.Destroy
004866e6 +0c6 Project1.exe Forms             TCustomForm.Destroy
77959b66 +081 ntdll.dll                      RtlRaiseStatus
779599f2 +00a ntdll.dll                      KiUserExceptionDispatcher
004459b0 +040 Project1.exe Classes           TComponent.Notification
0046bf63 +00f Project1.exe Controls          TControl.Notification
00486857 +00f Project1.exe Forms             TCustomForm.Notification
0044587d +01d Project1.exe Classes           TComponent.RemoveComponent
004456ed +055 Project1.exe Classes           TComponent.Destroy
004647e9 +025 Project1.exe ExtCtrls          TTimer.Destroy
77959b66 +081 ntdll.dll                      RtlRaiseStatus
0046c28b +013 Project1.exe Controls          TControl.SetHeight
0045cb0c +09c Project1.exe StdCtrls          TCustomEdit.AdjustHeight
004459b0 +040 Project1.exe Classes           TComponent.Notification
0046bf63 +00f Project1.exe Controls          TControl.Notification
00486857 +00f Project1.exe Forms             TCustomForm.Notification
00445856 +04e Project1.exe Classes           TComponent.InsertComponent
00445673 +027 Project1.exe Classes           TComponent.Create
0046478a +016 Project1.exe ExtCtrls          TTimer.Create
00443219 +0ad Project1.exe Classes           CreateComponent
00443448 +088 Project1.exe Classes           TReader.ReadComponent
004436f9 +089 Project1.exe Classes           TReader.ReadDataInner
00443638 +038 Project1.exe Classes           TReader.ReadData
00445ab9 +001 Project1.exe Classes           TComponent.ReadState
0046beed +02d Project1.exe Controls          TControl.ReadState
0046f441 +025 Project1.exe Controls          TWinControl.ReadState
004869f1 +06d Project1.exe Forms             TCustomForm.ReadState
004444a0 +1d8 Project1.exe Classes           TReader.ReadRootComponent
00441a6e +032 Project1.exe Classes           TStream.ReadComponent
0043f2af +057 Project1.exe Classes           InternalReadComponentRes
0043f439 +079 Project1.exe Classes           InitComponent
0046dfa0 +18c Project1.exe Controls          TControl.WndProc
004712ea +206 Project1.exe Controls          TWinControl.WndProc
0048777f +4b3 Project1.exe Forms             TCustomForm.WndProc
0046dd68 +024 Project1.exe Controls          TControl.Perform
0046cc65 +015 Project1.exe Controls          TControl.SetColor
0048841e +026 Project1.exe Forms             TCustomForm.CMCtl3DChanged
0046dfa0 +18c Project1.exe Controls          TControl.WndProc
004045d4 +010 Project1.exe System            @TryFinallyExit
00402285 +0f5 Project1.exe System            SysGetMem
00404021 +01d Project1.exe System            @AfterConstruction
00403c68 +010 Project1.exe System            TObject.Create
0048e871 +031 Project1.exe Forms             TApplication.CreateForm
0053f291 +ff1 Project1.exe Project1 358 +261 initialization
7657490f +010 kernel32.dll                   BaseThreadInitThunk

modules:
00400000 Project1.exe 1.5.5.172        C:\Users\Arne\Desktop\Bibliotheksmanager 2008
70b10000 AcLayers.DLL 6.0.6001.18089   C:\Windows\AppPatch
72600000 winspool.drv 6.0.6001.18000   C:\Windows\system32
72a20000 ShimEng.dll  6.0.6000.16386   C:\Windows\system32
74490000 wsock32.dll  6.0.6001.18000   C:\Windows\system32
74ed0000 comctl32.dll 6.10.6001.18000  C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc
751d0000 uxtheme.dll  6.0.6001.18000   C:\Windows\system32
75810000 version.dll  6.0.6001.18000   C:\Windows\system32
75b90000 MPR.dll      6.0.6001.18000   C:\Windows\system32
75f80000 apphelp.dll  6.0.6001.18000   C:\Windows\system32
76010000 Secur32.dll  6.0.6001.18000   C:\Windows\system32
76030000 USERENV.dll  6.0.6001.18000   C:\Windows\system32
76170000 wininet.dll  7.0.6001.18148   C:\Windows\system32
762d0000 msvcrt.dll   7.0.6001.18000   C:\Windows\system32
763d0000 MSCTF.dll    6.0.6001.18000   C:\Windows\system32
764a0000 SHLWAPI.dll  6.0.6001.18000   C:\Windows\system32
76500000 WS2_32.dll   6.0.6001.18000   C:\Windows\system32
76530000 kernel32.dll 6.0.6001.18000   C:\Windows\system32
76610000 URLMON.DLL   7.0.6001.18148   C:\Windows\system32
76740000 RPCRT4.dll   6.0.6001.18051   C:\Windows\system32
76810000 ADVAPI32.dll 6.0.6001.18000   C:\Windows\system32
768e0000 comdlg32.dll 6.0.6001.18000   C:\Windows\system32
76960000 oleaut32.dll 6.0.6001.18000   C:\Windows\system32
769f0000 user32.dll   6.0.6001.18000   C:\Windows\system32
76a90000 shell32.dll  6.0.6001.18062   C:\Windows\system32
77730000 USP10.dll    1.626.6001.18000 C:\Windows\system32
777b0000 ole32.dll    6.0.6001.18000   C:\Windows\system32
77900000 ntdll.dll    6.0.6001.18000   C:\Windows\system32
77a40000 Normaliz.dll 6.0.6000.16386   C:\Windows\system32
77a80000 IMM32.DLL    6.0.6001.18000   C:\Windows\system32
77aa0000 NSI.dll      6.0.6001.18000   C:\Windows\system32
77ab0000 GDI32.dll    6.0.6001.18023   C:\Windows\system32
77b00000 iertutil.dll 7.0.6001.18148   C:\Windows\system32
77b50000 LPK.DLL      6.0.6001.18000   C:\Windows\system32

hardware:
+ Acronis Devices
  - Acronis True Image Backup Archive Explorer (driver 11-15-2005)
+ AVM USB-Fernanschluss
  - WLAN.home  (182.177.100.142) (driver 1.11.1.1)
+ Batteries
  - Microsoft ACPI-konforme Kontrollmethodenbatterie
  - Microsoft-Netzteil
+ Computer
  - ACPI x86-basierter PC
+ Disk drives
  - ST9120822AS
+ Display adapters
  - Mobile Intel(R) 965 Express Chipset Family (driver 7.14.10.1437)
  - Mobile Intel(R) 965 Express Chipset Family (driver 7.14.10.1437)
+ DVD/CD-ROM drives
  - HL-DT-ST DVDRAM GSA-T20L ATA Device
+ Human Interface Devices
  - HID-konformes Gerät
  - HP Quick Launch Buttons (driver 4.20.5.0)
+ IDE ATA/ATAPI controllers
  - IDE-Kanal
  - IDE-Kanal
  - Intel(R) 82801HEM/HBM SATA AHCI Controller (driver 7.5.0.1017)
  - Intel(R) ICH8M Ultra ATA Storage Controllers - 2850 (driver 8.2.0.1011)
+ Keyboards
  - HID-Tastatur
  - Standard 101/102-Key or Microsoft Natural PS/2 Keyboard with HP QLB (driver 1.0.0.1)
+ Mice and other pointing devices
  - Synaptics PS/2 Port TouchPad (driver 11.0.7.0)
+ Modems
  - Agere Systems HDA Modem (driver 2.1.88.0)
+ Monitors
  - PnP-Monitor (Standard)
+ Netzwerkadapter
  - Broadcom 802.11g-Netzwerkadapter (driver 4.150.20.0)
  - Hamachi Network Interface (driver 6.0.2.2)
  - Intel(R) 82562GT 10/100 Network Connection (driver 9.12.17.0)
+ Processors
  - Intel(R) Celeron(R) M CPU        530  @ 1.73GHz
+ Sound, video and game controllers
  - SoundMAX Integrated Digital HD Audio (driver 6.10.1.5230)
+ Storage controllers
  - Microsoft iSCSI-Initiator
+ Storage volume shadow copies
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
  - Standard-Volumeschattenkopie
+ System devices
  - ACPI-Deckel
  - ACPI-Energiezustandknopf
  - ACPI-Lüfter
  - ACPI-Lüfter
  - ACPI-Lüfter
  - ACPI-Lüfter
  - ACPI-Lüfter
  - ACPI-Schalter
  - ACPI-Thermozone
  - ACPI-Thermozone
  - ACPI-Thermozone
  - ACPI-Thermozone
  - ACPI-Thermozone
  - Anwendungsschnellstarttaste
  - DMA-Controller
  - Eingebetteter, Microsoft ACPI-konformer Controller
  - Erweiterter E/A-Bus
  - Hauptplatinenressourcen
  - Hauptplatinenressourcen
  - Hauptplatinenressourcen
  - High Definition Audio-Controller
  - High Precision Event Timer (driver 7.0.0.1011)
  - Intel(R) 82801 PCI Bridge - 2448 (driver 7.0.0.1011)
  - Intel(R) ICH8 Family PCI Express Root Port 1 - 283F (driver 8.3.0.1013)
  - Intel(R) ICH8 Family PCI Express Root Port 2 - 2841 (driver 8.3.0.1013)
  - Intel(R) ICH8M LPC Interface Controller - 2815 (driver 8.3.0.1013)
  - Microsoft ACPI-konformes System
  - Microsoft Composite Battery
  - Microsoft Windows-Verwaltungsschnittstelle für ACPI
  - Microsoft-Systemverwaltungs-BIOS-Treiber
  - Mobile Intel(R) GME965/GLE960 Express Processor to DRAM Controller - 2A10  (driver 8.3.1.1004)
  - Numerischer Coprozessor
  - PCI-Bus
  - PnP-Softwaregeräte-Enumerator
  - Programmierbarer Interruptcontroller
  - System CMOS/Echtzeituhr
  - Systemlautsprecher
  - Systemplatine
  - Systemzeitgeber
  - Terminalserver-Maustreiber
  - Terminalserver-Tastaturtreiber
  - UMBus-Enumerator
  - UMBus-Stamm-Bus-Enumerator
  - Volume-Verwaltung
+ Universal Serial Bus controllers
  - Intel(R) ICH8-Familie USB universeller Hostcontroller - 2830
  - Intel(R) ICH8-Familie USB universeller Hostcontroller - 2831
  - Intel(R) ICH8-Familie USB universeller Hostcontroller - 2832
  - Intel(R) ICH8-Familie USB universeller Hostcontroller - 2834
  - Intel(R) ICH8-Familie USB2 erweiterter Hostcontroller - 2836
  - Intel(R) ICH8-Familie USB2 erweiterter Hostcontroller - 283A
  - USB-Root-Hub
  - USB-Root-Hub
  - USB-Root-Hub
  - USB-Root-Hub
  - USB-Root-Hub
  - USB-Root-Hub


user profile iconXentar hat folgendes geschrieben Zum zitierten Posting springen:
Ich würd eher sagen, dass du ein anderes Problem hast, dass jetzt "zufällig" auftaucht, weil z.B. die Speicherverteilung durch die zusätzlichen Komponenten anders ist, o.ä.
Schau mal unter Projekt -> Optionen -> Compiler, und schalt dort die Laufzeitfehler an. Danach noch einmal das Projekt neu erzeugen, und dann mal schauen, ob der irgendwo anschlägt.


Selbes Ergebnis: Zugriffsverletzung beim Beenden.


user profile iconMartok hat folgendes geschrieben Zum zitierten Posting springen:
Und je nach Delphi-Version gab es auch mal eine Funktion Suchen->Laufzeitfehler suchen (wenn, dann nur zur Laufzeit verfügbar).

Hier kannst du dann mal die Adresse eingeben, an der der Fehler aufgetreten ist... also nicht die, wo er hingefasst hat, sondern die wo er grade war. Ist meistens aus der Meldung ersichtlich welche das ist, sofern das mit ausgegeben wird.


Also ich hab da höchstens "zu Adresse springen". Weiß nicht ob du das damit meinst.

Ach und was mir noch gerade einfällt: Die Form wird ja nicht mal angezeigt, sondern nur erzeugt (sollte das dafür eine Rolle spielen).

_________________
"Je mehr Käse, desto mehr Löcher; Je mehr Löcher, desto weniger Käse. Daraus folgt: Je mehr Käse desto weniger Käse!"


Zuletzt bearbeitet von Hack Gott am Mo 08.12.08 16:55, insgesamt 1-mal bearbeitet
freedy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 403
Erhaltene Danke: 1

Winows 7
Delphi XE
BeitragVerfasst: Mo 08.12.08 16:54 
Gibst du in deinem Projekt irgendetwas von Hand frei? Mir scheint das so, dass beim Beenden, wo ja noch bestehenden Objekte zerstört werden, mind. eins nicht existiert; der Zeiger zeigt aber noch auf ein Objekt.

Hast du evtl. noch Sourcen?
Hack Gott Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 409

Windows Vista
Delphi 2005 Personal, Delphi 7
BeitragVerfasst: Mo 08.12.08 16:59 
user profile iconfreedy hat folgendes geschrieben Zum zitierten Posting springen:
Gibst du in deinem Projekt irgendetwas von Hand frei? Mir scheint das so, dass beim Beenden, wo ja noch bestehenden Objekte zerstört werden, mind. eins nicht existiert; der Zeiger zeigt aber noch auf ein Objekt.

Hast du evtl. noch Sourcen?


Ja, hauptsächlich erstelle TStringLists. Diese gebe ich mit FreeAndNil(...); im finally Teil frei.
Ansonsten habe ich nur noch (in einer völlig anderen Unit) ein Objekt zum erstellen von Barcodes. Auch dieses gebe ich aber nach der Benutzung wieder mit FreeAndNil(...); frei.

Ach und was meinst du mit Sourcen?

_________________
"Je mehr Käse, desto mehr Löcher; Je mehr Löcher, desto weniger Käse. Daraus folgt: Je mehr Käse desto weniger Käse!"
freedy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 403
Erhaltene Danke: 1

Winows 7
Delphi XE
BeitragVerfasst: Mo 08.12.08 17:09 
Kannst du die StringLists und die Barcodes mal auskommentieren? Evtl. ist das schon des Rätsels Lösung. Und bei Sourcen dachte ich, dass du evtl. mal die PAS-Datei deines Hauptformulars öffentlich machst.

Treten die Fehler denn immer auf oder nur wenn du etwas im Programm ausführst (ButtonClick). Was passiert, wenn du dein Programm startest und sofort wieder beendest?
Hack Gott Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 409

Windows Vista
Delphi 2005 Personal, Delphi 7
BeitragVerfasst: Mo 08.12.08 17:31 
user profile iconfreedy hat folgendes geschrieben Zum zitierten Posting springen:
Kannst du die StringLists und die Barcodes mal auskommentieren? Evtl. ist das schon des Rätsels Lösung. Und bei Sourcen dachte ich, dass du evtl. mal die PAS-Datei deines Hauptformulars öffentlich machst.

Treten die Fehler denn immer auf oder nur wenn du etwas im Programm ausführst (ButtonClick). Was passiert, wenn du dein Programm startest und sofort wieder beendest?



Ich hab den Fehler gefunden!!!

Vielen, vielen Dank an alle die mir so sehr geholfen haben!

Ich habe gerade beim Auskommentieren eine Funktion "entdeckt", die zwar StringListen erzeugt, diese aber nicht freigiebt. Also korrigiert und gleichmal ausprobiert: Und siehe da es funktioniert wieder einwandfrei!

_________________
"Je mehr Käse, desto mehr Löcher; Je mehr Löcher, desto weniger Käse. Daraus folgt: Je mehr Käse desto weniger Käse!"
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mo 08.12.08 18:07 
Hm.. ein Objekt, das nicht freigegeben wird, führt eigentlich nicht zu nem Crash, sondern "nur" zu einer Speicherleiche?

_________________
PROGRAMMER: A device for converting coffee into software.
Hack Gott Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 409

Windows Vista
Delphi 2005 Personal, Delphi 7
BeitragVerfasst: Mo 08.12.08 18:08 
Mistikagga,

der Fehler ist immer noch da.
Dadurch, dass ich in der einen Funktion die Listen wieder frei gegeben habe habe ich nur ein kleines Zugeständnis erhalten. Ich konnte jetzt 2 weiter Komponenten platzieren.

Dann schmiert er wieder (wie oben beschrieben) ab.

_________________
"Je mehr Käse, desto mehr Löcher; Je mehr Löcher, desto weniger Käse. Daraus folgt: Je mehr Käse desto weniger Käse!"
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 08.12.08 18:12 
Ja, wie ich schon am Anfang sagte: Du hast irgendwo ein massives Speicherproblem, das durch die Anzahl der Komponenten zufällig nicht auffällt.

Typische Verdächtige wären dynamische Arrays (Fehler hätte dort aber die Bereichsüberprüfung aufdecken sollen) oder ähnliche Sachen wo du selbst mit dem Speicher etwas machst. Es können aber eben auch Fehler in benutzten Komponenten sein.

Die Ausgabe von madExcept sagt zumindest mir jetzt nichts, was auf den Fehler hindeutet, außer, dass meiner Meinung nach der Fehler dort zwar auftritt, aber schon früher verursacht wurde.
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mo 08.12.08 18:13 
Tja.. dann nochmal suchen :D

Vorschläge:
1.: Wenn es nicht zu groß ist, hängst du dein Projekt hier mal an, so dass wir uns das mal anschauen können
2. und für dich wahrscheinlich die bessere Lösung, weil lerneffekt: Du debuggst selber :D
Einige Tipps dazu:
- Wann tritt der Fehler auf? Reicht es, wenn du das Programm starteest, und sofort wieder beendest, ohne was zu tun? Wenn ja, muss es etwas verursachen, was im OnCreate bzw. OnShow passiert -> einzeln rauskommentieren und immer wieder probieren
- Wenn nicht: Versuche, das Problem auf eine Aktion (z.B. erst auf den Button, dann auf den klicken, usw.) einzugrenzen -> Dann muss es irgendwas mit diesen Buttons zu tun haben.


Vielleicht hilft es uns auch schon, wenn wir grob wissen, was dein Programm macht / machen soll?

_________________
PROGRAMMER: A device for converting coffee into software.
Hack Gott Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 409

Windows Vista
Delphi 2005 Personal, Delphi 7
BeitragVerfasst: Mo 08.12.08 18:40 
user profile iconXentar hat folgendes geschrieben Zum zitierten Posting springen:
Tja.. dann nochmal suchen :D

Vorschläge:
1.: Wenn es nicht zu groß ist, hängst du dein Projekt hier mal an, so dass wir uns das mal anschauen können
2. und für dich wahrscheinlich die bessere Lösung, weil lerneffekt: Du debuggst selber :D
Einige Tipps dazu:
- Wann tritt der Fehler auf? Reicht es, wenn du das Programm starteest, und sofort wieder beendest, ohne was zu tun? Wenn ja, muss es etwas verursachen, was im OnCreate bzw. OnShow passiert -> einzeln rauskommentieren und immer wieder probieren
- Wenn nicht: Versuche, das Problem auf eine Aktion (z.B. erst auf den Button, dann auf den klicken, usw.) einzugrenzen -> Dann muss es irgendwas mit diesen Buttons zu tun haben.


Vielleicht hilft es uns auch schon, wenn wir grob wissen, was dein Programm macht / machen soll?


Zum ersten Vorschlag: Würde wohl den Rahmen sprengen (sind 50+ Units).
Also 2. Angefangen hab ich damit mal beim Anzeigen der Hauptform ein Halt; reinzuhauen. Und plötzlich hielt er wo ganz anders: Im Projectquellcode beim Erzeugen von Form29 (das ist ein Nach-Nachfahre der betroffenen Unit). Also den OnCreate bei Form29 auskommentiert und siehe da: Es klappt wirklich. Nur wieso?!

Im OnCreate stand nur
ausblenden Delphi-Quelltext
1:
ListBox2.Hide;					


Mein Programm dient zur Verwaltung von Bibliotheken (also Benutzer und Bücher).

_________________
"Je mehr Käse, desto mehr Löcher; Je mehr Löcher, desto weniger Käse. Daraus folgt: Je mehr Käse desto weniger Käse!"
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 08.12.08 18:45 
Ich benutze immer Visible. Bei Komponenten habe ich noch nie Hide benutzt.

Aber das kannst du eigentlich ja auch schon auf dem Formular setzen.
Hack Gott Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 409

Windows Vista
Delphi 2005 Personal, Delphi 7
BeitragVerfasst: Mo 08.12.08 18:51 
user profile iconjaenicke hat folgendes geschrieben Zum zitierten Posting springen:
Ich benutze immer Visible. Bei Komponenten habe ich noch nie Hide benutzt.

Aber das kannst du eigentlich ja auch schon auf dem Formular setzen.



Das habe ich jetzt auch gemacht.

Und dann in das OnCreate Ereignisse der Form ein Kommentar reingeschrieben, damit es nicht das macht wie sein Vorfahre.

_________________
"Je mehr Käse, desto mehr Löcher; Je mehr Löcher, desto weniger Käse. Daraus folgt: Je mehr Käse desto weniger Käse!"
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mo 08.12.08 20:02 
Hast du es schon mal FastMM4 oder MemProof versucht?

_________________
Na denn, dann. Bis dann, denn.