Hello Guys,
I have a web application (built in ASP.NET, C#) that uses a component to generate PDFs reports.
Now I will explain how does it works:
When a user clicks on the report he/she wants to generate, my application retrieves the information from SQL server, generates the text for the report, calls the pdf generator component, generates it in memory and sends the pdf information in binary to the client and it's the client that compose the pdf file with the acrobat reader that is installed on the client pc.
This is the code I'm using to do that:

Response.BinaryWrite((byte[])axgtPDFEngineX1.GetMemoryBuffer());
Response.Flush();
Response.End();

where axgtPDFEngineX1 is the variable containing all the PDF information.

The problem I have is that now, there are many more users generating the reports and it seem the server cannot handle all these requests at the same time.
My question is, How can I free the memory after sendinf the RESPONSE.BINARYWRITE to the client?
Is it enough to set the axgtPDFEngineX1 = null; to free the memory? I mean like this :

Response.BinaryWrite((byte[])axgtPDFEngineX1.GetMemoryBuffer());
Response.Flush();

axgtPDFEngineX1 = null;

Response.End();


or how can I free the memory after sending the info to the client?

Thank you all guys