Crash from FWSavePreviewToPDF

Re: Crash from FWSavePreviewToPDF

Postby gkuhnert » Wed Jul 13, 2011 8:04 am

Using the new Fivhcm.lib didn't work with me either.

I noticed, that the process of my running .exe consumes a lot of memory.
If I save a preview of 47 pages to a pdf, the process grows to 1.409.964KB and the resulting .pdf gets a size of 28.454KB
With 63 pages I get the error that is described here. At that moment the process has a size of 1.774.336KB and the corrupted .pdf 34.836KB
If I try the same with even more pages, the process always crashes when the memory usages exceeds about 1.774.000KB and the corrupted .pdf is always about 35.000kb.

Furthermore I noticed, when using the word conversion to pdf (used by fwh) the pdf even with 1621 pages has only a size of 4.720KB

Maybe these figures are of help in finding the cause of the errors.
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: Crash from FWSavePreviewToPDF

Postby nageswaragunupudi » Wed Jul 13, 2011 11:01 am

Mr Gilbert

Thank you very much for this info.
We shall work on these issues and achieve better optimization.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10622
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Crash from FWSavePreviewToPDF

Postby byte-one » Mon Aug 08, 2011 8:33 am

Now the function works very good. But the question "open the pdf.....?" should not prompt! This must do the programmer, if he wish this.
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Crash from FWSavePreviewToPDF

Postby nageswaragunupudi » Mon Aug 08, 2011 8:39 pm

Syntax:
Code: Select all  Expand view
FWSavePreviewToPDF( oPreview, [cPDF], [lOpen] )


First parameter is compulsory.

If second parameter is nil, the function prompts to provide a file name to save.

if the third parameter is
nil -> Prompts whether to open the file or not
.t. -> Opens the pdf without prompting
.f. -> does not prompt and does not open pdf
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10622
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Crash from FWSavePreviewToPDF

Postby byte-one » Mon Aug 08, 2011 10:08 pm

Oh, thanks!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 36 guests