Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • putpdf causes Stata to crash

    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:
    Code:
      putpdf table tsheet`respnum'(`row',1) = ("SUCCESSFUL INTERVIEW INFORMATION"), bold colspan(2) bgcolor(gray)
    `respnum' is the counter for my forvalues loop. When comment out the forvalues loop and instead manually set
    Code:
    local respnum = 1
    , 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!!
    Last edited by William Blackmon; 20 Nov 2018, 00:36.

  • #2
    William:
    this kind of questions should be addressed to Stata Tech Support.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment

    Working...
    X