George James Software logo

KB0096

Splitting Lines in a Routine Causes Corruption

Applies to: Serenji 2.1.2 with 2.0.x routines

This occurs when a Serenji 2.1.2 client is connected to a server running the Serenji 2.0.x support routines. Inserting a line-break (carriage return) during routine editing results in the routine being invalid once it has been saved.

Symptoms

After editing, routine execution fails. Examination of the routine outside Serenji reveals lines containing ASCII character 13 within them.

Cause

Serenji 2.1.2 includes improved handling of the situation where the Enter key is being used to split an existing line or insert a new line. The client-side code implementing this does not make correct allowance for a difference in line-break handling between the 2.1.x support routines and the 2.0.x ones.

Solution

Install the 2.1.2 support routines onto your servers. Users of 2.0.x clients will receive a Version Mismatch warning message when connecting. This can safely be dismissed.

Once the 2.1.2 routines have been loaded, Serenji can be used to correct any routines previously corrupted in this way. Use the following steps:

  1. Open the routine for editing.
  2. Insert one character, then delete it. This makes the routine eligible for saving.
  3. Save and close the routine.

This problem has been corrected in Serenji 2.2 onwards.

Last reviewed: Nov 6, 2004

Back to top