Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Here you should submit your bug reports with logcat.

Null exception in drawImage

More
IP: 192.168.0.71 12 years 3 months ago #6433 by maxbax666
Hello, I'm using your library with a premium license.
I need to create in Android some pdf with an image per page. I have tested and taken parts of code from your examples.
During the generation of the pdf, every so often, for no apparent reason, the function "drawImage (hand, image.hand);" goes to "null Exception".
In debug mode I can not replicate the error, and in running mode only after N insertions.
I think "page.AddResImage (dimg);" returns null, but I don't know why.
For us it is a big problem that does not allow us to go live.
Do you have suggestions?
More
IP: 192.168.0.158 12 years 3 months ago #6434 by nermeen
Replied by nermeen on topic Null exception in drawImage
Do you invoke: m_doc.SetCache( file_cache );//set temporary cache for editing.

You can also check www.androidpdf.mobi/forum/Android-develo...remely-slow?start=12
More
IP: 192.168.0.71 12 years 3 months ago #6436 by maxbax666
Yes:

String file_cache = Global.tmp_path + "/temp.dat";
m_doc = new Document();
m_doc.Create(file);
m_doc.SetCache(file_cache);
...
Time to create page: 0.411 seconds
Powered by Kunena Forum