i have an application which has a 2 MB .exe. but when it runs it uses the 21 MB of the primary memory. Before initialization of the forms it already uses 13-14 MB (in release mode).after main form loaded it bocomes 21 MB. Because i use dynamic binding when using class i don not think that it is because all project loding at start up. i think it is because of .net framework loads itself before. have any idea how can we decrease this use amount?
amadeonMk
Posts
-
application uses all the memory -
PrintDocument1.PrinterSettings.CanDuplexisn't it possible to convert pdf file to PostScript format and then print it? Can this solve my problem?
-
PrintDocument1.PrinterSettings.CanDuplexi have to print a .pdf file to a HP LaserJet 9000 PCL mfp printer which can print duplex. i am using Acrobat COM object to print, and .net's PrintDocument's PrinterSettings for setting the printer. But it returns false when i use CanDuplex and does not change the duplex setting when i set PrinterSettings.Duplex. The code can be seen below. does anyone have idea how can i solve this? Or is there are more easy way doing this like using a PrinttoFile printer or etc.? PrintDocument1.PrinterSettings.PrinterName="HP LaserJet 9000 PCL 6"; if(PrintDocument1.PrinterSettings.CanDuplex) { axPdf1.printPages(1,1); PrintDocument1.PrinterSettings.Duplex=System.Drawing.Printing.Duplex.Horizontal; axPdf1.printPages(2,3); } i want to thank Heath Stewart for his assistance at printing pdf files.
-
pdf printingthanks for your assistance. i tried to use Acrobat Control for ActiveX but gives "Catastrophic error".i searched for an example but could not found an example with "pdflib". :omg:
-
pdf printingi am sending a pdf file to printer (using streaming) but it gives binary output. anyone know why this is happening or is there an another way to print an existing pdf file in C#. thanks
-
Holding ArrayLists in an ArrayListThanks but a have already use this.maybe it would be more clear if i send my code private ArrayList ALMainList=new ArrayList(); private ArrayList ALSendedList; ... MyArrayList.Add("al1"); CatchSendedList(MyArrayList) ... MyArrayList.Add("al2"); CatchSendedList(MyArrayList) ... MyArrayList.Add("al3"); CatchSendedList(MyArrayList) ... public void CatchSendedList(ArrayList ALSendedL) { ALSendedList=new ArrayList(); ALSendedList=ALSendedL; ALMainList.Add(ALSendedList); } when i use this code i take the result: ALMainList-item0 -> al3 ALMainList-item1 -> al3 ALMainList-item2 -> al3
-
Holding ArrayLists in an ArrayListHi,i try to hold a number arraylists in a single main arraylist.But i think because of a referance problem, everytime i add a new arraylist, previous added lists became same with last added one;all items shown as the last arraylist's items.is anyone knows the solution or a different way to hold arraylists? Thanks