Autor Beitrag
gamer94
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 41

Win7 HP, WinXP
Delphi 7 Pers.
BeitragVerfasst: Mi 18.07.07 11:56 
Hi, ich arbeite momentan an einem kleinem Bildviewer.
Als Anzeige wird die JEDI Komponente JvImage verwendet. Zum auswählen des Bildes die Komponenten: FileListBox, DirectoryListBox, DriveComboBox und FilterComboBox.

Mein Code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.FileBoxChange(Sender: TObject);
 begin
  Anzeige.Picture.LoadFromFile(Filebox.Filename);
 end;


Mein Problem:
Sobald ich das Programm ausführe, bekomme ich folgende Fehlermeldung:
Im Projekt1.exe ist eine Exception der Klasse EInvalidGraphic aufgetreten. Meldung: 'Unbekannte Bilddateierweiterung(.)'. Prozess wurde angehalten usw.

Ich hab leider keinen blassen Schimmer, wo der Fehler liegt. :nixweiss:
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Mi 18.07.07 12:00 
Wenn du schon keinen blassen Schimmer hast.. wie soll es dann jemandem gehen, der nur eine Zeile Code von dir hat? xD

Ein bisschen mehr wäre da nicht schlecht, um dir sagen zu können was da falsch läuft.
gamer94 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 41

Win7 HP, WinXP
Delphi 7 Pers.
BeitragVerfasst: Mi 18.07.07 12:12 
Ich würde ja gerne mehr veröffentlichen, aber das ist bis jetzt alles. :D
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Mi 18.07.07 12:14 
:shock: Und der Fehler tritt auf, direkt nachdem du das Programm gestartet hast?

Dann könnte ich mir vorstellen, dass die Komponente von Anfang an ein Bild geladen haben will, man also in der IDE noch eines reinladen muss. Aber das ist eine reine Vermutung.
gamer94 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 41

Win7 HP, WinXP
Delphi 7 Pers.
BeitragVerfasst: Mi 18.07.07 12:16 
Hab ich schon probiert, dieselbe Fehlermeldung.
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Mi 18.07.07 12:18 
Das ist in der Tat... sehr komisch. Weiterhelfen kann ich dir da jetz auch erstmal nicht, such vielleicht mal im Forum, ob jemand anders auch schonmal dasselbe Problem hatte.
Lossy eX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1048
Erhaltene Danke: 4



BeitragVerfasst: Mi 18.07.07 12:33 
Könnte es vielleicht sein, dass dir die Filebox einen blödsinnigen Dateinamen gibt? Lass dir doch einfach mal per ShowMessage (oder so was) den Dateinamen anzeigen. Ich tippe darauf, dass der entweder leer oder '.' ist.

Warum dein Prozess aber wegen einer solchen Exception angehalten wird finde ich jetzt aber auch etwas merkwürdig.

_________________
Nur die Menschheit ist arrogant genug, um zu glauben sie sei die einzige intelligente Lebensform im All. Wo nicht mal das nachhaltig bewiesen wurde.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 18.07.07 12:33 
Dann lass Dir mal mit ShowMessage den Pfad anzeigen, ob der auch stimmt.

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Mi 18.07.07 12:37 
Ich dachte, die Meldung kommt direkt nach dem Start des Programms?
Oder kommt sie erst, wenn man da eine Datei auswählt?? üäh XD
gamer94 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 41

Win7 HP, WinXP
Delphi 7 Pers.
BeitragVerfasst: Mi 18.07.07 12:43 
Die Meldung kam sofort beim start. Ich hab jetzt anstatt OnChange, Onklick benutzt. Jetzt tritt der fehler nicht mehr auf. Wenn ich allerdings ein *.JPG Bild auswähle, kommt dieselbe Meldung, nur das da wo nur ein Punkt in den Klammern stannd, nun .jpg steht.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 18.07.07 12:46 
Probiers mal mit uses ...,Jpeg;

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
gamer94 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 41

Win7 HP, WinXP
Delphi 7 Pers.
BeitragVerfasst: Mi 18.07.07 12:54 
:autsch: Hab ich gar nicht mehr dran gedacht, Danke.