We had crashes when printing with dataflex reports. Currently DF19.1 and DR 6.2.
Finaly i was able to solve the issue. Just a minor fix in the cprintdialog.pkg of the DR 6.2 packages. (they do exist in de 7.01 packages, so i you use those, you can make the same fix).
The old code is known to be a potential memory leak!
Old code in cPrintDialog.pkg
Code:
// Convert a string to a fixed length char array { Visibility = Private }
Function StringToCharArray String sValue Integer iLength Returns UChar[]
Address aChar
UChar[iLength] uChars
Move (AddressOf (uChars)) to aChar
Move sValue to aChar
Function_Return uChars
End_Function
New code:
Code:
// Convert a string to a fixed length char array
{ Visibility = Private }
Function StringToCharArray String sValue Integer iLength Returns UChar[]
Address aChar
UChar[iLength] uChars
Move (Pad (sValue,iLength)) to sValue
Move (StringToUCharArray(sValue)) to uChars
Function_Return uChars
End_Function
After the code change we don't have any crashes when printing..
Regards, IJmert van Gorsel.