Hi,
Viktor Szakáts wrote:
Anyway, it doesn't work here. First I have to
copy in lots of .dlls, then I get this:
Lots? I last release only two of them: libcairo-2.dll and
libpng12-0.dll, if you do not need png support (by default png is
enabled), libcairo-2.dll can be recompiled without png support.
---
Application Internal Error -
F:\work\harbour\harbour\contrib\hbcairo\tests\fancytxt.exe
Terminated at: 2009.11.30 22:44:06
Unrecoverable error 6005: Exception error:
Called from CAIRO_SELECT_FONT_FACE(0)
Called from DRAW(41) in fancytxt.prg
Called from MAIN(12) in fancytxt.prg
Yes, it's sensitive place. For example, I get a GPF if I leave an open
.pdf file in Acrobat Reader and I try to render to this .pdf file.
Perhaps we must add check if cairo created a valid surface using
cairo_surface_status() and add a similar protection and check for return
value in other places.
I'll try to do it in the future. This is also related to a question:
3)What is correct way to code:
pCairo = hb_cairo_par( 1 ); // generate RTE if parameter is wrong
if( pData )
cairo_something( pCairo );
or this is also ok?:
cairo_something( hb_cairo_par( 1 ) );
So I was not trying to solve the problem in my first commit.
Regards,
Mindaugas
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour