From: <wda...@us...> - 2008-09-25 17:19:29
|
Revision: 3396 http://oorexx.svn.sourceforge.net/oorexx/?rev=3396&view=rev Author: wdashley Date: 2008-09-25 17:19:04 +0000 (Thu, 25 Sep 2008) Log Message: ----------- Artifact: None Comment: Added out of resources error messages. Modified Paths: -------------- incubator/RexxGTK/4x/grxdialog.cpp incubator/RexxGTK/4x/grxliststore.cpp incubator/RexxGTK/4x/grxtreestore.cpp Modified: incubator/RexxGTK/4x/grxdialog.cpp =================================================================== --- incubator/RexxGTK/4x/grxdialog.cpp 2008-09-25 17:08:56 UTC (rev 3395) +++ incubator/RexxGTK/4x/grxdialog.cpp 2008-09-25 17:19:04 UTC (rev 3396) @@ -638,7 +638,7 @@ if (members) { const gchar **names = (const char **)malloc(sizeof(const char *) * (members +1)); const gchar **allnames = names; - if ( ! names ) { + if (!names) { context->RaiseException0(Rexx_Error_System_resources); return 0; } @@ -678,7 +678,7 @@ if (members) { const gchar **names = (const char **)malloc(sizeof(const char *) * (members +1)); const gchar **allnames = names; - if ( ! names ) { + if (!names) { context->RaiseException0(Rexx_Error_System_resources); return 0; } @@ -717,7 +717,7 @@ if (members) { const gchar **names = (const char **)malloc(sizeof(const char *) * members); - if ( ! names ) { + if (!names) { context->RaiseException0(Rexx_Error_System_resources); return 0; } Modified: incubator/RexxGTK/4x/grxliststore.cpp =================================================================== --- incubator/RexxGTK/4x/grxliststore.cpp 2008-09-25 17:08:56 UTC (rev 3395) +++ incubator/RexxGTK/4x/grxliststore.cpp 2008-09-25 17:19:04 UTC (rev 3396) @@ -80,6 +80,10 @@ size_t members = context->ArraySize(args); GType *types = (GType *)malloc(sizeof(GType) * members); + if (!types) { + context->RaiseException0(Rexx_Error_System_resources); + return 0; + } if (members) { for (int i = 1; i <= members; i++) { context->ObjectToInt32(context->ArrayAt(args, i), (wholenumber_t *)&types[i - 1]); Modified: incubator/RexxGTK/4x/grxtreestore.cpp =================================================================== --- incubator/RexxGTK/4x/grxtreestore.cpp 2008-09-25 17:08:56 UTC (rev 3395) +++ incubator/RexxGTK/4x/grxtreestore.cpp 2008-09-25 17:19:04 UTC (rev 3396) @@ -80,6 +80,10 @@ size_t members = context->ArraySize(args); GType *types = (GType *)malloc(sizeof(GType) * members); + if (!types) { + context->RaiseException0(Rexx_Error_System_resources); + return 0; + } if (members) { for (int i = 1; i <= members; i++) { context->ObjectToWholeNumber(context->ArrayAt(args, i), (wholenumber_t *)&types[i - 1]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |