
I'm still trying to fix it...

Posted 25 September 2005 - 01:42 PM
Posted 25 September 2005 - 01:49 PM
Posted 25 September 2005 - 02:24 PM
What about a new topic in CPLua's subforum?Btw 1: We need a web page to post small programs demostrating a bug, or a strange behavior. We may also post screenshots there. I think that we could use a subdirectory of http://orwell01.free.fr/Release/CPLua/ for that (by your permission, of course).
We do, but there are allways new suggestions at the last minute... (see your post above for example)Btw 2: Ehm, shall we expect version 0.7 today?
Posted 25 September 2005 - 03:30 PM
Won't help. You cannot upload anything here, except for the "File Sharing", but this is not the proper place for that, plus they want everything as *.rar archives.What about a new topic in CPLua's subforum?
Posted 25 September 2005 - 04:37 PM
Posted 25 September 2005 - 07:03 PM
Posted 25 September 2005 - 07:06 PM
Posted 25 September 2005 - 08:36 PM
Posted 25 September 2005 - 08:42 PM
1) the scroll bar does not work in the output window, for example run the Dromberg program
Yup, "math.sin(x)" is not an operation recognized by the cas. You have to use the same operation as in Main mode. The Lua math functions have nothing to do with the cas3) try :
require("cas")
exp=cas.expr("math.sin(x)")
y=cas.integ(exp,"x")
print(y)
output :
nothing !
maybe I do some thing wrong .
Posted 25 September 2005 - 08:45 PM
Posted 25 September 2005 - 08:53 PM
I cannot reproduce that bugwhen a program is running , if you press the Menu toolbar (For example)
Fatal exeption error
Posted 25 September 2005 - 09:00 PM
I cannot reproduce that bug
![]()
When did it happen?
Posted 25 September 2005 - 09:02 PM
Indeed, but it's more than that: if the output is more than one screen, the text doesn't scroll to the last line, and you cannot see the end of the output, either by using the cursor keys or the scroll bar. This bug occurs in the ClassPad, and in the Window$ executable.1) the scroll bar does not work in the output window, for example run the Dromberg program
In fact, the problem is in the print function: it used to print its arguments with a space between them. Now it prints a squared box between the printed arguments, but only in ClassPad. The Window$ executable does not have this bug.2) some problems with the font , see the output screen of DRomberg program
Posted 25 September 2005 - 09:05 PM
Posted 25 September 2005 - 09:10 PM
*Taking his super Bug Exterminator*Indeed, but it's more than that: if the output is more than one screen, the text doesn't scroll to the last line, and you cannot see the end of the output, either by using the cursor keys or the scroll bar. This bug occurs in the ClassPad, and in the Window$ executable.
Got it. It's easy to change...In fact, the problem is in the print function: it used to print its arguments with a space between them. Now it prints a squared box between the printed arguments, but only in ClassPad. The Window$ executable does not have this bug.
You didn't specify what should happen when you specify '0' as sign argumentmath.sign has a bug: math.sign(a,0) should print 0, no matter what the first argument is. Now it simply prints the first argument, i.e., math.sign(-2.3,0) yields -2.3. In other words, it acts as if the second argument is a positive number (but 0 is not a positive number). Afterall, all implementations of sign return 0 in this case. I'm not speaking about the Fortran 95 implementation only, I'm speaking about all implementations of this function, in every language I know.
Okay, I will try some other settingsIt seems that Lua program execution is slower now. You can see the difference by running my driver program DRK4Rich which solves systems of differential equations. In version 0.61, the first example (a simple differential equation) was solved almost instantly, now you should wait 2 seconds. The second example (a system of 2 differential equations) needs more time as well. Unfortunately, I cannot measure how much slower version 0.7 is, but it is certainly slower.
I know, but it's a headache...when you open more than 1 program tha tab menu does not cut the extra file name lenght
Normally the "ESC" key is supposed to break the program too. But I said "normally"...a suggestion :
it is good to have the break functianality in the fullscren mode , what is your Idea ?
Posted 25 September 2005 - 09:14 PM
Indeed. Open any file, then open DRomberg (or any file with 8 characters) to reproduce this bug. The first time you open it, the tab is smaller than it should, and extra text appear in the nearby tabs. If you open more files, however, and you change the editor view to another tab, the screen seems to be refreshed, and everything is ok.when you open more than 1 program tha tab menu does not cut the extra file name lenght
Posted 25 September 2005 - 09:20 PM
Posted 25 September 2005 - 09:25 PM
I know, I know... But this is PEG's fault, not mineIndeed. Open any file, then open DRomberg (or any file with 8 characters) to reproduce this bug. The first time you open it, the tab is smaller than it should, and extra text appear in the nearby tabs. If you open more files, however, and you change the editor view to another tab, the screen seems to be refreshed, and everything is ok.
What do you call "the menu toolbar" exactly?I have opened a file without saving it , I pressed the menu toolbar and I recieved the fatal ....
Posted 25 September 2005 - 09:31 PM
Posted 25 September 2005 - 09:34 PM
I'm trying to reproduce this, but I cannot get any fatal error yet.this time I was not in the middle of running a program !
I have opened a file without saving it , I pressed the menu toolbar and I recieved the fatal ....
it asks for saving the changes . but it does not take time that the fatal .... appear !
Posted 25 September 2005 - 09:34 PM
Posted 25 September 2005 - 09:45 PM
unique33 has right. Open 3 files, then press Menu: Fatal exception error.Cplua -> new file -> open more than 1 file (or maybe more tha 1 new file)-> press menu key
Posted 25 September 2005 - 09:49 PM
I'm tracking the error for 15 minutes, but it's like the problem that I had with the CAS: try/crash/init/transfer/retry/crash/....unique33 has right. Open 3 files, then press Menu: Fatal exception error.
Posted 25 September 2005 - 09:52 PM
Oh, the same headache. Wish you will have courage for this. As I said, the night seems to be looooong.I'm tracking the error for 15 minutes, but it's like the problem that I had with the CAS: try/crash/init/transfer/retry/crash/....
Posted 25 September 2005 - 09:53 PM
Posted 25 September 2005 - 10:00 PM
Posted 25 September 2005 - 10:09 PM
You can notice that all ClassPad applications have a "Close" option in the menu of their main windows, and actually it never close it...It,s good to have an exit menu option for Cplua , the close menu does not work at the start up screen! it just work in the new file and Interactive .
have you worked on it yet ?
Posted 25 September 2005 - 10:25 PM
Posted 25 September 2005 - 10:36 PM
Posted 26 September 2005 - 08:10 AM
Posted 26 September 2005 - 10:50 AM
I think I got it now: the console window is currently limited to 1000 characters, that's why there is no output after a whileI'm afraid that the "unusable scroll bar" bug has not been completely fixed.
That's right, I already observed that, but I have absolutely no clue about what's happeningThe Window$ version has a strange behavior, concerning the "Save changes" window. This window is somewhat messed up, plus it has strange buttons: sometimes it has only 1 button ("OK"), sometimes 3 buttons ("OK", "Cancel", "Retry"). The ClassPad vesion always has 3 buttons: "Yes", "No", "Cancel".
Good point, indeed it will certainly be helpful. Btw, did you notice that the "strange behavior" on the executable only happens with those same files that were previously saved, then modified? Maybe there is a link, but I really don't know howIf a file is modified, and you try to close it, then you press "No" in the "Save changes" window, you will get a fatal error. This happens only if this file was previously saved, then modified. It does not happen if you close a new file which is not saved yet. You probably already know this, but, if you don't, it may help to track the fatal error bug.
That's strange... Let me know if it happens again.I got a very strange behavior, concerning the editor's menu. I was editing a program, and suddently I was not able to press any menu item (I tapped on menu items, but nothing happened). I was thus forced to close CPLua to escape. However, I cannot reproduce this bug. It happened once, and that's all.
Posted 26 September 2005 - 02:55 PM
Posted 26 September 2005 - 09:29 PM
Posted 26 September 2005 - 09:33 PM
Posted 26 September 2005 - 10:06 PM
I don't think that this is a bug. It happened to me, even in previous version, but the reason was a bug in a Numerical Analysis program that caused a large amount of unecessary computations. Probably, ClassPad runs out of RAM. The only solution to programmer's bugs is saving before executing...If you recieve the "Insufficient memory system to run" , then Cplua stop working ang goes back to the Classpad start up menus !
so you will lose all of your work !
Is there any solution to this problem ?
Posted 26 September 2005 - 10:13 PM
I was going to say that I just tried your "DKrone" program to evaluate the speed of CPLua 0.71Orwell, you have changed the settings you said last night about program execution? I think that my programs run slightly faster than version 0.70. I'm not sure, I'm planning to reinstall version 0.61, measure the execution time somehow (by a chronometer - ClassPad doesn't have time measurement facilities
), then reinstall version 0.71 to see if there is any difference in computation times. But I will try to do this the next days, unfortunately I have a lot of paperwork to do.
Well this happened when I used a standard class for the console window, and not my ownI have only noticed that, although scrolling text in large outputs works well, printing in the output window becomes considerably slower. You can see the difference after printing 50 lines of data output or so. Maybe it is due to the workaround for the output limit of 1000 characters. Not really important anyway (afterall, it's a calculator not a computer). The fact that output window seems to work as it should is more important.
Posted 26 September 2005 - 10:29 PM
Yes, "DKrone" can be used as a nice benchmark, because it does plenty of computationsI was going to say that I just tried your "DKrone" program to evaluate the speed of CPLua 0.71
![]()
You were speaking about "less than 8 seconds" when you presented it, and I count ~6 seconds of execution with the last version
Posted 27 September 2005 - 05:38 AM
This is just a polite way of crashing when the ClassPad runs out of memory.I don't think that this is a bug. It happened to me, even in previous version, but the reason was a bug in a Numerical Analysis program that caused a large amount of unecessary computations. Probably, ClassPad runs out of RAM. The only solution to programmer's bugs is saving before executing...
Posted 27 September 2005 - 08:26 AM
I did, and I must say that I was impressedIf you want to see what decent documentation means, see the pdf accompanying LuaNumAn
.
Posted 27 September 2005 - 08:28 AM
0 members, 1 guests, 0 anonymous users