Ignore:
Timestamp:
2010-01-14T19:34:40+13:00 (11 years ago)
Author:
ak19
Message:

Major bug fix after Dr Bainbridge debugged the server code which was causing the server to crash upon Enter Library: the line where it failed was simply where a local-scope text_t object was being naturally destructed. The real error was a memory corruption which the use of the new heapchk function helped to locate: collectset's inherited method configure() ought to have been specified as virtual, since it was declared virtual in the superclass configurable. A couple of destructors (in collectset and oaiservr's oaiconfig) have been made virtual as well since the superclass configurable has virtual methods which requires all related destructors to be virtual.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/colservr/collectset.h

    r21453 r21455  
    3535#endif
    3636
    37   int                   noofservers;
    3837  text_t                httpdomain;
    3938  text_t                httpprefix;
     
    4847  collectset();
    4948
    50   ~collectset();
     49  virtual ~collectset();
    5150
    5251  // initialise the collections
     
    5453
    5554  // configure all the servers as supplied
    56   void configure (const text_t &key, const text_tarray &cfgline);
     55  virtual void configure (const text_t &key, const text_tarray &cfgline);
    5756
    5857  // Add/remove collections
Note: See TracChangeset for help on using the changeset viewer.