Autor Beitrag
Milhouse2500
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33

Win 2000, Win XP
D5 Prof, D7 Enterprise
BeitragVerfasst: Di 21.02.06 17:54 
Hi

benutze Delphi 5 und des öfteren lande ich auf dem Desktop. Mit etwas glück bekomme ich noch eine Zugriffsverletzung in borlndmm.dll meistens aber ohne irgendwelche Fehler.

Es passiert eigentlich immer bei einer bestimmten unit. Da diese Unit 40000 lines of code hat, denke ich das die unit etwas zu gross ist.
Kommt mir bitte nicht mit "wie kann man soeine grosse unit erstellen", ich weiss selber das, das nicht sehr übersichtlich ist.

So long
Milhouse
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Di 21.02.06 19:57 
Hmm zu viel Code? Das kommt mir zwar nicht plausibel vor aber du könntest doch mal probieren nur dei kompilierte .DCU der Unit ein und lass den Code der Unit draußen.
Milhouse2500 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33

Win 2000, Win XP
D5 Prof, D7 Enterprise
BeitragVerfasst: Di 21.02.06 20:31 
Delphi schmiert mir ja ab wenn ich die Unit ändern möchte. Muss mitlerweile nach jeder zeile speichern. Und das nervt
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: Di 21.02.06 23:34 
Ich denk weniger, dass es ein Problem mit der Größe der Unit gibt, sondern

entweder mit dem Syntax-Highlighter von Delphi
oder irgendwelchen Third-Party-Plugins in der IDE

Die Windows.pas von Delphi ist auch etwa von dieser Größe und bisher hab ich noch keinerlei Probleme feststellen können.

Lösungsansätze bestehen daher in folgendem:

1. Deaktivieren von IDE-Plugins \ entladen ungenutzter Packages
2. Teilen der Unit in
2.1 mehrere Teilunits
2.2 Ein Unit unter Nutzung von {$I 'Datei.inc'} zum Einbinden der Teilbereiche als Include-Files
3. Analysieren, nach welcher Zeit \ bei welchem sichtbaren Source-Abschnitt der Fehler auftritt.

_________________
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.
0xCC
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 150



BeitragVerfasst: Mi 22.02.06 01:12 
die kritische grenze bei .pas dateien liegt bei 2MB.
bei allem darüber kanns probleme geben.
lösung: includes, wie von BenBe vorgeschlagen