Autor Beitrag
patmann2001
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Mo 14.07.03 10:09 
Hallo
Ich habe eine Variable Bild:Array of TBitmap die also Dyanmsich ist.
Zuerst weise ich ihr eine Grösse zu mit SetLength(bild,1) und dann möchte ich das jetzt Create also Bild[0].create Leider bekomme ich jetzt eine EAccsessViolation. Woran kann das Liegen?

Für eure Tips schon mal danke im Voraus

cu Patmann


Zuletzt bearbeitet von patmann2001 am Mo 14.07.03 11:37, insgesamt 1-mal bearbeitet
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Mo 14.07.03 10:16 
Titel: Re: Array of TBitmap Create nicht möglich
patmann2001 hat folgendes geschrieben:
Hallo
Ich habe eine Variable Bild:Array of TBitmap die also Dyanmsich ist.
Zuerst weise ich ihr eine Grösse zu mit SetLength(bild,1) und dann möchte ich das jetzt Create also Bild[0].create Leider bekomme ich jetzt eine EAccsessViolation. Woran kann das Liegen?

Für eure Tips schon mal danke im Voraus

cu Patmann


bild[0].create?

es muß
ausblenden Delphi-Quelltext
1:
bild[0]:=Tbitmap.create					

heißen

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
patmann2001 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Mo 14.07.03 11:37 
Danke :oops:

Ist mir auch eben wieder eingefallen

Peinlich

cu Patmann