Re: what is the reason for the "gui framework" error?

Ulrike Fischer <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <[email protected]>
Am Thu, 19 Apr 2012 13:00:14 -0700 (PDT) schrieb Peter Grabs:

> i use miktex 2.9, i set it to ask me before installing stuff on
> the fly (because i want to see when that happens).
 
> that works perfectly when i call pdflatex manually.
 
> it does not however when techniccenter calls pdflatex. this is a
> well known problem (pdflatex.exe reports "GUI framework cannot be
> initialized"), and i have not found a solution yet (disabling the
> asking or doing the installs beforehand are no solutions).
 
> i also have not found an explanation or reason for that. why would
> it be a problem for an application to open a gui if it was called
> by another application instead of manually? 
 
> who is "at fault"? pdflatex or the editor?

The author of winedt analyzed the problem in october 2010. As far as
I understood the problem arises when pdflatex doesn't run inside the
standard windows console but in a console of the editor:

"The problem with on-demand package installation and the default
MiKTeX option "ask me first" is that MiKTeX's accessories assume
that they are running in Windows Console and thus pass an "invalid
[non-window or hidden window] handle" when they try to create a
dialog to confirm package installation. This happens if console is
hidden or detached and STDHandles and pipes are used to capture
output and input -- which is the case when WinEdt executes these
applications in its own console. "

I don't know if this counts as a bug in miktex. I actually don't
care: I have set up winedt so that I always use the standard windows
console. Also the winedt author found within three days a way around
the problem for the people which wants to use the internal console
of winedt. I don't know if the problem affects other editors, at
least I have never heard complaints from emacs, texworks etc users.
Only texniccenter users are running constantly in this trap. 


-- 
Ulrike Fischer 


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.