I didn&#39;t know that you can drop a PDF onto TeXworks will open it! I&#39;m also on OS X but it never occured to me to do this. I&#39;ll try it later today. Thanks for the info!<br><br>- Iwan<br><br><div class="gmail_quote">
On Mon, Oct 26, 2009 at 10:55 AM, Bruno Voisin <span dir="ltr">&lt;<a href="mailto:bvoisin@me.com">bvoisin@me.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Le 26 oct. 2009 ŕ 00:48, Iwan Setyawan a écrit :<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What do you mean by &quot;the program crash when it tries to open the pdf file&quot;? Are you trying to open a PDF file using TeXworks? AFAIK, you cannot do this. That is, I don&#39;t think you can use TeXworks as a PDF viewer.<br>

</blockquote>
<br></div>
Strange. Are you sure TeXworks can&#39;t be used as PDF file viewer? On OS X it can, I just tried (ie dropping a random PDF file onto it). There are some warnings issued to the console, but they&#39;re harmless and the user doesn&#39;t see them, I only saw them because I opened Console.app to check:<br>

<br>
26/10/09 04:36:30       [0x0-0x42042].org.tug.texworks[519]     QFileSystemWatcher::removePaths: list is empty<br>
26/10/09 04:36:56       [0x0-0x42042].org.tug.texworks[519]     SyncTeX ERROR: gzread error (-2:0,)<br>
26/10/09 04:36:56       [0x0-0x42042].org.tug.texworks[519]     SyncTeX ERROR: SyncTeX Error: Bad preamble<br>
26/10/09 04:36:56       [0x0-0x42042].org.tug.texworks[519]     QFileSystemWatcher::removePaths: list is empty<br>
26/10/09 04:36:58       [0x0-0x42042].org.tug.texworks[519]     SyncTeX ERROR: SyncTeX Error: Bad preamble<br>
26/10/09 04:37:25       [0x0-0x42042].org.tug.texworks[519]     SyncTeX ERROR: gzread error (-2:0,)<br>
26/10/09 04:37:25       [0x0-0x42042].org.tug.texworks[519]     SyncTeX ERROR: SyncTeX Error: Bad preamble<br>
26/10/09 04:37:25       [0x0-0x42042].org.tug.texworks[519]     QFileSystemWatcher::removePaths: list is empty<br>
26/10/09 04:37:27       [0x0-0x42042].org.tug.texworks[519]     SyncTeX ERROR: SyncTeX Error: Bad preamble<br>
26/10/09 04:37:58       [0x0-0x42042].org.tug.texworks[519]     SyncTeX ERROR: gzread error (-2:0,)<br>
26/10/09 04:37:58       [0x0-0x42042].org.tug.texworks[519]     SyncTeX ERROR: SyncTeX Error: Bad preamble<br>
26/10/09 04:37:58       [0x0-0x42042].org.tug.texworks[519]     QFileSystemWatcher::removePaths: list is empty<br>
26/10/09 04:38:00       [0x0-0x42042].org.tug.texworks[519]     SyncTeX ERROR: SyncTeX Error: Bad preamble<br>
<br>
That said, the original poster&#39;s request was different and mentioned compiling (a .tex input file in the Source window most likely), generating PDF output and then attempting to open this output (in the Preview window most likely):<br>

<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
On Oct 25, 2009, at 8:54 PM, zhangdenis wrote:<br>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I try to use texworks in levono x200t with winxp2. However I meet &quot;memory could not be read&quot; error. Texworks compiles correctly, and can generate the pdf file. The program crash when it tries to open the pdf file.<br>

</blockquote></div></blockquote>
<br>
Though not 100% sure, I would interpret this as normal TeXworks operation: open an input file in the Source window, typeset it and then view the result in the Preview window. And interpret the bug report as &quot;memory could not be read&quot; error, followed by program crash, when the Preview window is opened.<br>
<font color="#888888">
<br>
Bruno Voisin<br>
</font></blockquote></div><br>