Forms.cs
private Dictionary<string, byte[]> \u0023\u003Dzu35WA\u0024c7dfE\u0024Thv8EQ\u003D\u003D()
{
Dictionary<string, byte[]> dictionary1 = new Dictionary<string, byte[]>();
Dictionary<string, byte[]> dictionary2;
if (true)
dictionary2 = dictionary1;
try
{
\u0023\u003DzNyLJ8QjLERsSFWJ\u00243mviCbCakfFCL0UUkQ\u003D\u003D obj1 = this.\u0023\u003DzZ0XaRtE\u003D.\u0023\u003Dz8dpe7vsmZZwm.\u0023\u003DzbNbDlRQhXt8R().\u0023\u003DzVkNRq50\u003D().\u0023\u003DzdJnrgtk\u003D(\u0023\u003Dq2hNrWcROwvcRUltDOBl97\u0024pk9uFVQS8Crks5efF52n0\u003D.\u0023\u003Dzw3H8hi8\u003D(-1575412461)).\u0023\u003DzVkNRq50\u003D().\u0023\u003DzdJnrgtk\u003D(\u0023\u003Dq2hNrWcROwvcRUltDOBl97\u0024pk9uFVQS8Crks5efF52n0\u003D.\u0023\u003Dzw3H8hi8\u003D(-1575804573)).\u0023\u003DzVkNRq50\u003D().\u0023\u003DzdJnrgtk\u003D(\u0023\u003Dq2hNrWcROwvcRUltDOBl97\u0024pk9uFVQS8Crks5efF52n0\u003D.\u0023\u003Dzw3H8hi8\u003D(-1575412461)).\u0023\u003Dz_Vnk87M\u003D();
if (true)
goto label_4;
label_3:
int num;
if (true)
num = 0;
\u0023\u003DzNyLJ8QjLERsSFWJ\u00243mviCbCakfFCL0UUkQ\u003D\u003D obj2;
for (; num <= obj2.\u0023\u003Dzud66G7k\u003D() - 2; num += 2)
{
string key = obj2.\u0023\u003DzdJnrgtk\u003D(num).\u0023\u003DzviZlgiVTXidE().\u0023\u003DzvL2Z5BX8NRHI();
**//BUG: missing using statement!!!!**
MemoryStream memoryStream = new MemoryStream();
\u0023\u003DzJ27RKorJf_WbPlMEDRygv7M\u003D.\u0023\u003Dzufrj3Qd83q9B(obj2.\u0023\u003DzdJnrgtk\u003D(num + 1).\u0023\u003Dz\u0024lVUofM\u003D().\u0023\u003DzvANIbHZAOLJe().\u0023\u003DzT0jZpflrY2M\u0024(), (Stream) memoryStream);
dictionary2.Add(key, memoryStream.ToArray());
}
goto label_9;
label_4:
obj2 = obj1;
goto label_3;
}
catch (object ex)
{
}
label_9:
return dictionary2;
}
Would you please explain a bit more of the issue you are facing by sharing a sample PDF document and code snippet which can be executed without any error. We will test the scenario in our environment and address it accordingly.
AsposeCombine.zip (351.9 KB)
Attached sample app that combines 200 files.
Memory raise to 600mb.
As I understand Aspose.Pdf does not free dictionaries and MemoryStream’s on Dispose.
Please explain how to fix this.
We have logged an issue as PDFNET-46811 in our issue tracking system after replicating it in our environment. We will further look into details of the issue and keep you posted with its resolution status. Please be patient and spare us little time.
We are sorry for the inconvenience.