Ignore:
Timestamp:
09/09/14 02:38:41 (11 years ago)
Author:
Mathieu Morlighem
Message:

NEW: added comment as to how to temporarily fix the cast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Options/Options.cpp

    r18064 r18487  
    7474
    7575                option=dynamic_cast<Option*>(*object);
     76                //option=(Option*)(*object); //C-like cast
     77                /*There is a crash on some machines (Einar Olason) that needs to be fixed*/
     78                if(!option){
     79                        _printf_("The dynamic_cast from Object* to Option* is failing.\n");
     80                        _printf_("\n");
     81                        _printf_("A quick qorkaround consists of using a C-like cast\n");
     82                        _printf_("\n");
     83                        _printf_("Open Options.cpp and change the dynamic_cast in Options::GetOption by a C-like cast\n");
     84                        //_printf_("Open Options.h and replace the dynamic_cast of all the Get functions to C-like cats\n");
     85                        _printf_("\n");
     86                        _error_("Make the fix above and recompile ISSM");
     87                }
     88
    7689                if (!strncmp(name,option->Name(),strlen(option->Name()))){
    7790
Note: See TracChangeset for help on using the changeset viewer.