Explanation of error generated

Discussions related to Visual Prolog
Post Reply
daveplummermd
Active Member
Posts: 75
Joined: 18 Jul 2006 17:18

Explanation of error generated

Post by daveplummermd » 6 Aug 2018 0:47

Given the error message below, is there an indication of the file/position of the code responsible?
Capture.JPG
Capture.JPG (68.94 KiB) Viewed 129 times
Thanks in advance
Dave Plummer

User avatar
Thomas Linder Puls
VIP Member
Posts: 2341
Joined: 28 Feb 2000 0:01

Re: Explanation of error generated

Post by Thomas Linder Puls » 6 Aug 2018 11:30

If you "Copy" the trace, and then switch to the IDE and choose Go to -> Go to Position On Clipboard Shift+F2 then you can easily access the lines mentioned in the dump (double clicking on lines and using F8/Sift+F8).

Anyways, string(398) is here:

Code: Select all

clauses     front(Source, Position, First, Last) :-         checkPosition(Position, Source),         First = create(Position, Source),         Last = uncheckedConvert(string, uncheckedConvert(integerNative, Source) + sizeOfDomain(char) * Position).
You are trying to take the first 6 characters from a string that is only 4 characters long. The dump may have revealed where string::front was called from, but that is not visible in the image.
Regards Thomas Linder Puls
PDC

Post Reply