Hi all,
I'm using putpdf and it is causing Stata to crash. I'm on a Windows machine and by "crash" I mean that Stata stops responding and I have to force the application to close. Stata does not supply an error message.
I unfortunately do not have a reproducible example because Stata seems to crash at different points every time I run, and I'm not sure exactly what is causing the issue (and I'm not able to share my actual data).
Stata appears to always crash when putpdf is writing to cells in an already existing table. Additionally, the do file uses forvalues loops. When I manually run through one iteration of this loop, the program does not crash and the PDF is successfully written.
As I said, Stata crashes at different lines each time I run it, but here's one example line that has caused it to crash:
`respnum' is the counter for my forvalues loop. When comment out the forvalues loop and instead manually set
, the do file runs successfully.
Any ideas what might be causing this strange behavior? Anyone else experienced Stata crashing (rather than displaying an error) when using putpdf?
Thank you!!
I'm using putpdf and it is causing Stata to crash. I'm on a Windows machine and by "crash" I mean that Stata stops responding and I have to force the application to close. Stata does not supply an error message.
I unfortunately do not have a reproducible example because Stata seems to crash at different points every time I run, and I'm not sure exactly what is causing the issue (and I'm not able to share my actual data).
Stata appears to always crash when putpdf is writing to cells in an already existing table. Additionally, the do file uses forvalues loops. When I manually run through one iteration of this loop, the program does not crash and the PDF is successfully written.
As I said, Stata crashes at different lines each time I run it, but here's one example line that has caused it to crash:
Code:
putpdf table tsheet`respnum'(`row',1) = ("SUCCESSFUL INTERVIEW INFORMATION"), bold colspan(2) bgcolor(gray)
Code:
local respnum = 1
Any ideas what might be causing this strange behavior? Anyone else experienced Stata crashing (rather than displaying an error) when using putpdf?
Thank you!!
Comment