Autor Beitrag
DelphiNoobi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 24.04.07 18:07 
Hallo,

Ich habe in Dephi(7) eine Art "interaktives Buch" programmiert (ca. 500 Units mit verschiedenen Funktionen). Wenn ich aber mehr als 300 Units zusammenhängen will,
kann das Programm nicht mehr compiliert werden (Arbeitsspeicher-Fehlermeldung).

Gibt es eine Möglichkeit, die "Unterkapiteln" (je 10-100 Units) zu DLLs zu machen und diese dann über eine Inhaltsverzeichnis-Unit aufzurufen?

Da ich mit DLLs (noch) nix am Hut habe wäre für eine Hilfe unheimlich dankbar,

DelphiNoobi


Zuletzt bearbeitet von DelphiNoobi am Mi 25.04.07 12:48, insgesamt 1-mal bearbeitet
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Di 24.04.07 18:43 
Uaaa, hilfe.
Du hast doch jetzt nicht für jede Buchseite oder so eine eigene Form erstellt? :nut:
500 Units, wie viel denn noch??? :rofl:
Lade doch den Inhalt dynamisch in EINE Form...

Gruß
alias5000

_________________
Programmers never die, they just GOSUB without RETURN
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 24.04.07 18:56 

_________________
Markus Kinzler.
DelphiNoobi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 24.04.07 18:58 
Hmm das ganze Projekt ist so langsam gewachsen. Ja, jede "Seite" ist eine Unit, da man da interaktiv darauf arbeiten kann (Simulation der Einstellung einer Magnetresonanzanlage + theoretische Erklärungen interaktiv zum Einstellen von Parametern usw.). Daher ist jede Seite anders, sogar die "Textseiten" (movies, animationen, ...)

Gibt es da glaubst du eine Lösung dazu?

DelphiNoobi
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 24.04.07 19:11 
Vielleicht würde es schon reichen, die Units nicht alle automatisch erzeugen zu lassen, sondern das beim "Umblättern" zu erledigen

_________________
Markus Kinzler.
DelphiNoobi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 24.04.07 19:23 
Ja, hab mit dem Projekt jetzt ein bisserl Stress und bin in beide Foren gegangen in der Hoffnung, dass mir irgendwer helfen kann ^^
Wie mache ich das "beim Umblätern"?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 24.04.07 19:26 
Beim Klicken von "Vorige Seite"/"Nächste Seite" wird die neue Form erst erzeugt und die vorhandene zerstört

_________________
Markus Kinzler.
DelphiNoobi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 24.04.07 19:34 
Im der exe Applikation wird jede Seite durch die andere aufgerufen, so ist immer nur die aktive Unit offen; es scheitert aber beim compilieren des Gesamtprojektes. Kann man da also so Unterprogramme generieren, die dann vom "Inhlatsverzeichnis" aus aufgerufen werden? Sind da DLLs der richtige Weg? Habe ein paar posts gelesen, habe es aber nicht geschafft, solche DLLs zu generieren.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 24.04.07 19:36 
Man könnte z.B. Packages erzeugen

_________________
Markus Kinzler.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Di 24.04.07 19:43 
Hm, aber kann man das nicht einfach dynamischer gestalten, dass schlichtweg keine 500 Units benötigt werden?
Das ist je nachdem, was du anzeigen willst, sicher etwas aufwendiger, aber das schon auch hinterher den Speicher, es sei denn du machst dir den Aufwand, alle dynamisch zu erstellen. Im Endeffekt ist das dann evtl. auch einfach mehr Performance.

Gruß
alias5000

_________________
Programmers never die, they just GOSUB without RETURN
DelphiNoobi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 24.04.07 19:55 
Wie meinst du das, dynamisch? Dass ich die Inhalte einer Unit immer in dieselbe unit lade? Naja, die Seiten sind keine "Buchseiten" sonder eher interaktive Oberflächen, in denen mal etwas erklärt wird, mal parameter einer aufnahme schrittweise verstellt werden um den effekt eines parameters zu zeigen usw. Die performance prinzipiell ist super, alle Animationen laufen echt gut und auch wenn man interaktiv was tut geht das alles gut. nur dass ich im moment nicht mehr alles in einem Projekt compilieren kann. Wie schaut das mit den DLLs aus? geht das vielleicht, dass man aus den Unterkaptieln DLLs macht? geht das auch, wenn man in einer DLL dann links in eine andere DLLs hat?

DelphiNoobi
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 24.04.07 19:58 
Statt mit Dll würde ich es, wei schon erwähnt, mit Packages versuchen

_________________
Markus Kinzler.
DelphiNoobi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 24.04.07 20:04 
wie mach ich solche packages? Hast du viellecht für mich einen tipp dazu?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 24.04.07 20:05 
Einfach Neu->Package und dann die Units hinzufügen.

_________________
Markus Kinzler.
DelphiNoobi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 24.04.07 20:08 
Wie compiliere ich die dann? Und wie füge ich die wieder zusammen?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 24.04.07 20:14 
Wie ein normales Projekt auch. Es wird dann eine Bpl erzeugt ( ist ne Dll, welche Delphi Objekte im Interface erlaubt)
Diese kann man dann mit LoadModule() dynamisch geladen werden. Auf die Formulare kann man dann wie bei statischer Bindung zugreifen

_________________
Markus Kinzler.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Di 24.04.07 20:16 
auf Delphi.about.com habe ich dazu mal ein Tutorial gesehen delphi.about.com/od/...lide/l/aa010901a.htm

Gruß
alias5000

_________________
Programmers never die, they just GOSUB without RETURN
DelphiNoobi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 24.04.07 20:28 
Klingt ja supi! Ich probier das gleich mal aus.
Danke inzwischen & bis gleich :D
DelphiNoobi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 24.04.07 21:19 
Ich hab jetzt alle Packages erzeugt und compiliert. Wie kann ich sie ins Hauptprogramm laden? Hast du noch einmal einen Tip? Habe zu LoadModule in der Delphi Hilfe nix gefunden.
Liebe Grüße
DelphiNoobi
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 24.04.07 21:22 

_________________
Markus Kinzler.