Bug #141 - Crash creating document and inserting text via script
Product:PageStream (All Platforms)Reported By:Tim Doty
Severity:MajorAssigned To:Deron Kazmaier
Priority:Average sign in to watch (1 is watching)
Status:NewReported:2007-03-05 00:42:00
Category:ScriptingUpdated:2007-03-05 00:42:00
Summary:Crash creating document and inserting text via script
Attached Files:No files attached.
 Sign In to add a file.

Trying to run a script that creates a document and inserts text crashes PgS Windows, though the same script will run without issue on PgS Linux. Running each line separately works. In fact, the only command that is not safe to execute with the others is Insert(), however, it can be used separately.

For example, use the following

# first set
DocID = NewDocument('test')['.result']
print SetMarginGuides('.5i', '.5i', '.5i', '.5i')
print OpenWindow(DocID)

# second set
print DrawTextObj('.5i', '.5i', "InFront")
print SelectText('At', '.5i', '.5i', 'FrontMost')
print SetFont('Arial')
print Insert('Hello World')

Run the first set as a command then run the second set and it will work. Put them in the same file and a crash results. With all commands in the same file comment out the Insert() command and it will not crash.

Because the commands will not cause a crash when run separately there must be an initialization, perhaps timing sensitive, on Windows that is not there on Linux?

I thought I had a running example of this on PgS but either something is broken in the current version or I can't find any working code.

Add a Comment
Sign in to add a comment.

Bug #141 - Crash creating document and inserting text via script by Tim Doty   
  created:2007-03-05 00:42:00   last updated:2007-03-05 00:42:00
  Copyright © 1985-2021 GrasshopperLLC. All Rights Reserved.

sign in to add a bug