Hello Antonio, the new function FWSavePreviewToPDF( oPreview [, cPDFName ] ) crashes in WIN7! The Computer hangs.
Hello Antonio, the new function FWSavePreviewToPDF( oPreview [, cPDFName ] ) crashes in WIN7! The Computer hangs.
#include "fivewin.ch"
function Main()
TPreview():bSaveAsPDF := { | oPreview, cPDF | cPDF := FWSavePreviewToPDF( oPreview ), ;
If( Empty( cPDF ), , ShellExecute( oPreview:oWnd:hWnd, "open", cPDF ) ) }
XBrowse( "CUSTOMER.DBF" )
return nilI work with all privilegs in WIN7. Also I give the filename with a path with all rights. In VISTA all is OK! Whats the filename and path as default when not given?
If I wait a long time, these errormessage is coming:
Unrecoverable error 9006:
hb_xgrab cant allocate memory
byte-one wrote:I work with all privilegs in WIN7. Also I give the filename with a path with all rights. In VISTA all is OK! Whats the filename and path as default when not given?
Unrecoverable error 9006:
hb_xgrab cant allocate memory
Same error with your sample! I use normal xHarbour that came with FWH and Borland-Compiler.
#include 'fivewin.ch'
#include 'ord.ch'
#include 'xbrowse.ch'
REQUEST DBFCDX
function Main()
RPrevUserBtns( nil, 2007 )
TPreview():bSaveAsPDF := { | oPreview | FWSavePreviewToPDF( oPreview ) }
RDDSetDefault( "DBFCDX" )
XBrowse( "WWONDERS.DBF" )
return nil
What your sample is supposed to do? I only see the browse at the end and nothing else. Is it all what I should get?
EMG
Enrico,
Please click on the bottom left button "Print" and you will get the preview, from there select the save as PDF option
Here it is working fine with Borland and Windows 7 Ultimate 64 bits ![]()
Also is fine with FWH 64 and same Windows. FreeImage64.dll is still needed or a solution for it (access FreeImage.dll 32 bits from 64 bits app?)
Also fine with FWH 32 for Microsoft C++ 2010 and Windows 7 Ultimate 64 bits ![]()
Antonio Linares wrote:Enrico,
Please click on the bottom left button "Print" and you will get the preview,
byte-one wrote:If I wait a long time, these errormessage is coming:
Unrecoverable error 9006:
hb_xgrab cant allocate memory
Antonio Linares wrote:Enrico,
Please click on the bottom left button "Print"
Antonio wrote:
Do you get a calls stack with the error ? It may help very much to know where that call is made from, thanks
Günther,
Please let me know when should be possible to have a TeamViewer session with you, as I would like to review your pc settings and build the test myself, thanks ![]()