Something has happened to my system over the weekend (it could be me,
but I swear I didn't do anything)
Generating a PDF from a script with a redirect. The documents id that
it should produce are stored in an array in the session. I put write
to console messages to trace the problem.
Somewhere in the documentation states that "write blob" stops
execution of that script, but its being called three times! The
second and third time I error out because the session item is deleted
the first time through. The log:
project fbx switch=/index.a4d?fuseaction=project.action
in importApp -- script where the pdf request starts
in importApp ready to redirect - action to generate pdf
doc fb switch=/index.a4d?fuseaction=doc.pdfapp;ts=20080122174424445
now in appPDF
in for each loop based on dids - only sent one
going to write the blob - right before the write blob command-
execution should of stopped!
doc fb switch=/index.a4d?fuseaction=doc.pdfapp;ts=20080122174424445
- back in switch for second call from God know where
now in appPDF
it say it found an error and going to redirect -- I detect error and
send back to error page
doc fb switch=/index.a4d?fuseaction=doc.pdfapp;ts=20080122174424445 -
third try
now in appPDF
it say it found an error and going to redirect
In the screen, you see the pdf start to load, but the second call
wipes it out with my error page.
This work perfectly Friday (it is a new script)
Any idea - smashed memory, memory leak, missing end something (I've
checked)? Everything else seems to be working fine. Calling the pdf
script directly in a URL works fine.
Steve Alex
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/