Jetzt bin ich auf ein Problem gestoßen das eigentlich kein Problem sein sollte.
Folgendes ist aufgetreten.
Ich habe einen Code der auch funktioniert. Nur packt man diesen in eine while schleife läuft er nicht mehr richtig.
Hier ist der Code der funktioniert:
PHP Code:
Console.ReadLine();
DecryptionInformation tempDI = new DecryptionInformation();
tempDI.Password = File.ReadAllText(@"C:\Users\xxx\Desktop\meinekeys.txt");
tempDI.InputPath = @"C:\Users\xxx\Desktop\hajjfjah.fsfs";
Decryption dc = new Decryption(new EventManager.MyDelegate[] { objectState, objectError }, tempDI);
dc.DIContainer.OutputPath = @"C:\Users\xxx\Desktop\TestBae\";
dc.StartDecrypting();
Console.WriteLine("Ready");
PHP Code:
while (true)
{
Console.ReadLine();
DecryptionInformation tempDI = new DecryptionInformation();
tempDI.Password = File.ReadAllText(@"C:\Users\xxx\Desktop\meinekeys.txt");
tempDI.InputPath = @"C:\Users\xxx\Desktop\hajjfjah.fsfs";
Decryption dc = new Decryption(new EventManager.MyDelegate[] { objectState, objectError }, tempDI);
dc.DIContainer.OutputPath = @"C:\Users\xxx\Desktop\TestBae\";
dc.StartDecrypting();
Console.WriteLine("Ready");
}
Für mich ist das leider unerklärlich. Ich hoffe jemand weis ne Lösung
Edit: Ich habe das Problem schon gelöst. Ich musste einen Stream noch closen. Da wurden anscheinend die Bytes verschluckt.
Aber trotzdem wundert es mich das das passiert. Hat da jemand ne Erklärung für ?






