Author Topic: Problem with MandeltextB.o2bas  (Read 1410 times)

0 Members and 1 Guest are viewing this topic.

Arnold

  • Hero Member
  • *****
  • Posts: 677
Problem with MandeltextB.o2bas
« on: March 20, 2015, 01:07:05 PM »
Hi Charles,

I changed in examples\Math\MandelTextB.o2bas the putfile "m.txt",b statements to "m1.txt", "m2.txt" and "m3.txt" and no textfile was created. There are endless loops and the demo will not be terminated. "m.txt" is created by MandelTextA.o2bas.

Roland

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 3751
    • Oxygen Basic
Re: Problem with MandeltextB.o2bas
« Reply #1 on: March 20, 2015, 01:25:11 PM »

Hi Roland,

Changing k++ to ++k in each loop will resolve the problem. But still requires a compiler fix.

Aurel

  • Guest
Re: Problem with MandeltextB.o2bas
« Reply #2 on: March 20, 2015, 01:38:55 PM »
Quote
But still requires a compiler fix.
hi Charles
is this problem big or small..hmm ?

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 3751
    • Oxygen Basic
Re: Problem with MandeltextB.o2bas
« Reply #3 on: March 20, 2015, 02:42:43 PM »
Small. 15 mins to trace the bug

k=0
j=0
if k++ > j then
end if

print k 'should be 1