From 4317fcfce56d622e13fa46b9dadc004375df2e1c Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 3 May 2010 16:13:28 +0000 Subject: [PATCH] 2010-05-03 18:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbide/idemisc.prg ! Finally added existance check for .uic files to avoid the unending flow of strange error reports (RTE/GPF) (and subsequente random guessing) about problems caused by these missing files. Now HBIDE will show a clear message and quit instantly in this case. --- harbour/ChangeLog | 8 ++++++++ harbour/contrib/hbide/idemisc.prg | 8 +++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 13562879a5..3d05160f4b 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,14 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-05-03 18:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbide/idemisc.prg + ! Finally added existance check for .uic files to avoid the + unending flow of strange error reports (RTE/GPF) (and subsequente + random guessing) about problems caused by these missing files. + Now HBIDE will show a clear message and quit instantly in this + case. + 2010-05-03 10:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbmysql/mysql.ch * contrib/hbmysql/tmysql.prg diff --git a/harbour/contrib/hbide/idemisc.prg b/harbour/contrib/hbide/idemisc.prg index bb11cb6c03..2a65fdadba 100644 --- a/harbour/contrib/hbide/idemisc.prg +++ b/harbour/contrib/hbide/idemisc.prg @@ -1518,8 +1518,14 @@ FUNCTION hbide_image( cName ) /*----------------------------------------------------------------------*/ FUNCTION hbide_uic( cName ) + LOCAL tmp DEFAULT cName TO "" - RETURN hbide_pathToOsPath( hb_DirBase() + "resources" + "/" + cName + ".uic" ) + tmp := hbide_pathToOsPath( hb_DirBase() + "resources" + "/" + cName + ".uic" ) + IF ! hb_FileExists( tmp ) + MsgBox( "Error: File " + tmp + " is missing. Please check your installation." ) + QUIT + ENDIF + RETURN tmp /*----------------------------------------------------------------------*/