Hi
When I run the code, it works. But if I set a breakpoint and run again, Water crashes :
Wartość nie może być zerowa.
Nazwa parametru: aColor
w RemObjects.Fire.BaseLibrary.MutableAttributedString_Extension.setColor__$mapped____range(FormattedText self, Color aColor, Range aRange)
w RemObjects.Fire.CodeEditor.FCEDebugConsoleSyntaxColorer.performSyntaxColoringForLine(String line, FCESyntaxColorerState startState, FCESyntaxColorerState& endState, Boolean forEndStateOnly, Int32 getStateAtIndex)
w RemObjects.Fire.CodeEditor.FCECanvasCodeSnippet.performSyntaxColoringForLineNumber____line(Int32 lineNumber, String line)
w RemObjects.Fire.CodeEditor.FCECanvasCodeSnippet.renderLine____atBaseLine__maxX__drawingContext(Int32 lineNumber, Double baseLine, Double maxX, DrawingContext drawingContext)
w RemObjects.Fire.CodeEditor.FCECanvasCodeSnippet.OnRender(DrawingContext drawingContext)
w System.Windows.UIElement.Arrange(Rect finalRect)
w System.Windows.ContextLayoutManager.UpdateLayout()
w System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
w System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
w System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
w System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
w System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
w System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Here is a test case :
namespace consoleapplication21;
uses
java.util;
type
Program = class
public
class method Main(args: array of String): Int32;
begin
var cp : String := java.net.URLDecoder
.decode( typeOf(Program)
.getProtectionDomain()
.getCodeSource()
.getLocation()
.getPath(),
'UTF-8'
);
writeLn(cp);
end;
end;
end.
I’m using the latest stable version.