how can this be possible ? the debug app works fine, but the compiled app runs, no error, but does not the job wanted (blank page)
I ported the rbfpdf app from here to xojo 2017r3 https://github.com/roblthegreat/rsfpdf
the 32b debug works ok, as the 32b compiled app also works ok.
I had to change some integers to uint8, uint16, don’t remember which ones
the fact is the app I’ve got now is fully working (all examples) in 32b debug or compiled
and works in 64b debug, but outputs blank pages in 64b compiled.
what I don’t understand is why does it work in 64b debug, and not same behavior in 64b compiled ?
how is this even possible ?
after examining, the generated pdf in the 64b version does not insert the gzipped streams of the pdf. so the blank page.
so it seems the 64b does not recognize the 64b zlib ?
so it could be that the 64b debug uses the 32b zlib ( as it doesn’t find a 64b one) and it should not use it ?
after examining, the generated pdf in the 64b version does not insert the gzipped streams of the pdf. so the blank page.
so it seems the 64b does not recognize the 64b zlib ?
so it could be that the 64b debug uses the 32b zlib ( as it doesn’t find a 64b one) and it should not use it ?
no, in the stream markers of the pdf files, the 64b debug outputs some datas
but the 64b compiled outputs zero length datas.
so the zlib is disabled on compiled apps ?
I compared the files of example1 from debug or compile version.
As far as why it crashes, what I’m seeing is a NilObjectException when running the built app. In the case of Test 2, the reason for that is how you are calculating the path to the image.
If you go to the Shared Settings and change the Debug Destination to your desktop, you’ll see that the NilObjectException happens on the line that says:
Something else to consider… In fpdf.Image the extension detection code assumes that the only period in the path will be the one before the file extension. You should probably change that section to use something like this:
//First use of image, get info
if(type = "") then
type = NthField(file,".",CountFields(file,"."))
end if
there is still a problem with all the examples, the debug run is ok, but the compiled app gives a white pdf page for each example …
they all work if you are in 32bit mode.
sorry Greg, I have the same error with your project : blank pages on 64 bits compiled app, but ok with debug in 64 bits
does anyone else have this same issue ?
what can it come from ?
MacOS 10.12.6 Greg’s example run ok in debug 32 bit and 64 bit.
Blank PDF with example 1, 3 and 4, exception with example 2 and 5 if I build the app 64 bit and then run it.
Good PDF with example 1, 3 and 4, exception with example 2 and 5 if I build the app 32 bit and then run it.
yes it is the demofolder. same result as I have so.
still a problem as we have a different behavior between debug and compile apps in 64bits mode only.
and we have a test project !