E-prime crashes after reading text file

253 views
Skip to first unread message

MarisaC

unread,
Mar 28, 2013, 3:01:08 PM3/28/13
to e-p...@googlegroups.com
Hello,

I am hoping someone could help me out.
My script is "too large to be compiled" so I am trying to have e-prime call from a text file instead. 

Here is the code that I have been using:

open "FinalTstQuestionTXT2.txt" for Input as #1
For IndxArt=0 to Article_Count - 1
For TxtCounter = 1 to FinalTstQ_Count
Line Input #1, textstring$
'Articles(IndxArt).FinalTst(TxtCounter).FinalQuestion = textstring$
Next TxtCounter
Next IndxArt
close #1

The program compiles and the script is generated successfully, but when I try to run it, e-prime crashes, and I get the windows message. 

I know that e-prime is reading from the file because when I set the FinalTstQ_count number to more than the number of lines in the text file, I get the "Input past end of file" error message (as expected). It seems that the problem occurs when e-prime gets to the end of the text file. 

Any help would be greatly appreciated!
Thank you,
Marisa

ben robinson

unread,
Mar 28, 2013, 4:48:37 PM3/28/13
to eprime
Do you have a lot of unused "Unreferenced E-Objects" in your file? Try deleting them, if so, and see if your script is no longer "too large to be compiled".

Ben


--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/kCPKL2LGInMJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Marisa Crisostomo

unread,
Mar 29, 2013, 2:28:03 PM3/29/13
to e-p...@googlegroups.com
I deleted all unreferenced objects and it is still too large. What is interesting is that my program was being compiled until I started changing fonts and layouts of the slides.

Marisa

吉祥如意

unread,
Apr 1, 2013, 12:38:01 AM4/1/13
to e-p...@googlegroups.com
I am not sure but I have learnt that when you call from a text file, you need first get the line number  in the text, then loop again to get each line in the textfile. I don't know if this is the reason your eprime  program get crashed.

2013/3/30 Marisa Crisostomo <me.cris...@gmail.com>

Marisa Crisostomo

unread,
Apr 2, 2013, 1:34:42 PM4/2/13
to e-p...@googlegroups.com
How would I do that?

吉祥如意

unread,
Apr 26, 2013, 10:44:08 PM4/26/13
to e-p...@googlegroups.com
sorry , I just checked email this morning. you can refer to this code :
open "G:\\lisa.txt" for input as #1
linecount=-1
do while not EOF(1)
linecount=linecount+1
input #1, ss
loop
close #1
redim array1(linecount)
leth1=linecount+1

open "G:\\lisa.txt" for input as #1
for n=0 to linecount
input #1,array1(n)

next n 
close #1

redim array3(linecount/2)



2013/4/3 Marisa Crisostomo <me.cris...@gmail.com>
Reply all
Reply to author
Forward
0 new messages