X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: no message or dialog when a DLL is missing Date: Wed, 30 Aug 2006 23:12:18 +0100 Message-ID: <04b901c6cc81$5b7883b0$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <000201c6cc76$63f2edb0$c64861cb@anykey> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 30 August 2006 21:54, Danny Smith wrote: > Dave Korn >> >> On 30 August 2006 16:19, Pierre Baillargeon wrote: >> >>> I've identified the reason why DLL don't show up: in the startup code >>> (winsup/cygwin/dcrt0.cc), in dll_crt0_0(), Win32's SetErrorMode() is >>> called to suppress all OS error dialogs. It's there since 1998 >>> according to the changelog, so it must not bother many people... >> >> It's a real, huge, massive problem, when an entirely >> scripted and automated process such as a cron job suddenly >> pops up a requester in the middle of the night that won't go >> away until someone comes in the next day, logs in, and clicks it away ... >> > > Have you ever tried running the gcc (or other large) testsuite on mingw > (or cygwin -mno-cygwin)? Nope! > I have a special crt2.o that I use for that which does the SetErrorMode > trick. Throws up a requester every time a testcase SEGVs? Yow! > Similarly there is nothing to stop user code from turning SetErrorMode() > on again if you want it . Of course, but there's still an issue here why this case doesn't get a proper ENOENT status in $? and an error message on stderr. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/