Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi INI aus Memorystream (https://www.delphipraxis.net/108525-ini-aus-memorystream.html)

FrankBrin 8. Mai 2008 15:16

Re: INI aus Memorystream
 
Hallo,
ich habe diese Funktion bei mir auch implementiert. Allerdings unter RAD2007.
Doch leider geschieht folgendes:
Stream wird korrekt an LoadFromStream übergeben.
s wird Created
und bei s.LoadFromStream(Stream) passiert einfach nix. s bleibt leer.

Keine Fehlermeldung, keine Exception - einfach nix.

Hat jemand eine Vorstellung woran das liegen könnte.

Gruß Frank.
P.S. Mein Stream kommt von einem IdFtpClient und ist ein StringStream!

himitsu 8. Mai 2008 15:21

Re: INI aus Memorystream
 
hast du auch die StreamPosition zurückgesetzt?

s.Position := 0; oder so

FrankBrin 8. Mai 2008 15:27

Re: INI aus Memorystream
 
Hallo himitsu,
du bist so gut zu mir.
Ein kleines

Stream.Position := 0;

und die Welt ist wieder in Ordnung.

Tausend Dank

Gruß
Frank


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:52 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz