GeneralLatex.exe API error code 21: device is not ready

General information and discussion about TeXnicCenter
Post Reply
RD03
Posts: 2
Joined: Wed Mar 12, 2008 4:45 pm

Latex.exe API error code 21: device is not ready

Post by RD03 »

Hello everyone,

I've lately set up a new computer and installed MikTex 2.6 and TexnicCenter. I used to run the same combination on an old machine, no problems. But now I get error messages when i try to tex one specific document(scrbook, KomaScript, apager bib style, ngerman...and so on).
I've tried this with both MikTex 2.6 and the latest 2.7 version, no difference.
I always get the message

[78]latex.exe: Windows API error 21: device is not ready.

It's definitely a problem of a single document, all others run smoothly so far.
This document also yields tons of warnings about undefined references, which have been ok on the old machine...document absolutely unchanged, entire folder structure with references to bib file and figure files is identical! I've updated environmental variables to the miktex binary folder...I've

Any ideas?
I can provide code if necessary, just thought I'd start a "short" version just in case this is a well known problem...

Any help greatly appreciated!!!

Chris

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Latex.exe API error code 21: device is not ready

Post by Juanjo »

I think you should try to build a mimimal example.. So, make a copy of your document and start removing things: one chapter, another one, a figure, the bibliography,... Try to delete all the elements and text of the document which have no relation with the problem. Then upload the remaining code.
RD03
Posts: 2
Joined: Wed Mar 12, 2008 4:45 pm

Re: Latex.exe API error code 21: device is not ready

Post by RD03 »

Hi everyone,

found the cause of the error...somehow I had placed an absolute link for one of my picture files in the code (like \includegraphics[]{D:/data/pic/sample.eps} ), which caused Latex.exe to try to access a hard drive that wasn't even present. I figured it had something to do with my hardware since the document ran flawlessly on another machine with exactly the same software installation (but a second hard drive installed...;-). Thanks nevertheless!

Chris
spooja
Posts: 1
Joined: Mon Jul 26, 2010 6:55 pm

Re: Latex.exe API error code 21: device is not ready

Post by spooja »

Hello Everyone,

I'm getting the API-20 - Device not ready error, when I try to install miKteX 2.8 on my Windows vista machine.
I read somewhere that you need IE-7, which I already have and still the problem exists.
It actually specifies the path "F:\Latex\MiKTeX 2.8\miktex\config\initexmf.ini" which doesn't exist. F:\ is empty.

Please help.


Pooja.
Post Reply