PPL 0.8 pre-release
Click here
http://ppl.arwen.com/Downloads/pideppl.zip/download to download the PPL 0.8 pre-release files.
Only download this file if you already have PPL installed on your PC and PocketPC.
This file is only intended for specific beta testers that know what to do with these files.
As you make this pre-release builds, are you switch some debug information on and off? The last build I had was 411K, and this new one is 1.83 MB.
With this new build, I am still having debug issues. The offending code is:
- Code:
proc SwitchTabs(lParam$)
struct(msg$, NMHDR);
msg$ = lParam$;
if(msg.code$ == TCN_SELCHANGE)
cur$ = TabControl_GetCurSel(tabTabs$);
if(cur$ == 3)
ShowWindow(lstMessages$, true);
else
ShowWindow(lstMessages$, false);
end;
end;
end;
The error is coming on the "msg$ = lParam$" line. However, if I just run the application and not try to debug it, this code works just fine.
Also, when I run the application, the progress bar comes up (nice, by the way), but when all the progress is done I have to go to the memory screen, select my application, and click Activate.
Kornalius,
As per Eric's comment the PIDE.exe is 1 922 048 bytes compared with previous 421 376 bytes.
It does run ok.
The progress bar on the ppc during compilations is very nifty.
Also agree with Eric, that when doing a "run" from the PIDE the application screen is not made visible on the ppc - its necessary to do a Start/Settings/System/Memory/RunningPrograms and 'activate" the application.
I can confirm that the "memory leak" test appears successful here also.
Ok sorry guys, I didnt compress the PIDE.EXE before packaging it. I usually do.
Merv: Its great to hear the memory leaks are gone. You made me do some good thinking and it resulted in fixing something I wanted to fix for a while.
PointOfLight: I will definitely take a look. What error message are you getting.
I will try to fix the window issue tomorrow also. I didnt test running from the PIDE.
Unfortunately I don't have my stuff set up right now so I can't test it, but the error had something to do with the = sign. It was almost like it didn't like the assignment of lParam$ to msg$.
To solve the window issue, please use a SetForeGroundWindow() after each ShowWindow() function. I did it with the main.ppl since the beginning. I added the SetForeGroundWindow() function to Console.ppl, Editor.ppl and ProgMan.ppl. This solves the problem.
When we use the Visual Form Builder, though, we're not calling ShowWindow. Is this something you're planning on adding to the form builder?
Yes, I just fixed the Visual Form Builder to do a SetForeGroundWindow() right after the ShowWindow(). If you are creating a Library type form, you have to manually show it anyway using the ShowWindow() it is just a matter of adding a new line SetForeGroundWindow() after the ShowWindow() call.
New daily pre-release is available.
I worked really hard on trying to get the memory leaks out. I think there are still some but a lot less than previous build. I will try to squash more in the next few days.
New pre-release build is available now.
Have fun.
Pre-release updated for the weekend!
http://ppl.arwen.com/Downloads/
Kornalius,
There seems to be a problem in the prerelease. I just unzipped it and loaded it onto my PPC and replaced the PIDE.EXE file. Now when I run PIDE I get "(FLIST.PPL) [Invalid number of input parameters at 'LISTTOSTR' (6,6)]" on my PPC. At that point, PIDE never opens. If I try to close it, I get a message that the program is not responding.
Have you got a quick workaround or should I go back a version?
B.
Oups, sorry about that, here replace the flist.ppl file on the ppc with this one.
In addition, I noticed that if you launch PPL on the PocketPC, then select Edit, you get an invalid number of paramters in function ShowModal. This has actually been there for a couple of iterations of the pre-release, but I kept forgetting to mention it.
Kornalius,
I'm afraid I must report the new pre-release is an absolute disaster. I have loaded the update + Flist.ppl.
I wrote routines to replace "CheckMenu" and "MenuChecked" importing "CheckMenuItem" from teh CE API.
The code compiles without an error, however any attempt to run the code (either from the PIDE or from the PPC results in a string of ShowMessage error boxes (lots of them!). The first one reads:
----------------------
App: GPSTRAK.PPL
Proc: *WndProc
OpCode: RETURN
Char/Line: 2,113
Stack Status Pointer
underflow error!
----------------------
The Proc,OpCode and Char/Line reference do not appear to make sense.
If I fall back to the previous pre-release (eg: just roll-back ppl.exe and flist.ppl) all is OK!
regards
Ok guys...
1. Some functions have been removed from PPL. (CheckMenu, MenuChecked...)
2. The editor.ppl has been changed a bit too.
3. The ShowModal() function now takes more than 1 parameter.
4. I can always supply the new editor.ppl and main.ppl if need be.
5. Merv, delete the .ppc of your program first. I think it gets confused.
6. This pre-release is not a disaster, it is just not compatible with the .ppl files you guys have from 0.7b. Sorry I didn't think of that before making it available.
Here ya go, latest .ppl files that are compatible with the latest pre-release. I have also included the demo .ppl files.
Hi Kornalius,
1. I have deleted ALL PPC files on the pocketpc.
2. I have downloaded + installed the new PPL file set
3. I can successfully run "benchmark"
I have already modified the "checkmenu" and "menuchecked" code so as to now use my own routines that import CheckMenuItem from the API - you had previously warned us about this. These changes compile and run OK under the PREVIOUS V0.8 pre-release.
Now I load my project into the PIDE. It compiles without error. I then do a "run" from the PIDE.
I am still getting a sequence of error messages:
----------------------
App: GPSTRAK.PPL
Proc: *WndProc
OpCode: RETURN
Char/Line: 2,103
Stack Status Pointer
underflow error!
----------------------
I now understand the message .......
these messages are being generated at the final "return(ok$)" statement in my *WndProc(s) - eg: the window handlers for the three forms I create. I also get a error message complaining about a "local" definition line at the start of one of these window procedures.
What changes do I need to make to my "PPL" sources to be compatible with the new pre-release.
regards
Hi Merv,
I don't know what is causing the problem without seeing the code.
Send me your code and I will look at your program first thing Tuesday. I am pretty busy this weekend.
Just a quick heads-up. I loaded the latest set of PPL files on my PPC, and the editor is still broken. The ShowModal problem is gone, but now it break with "syntax error at 'ENABLEMENUITEM'"
Ok guys, forget about this pre-release. I will keep on working on it until the official beta release.
PointOfLight: It because you don't have the declares in the libraries. The new libraries have been updated as well. Sorry didn't include those.
Add these lines to lib\Windows.ppl:
#declare EnableMenuItem apidll EnableMenuItem 3 1
#declare CheckMenuItem apidll CheckMenuItem 3 1
Hi Kornalius,
I've done some investigation into my problem. It would appear that it is someway related to the use of "type" declarations.
One of the code sections that cause the problem is just an initial set of assignments. This section contains a "type (variable$,tint)" statement. The problem can be made to disappear by commenting out the statement (but what effect that will have on the intent of teh code bloack I am yet to determine). Similar for some other sections.
I'll take a little time to re-read some of your postings over the past few days to see if I can understand how "type" has changed and evaluate its effect on my code
Getting there .....
Oups, yep Type() has definitely changed in the last pre-release. The funny thing (I guess not too funny), is that I don't remember what the original Type() function was doing. Now it changes the type of a variable to the type specified. The internal code for accessing these variables has changed a bit. I will retest to make sure it works correctly. That is probably the cause.
Btw, the developement of the PC version of PPL is going very well. I can run a program on the PPC and the PC without changing a single line of code. The main.ppl so far works like a charm. Developing the PC version helped me in finding some weird bugs (memory leaks and unassigned variables) that wouldn't give any errors on the PPC. Very cool.
Since the game API is based off of PocketFrog for the PPC, what will the PC version use? Or is there a PC version of PocketFrog (that would seem like a bit of a contradiction, but hey...)
I think PocketFrog is compatible with the PC. I will need to check on that later. Hekkus Sound System has a PC version too I think. (well I hope!)
Hi Kornalius,
I pasted the following code segment as "DoTestProc3" in my "Test Environment" program that I have been using for "testing", compiled and ran from the PIDE. I selected TEST/TEST#3 from the menu ....
- Code:
proc DoTestProc3(hWnd$, Msg$, wParam$, lParam$)
local (MyMap$);
type (MyMap$,TINT);
MyMap$ = 251;
print("TYPE test ... MyMap$="+str(MyMap$));
end;
The pocket pc generated endless error messages and then before I had time to select "STOP" from the PIDE menu the pocket pc performed a "HARD RESET" ... I am currently re-installing all my software to my pocket pc.
I think we have a problem .....................
Ok,
I will look at it and get back to you. Sorry about the HARD-RESET.

Hi Kornalius,
No real problems ... took the opportunity to flash upgrade the latest OS provided by i-mate (my pocket pc manufacturer). Have installed everything I want from my backup and re-synched with the desktop. Amazing how much "junk" you collect on a "computing device" over time.
Only thing that remains to do is re-establish the GPRS settings (I know I put them somewhere safe, but at least this one is easily solved with a telephone call to the local carrier if I can't find them). I'll then load PPL 0.7b plus the second latest PPL and PIDE V0.8 files and will be back in business.
I'll complete these last two tasks first thing tomorrow morning.
cheers
Ok, I fixed the following code:
- Code:
proc DoTestProc3(hWnd$, Msg$, wParam$, lParam$)
local (MyMap$);
type (MyMap$,TINT);
MyMap$ = hWnd$;
ShowMessage("ok");
ShowMessage("TYPE test ... MyMap$="+MyMap$);
end;
proc main
while (i$<=10)
DoTestProc3(i$, 0, 0, 0);
i$++;
end;
end;
This works very well now. There was some very obvious problems with the programmation of the Type() function.
It seems that the COM functionality is no longer working. The line:
db$ = CreateObject("adoce.recordset.3.1");
now produces an Access Violation error.
Kornalius and All,
Just to report that pocketpc fully restored ... PPL V0.7b + V0.8 pre-release patches applied up to the second last release (20040827).
Considering you believe you may have found a "type()" abnormality I'll wait for the next release before going forward with V0.8. In the meantime I might have a play with ADO.
ready to go ...............
PointOfLight: I just tried the COM.ppl demo here which uses the "adoce.recordset.3.1" and I get no errors, it is working. Maybe it's just that HELL pre-release version.

If .8 still has a ways to go, PLEASE give us another pre-release

I want to keep playing with COM, but I also want to keep at least one of the new features in the latest pre-release (the deletion / recreation of the menu bar). I know I'm selfish...
I will upload another build tonight. Don't worry I won't let you down guys!

Don't ever think you've let us down. Even in it's infancy I still enjoy PPL much more than NSBasic. The editor is better, the debugging is there (NSBasic doesn't have it), and the language is more robust. It continually amazes me that you get so much accomplished on your own (and no, anyone else reading this, I don't get a kick back of any sort

)
Kornalius,
Looking forward to the next update, but do not rush it. You are doing a tremendous job and as Eric says the product is equal to (or better than) anything of its kind available.
Thanks guys for the kind words. I really appreciate it. I will unfortunately delay for a day today's pre-release. I am working on something really cool. And I am making an important internal change that will simplify coding internally and make the whole program even more stable. And this new feature is...
Matrices:
a$ = [10, 20, [10, 20], "string"];
a$ = a$ + [1, 2, [1, 2], " append"];
a$ = a$ + 5;
ShowMessage(a$[0]); // 16
ShowMessage(a$[1]); // 27
ShowMessage(a$[2][0]); // 16
ShowMessage(a$[2][1]); // 27
ShowMessage(a$[3]); // "g append"
This way it will allow for really cool data manipulation. Matrices becomes array within PPL. Matrices will allow for sub-arrays and strings.
Finally, a new pre-release of PPL beta 0.8.
Yep it's here. This one is a full install instead of just the .exe files.
This new pre-release as a lot of new features and bug fixes. Here are the main new features of the language:
- New PC version.
- Matrices.
- Console where you can write commands and execute them.
- Regular Expressions.
- Pre-alpha of the Visual Form Builder. (VFB.PPL) Still not accessible from the main interface.
- Lmove function for lists.
- Fill() function that supports arrays and strings.
- And much more...
Hope you like it!
Have fun.
There seems to be a bit of a problem with the latest full install pre-release. Turns out that you're distributing the 8/7/2004 build of ppl.exe. As you can imagine, it's causing a bit of havok with some of my programs

Hope you get a chance to correct this soon.
Yes I am, sorry about that. My EZSetup program has been deleted somehow.
This one should work now!
Sorry about the inconveniences all.

Kornalius,
I just downloaded the zip file again and it still seems to be 0.7b on the PPC. It may still be wrong. Could you check please.
Brad
There are three links on the page. It's the last one.
I hate to say it, but he's right. I downloaded it not more than five minutes ago, uninstalled everything from both PC and PocketPC, and installed the new download (from the 3rd link). The PIDE comes up with an Intel option, so I know it's the new one, but when I go into the PPL directory on the PocketPC, the PPL.EXE executable is dated 8/7/04.
Figured out the problem. The PPL install in the zip file is the correct one. However, the one bundled in the PIDE zip, which is the one that the PIDE install launches, has the wrong set of files. So, when installing, just say No to launching the PPL install, and use the PPLSetup.exe that comes in the zip file downloaded from the site.
Damn it. I will fix this tomorrow. Again, I am very sorry, I guess I was too tired and just made crappy builds tonight.

Time to sleep now. See ya all tomorrow.
Go rest. You more than deserve it. We're smart folk. We'll survive. All the parts are there, we just need to execute the right ones

Good job! I'll be sure to tell Kornalius to give you a raise!
I found the Visual Form Builder AND... got this error.
ControlEdit.PPL not found at chr position 96.
Can you send us the file Kornalius?
Brad
I will repackage the whole thing in a few minutes. Everything should be alright, yeah right!

Can we test apps on the desktop with this yet?
Definitely. It works and much faster too! Just select Target -> Intel PC in the PIDE and set your target paths correctly and you can run your PPL code on the PC.
Btw, all PPL programs that have been distributed with the PocketPC version works under PC too.
In your install path of the PIDE, you will find a PPL directory and you can run PPL.EXE from there and see for yourself!
Did the COM functionality change any in this latest pre-release? The ADO sample I've been working on has suddenly gone "funky". I get "file not found" errors on a database that I know the ADO component has already opened, string values from records are coming back bogus, the world has gone nuts

Show me the piece of codes that don't work anymore. I will do some testing. I haven't tested COM in a little while.
I will send you something in a little bit. I'm doing some more testing, because it looks like some of the problem could lie with lists, and not COM. I'll get back to you in a bit.
Okay, I guess the next question is, how has string handling in lists changed? Attached is a simple program that populates a list and then writes the list out to the console. The list elements containing strings are coming up blank. I think this is causing some of my problems.
Bad Kornalius! Bad bad... Yeah it was me. Sorry about that. I will fix it and get a new version up in a little.
New version up.
- Fixed lists system. Was really broken. Yurk!
- Little fix in the PIDE
- Updated Visual Form Builder PPC.
- Update main.ppl to call Visual Form Builder.
- New empty() function to empty content of a variable including list elements.
You still da man, no matter what they say. Lists are all better now.
Hello All,
I'm not having a great deal of success here, but let's take it a single step at a time ....
I believe I have the latest install ... downloaded at 0100 15/09/2004 UTC. I uninstalled and deleted ALL ppc related directories on both ppc and pc and did the install.
I then run PIDE and load my existing project. I try a "compile" and get errors as if some of teh Windows API's are not defined - looks like ppc specific API calls.
If I copy my project files to teh PPC and run PPL and compile from theer it compiles wirhout error. It doesn't run correctly, but thats another issue. Let's solve one thing at a time ...
It almost appears that the PIDE is attempting to compile against the PC APIs.
In a previous post someone referred to selecting a "Target" in the PIDE. I can find no menu option/reference to "Target"
At the right end of the second row of tools (the row under the menu) there is a combo that has two options: "Target -> Intel PC" and "Target -> PocketPC". If you do not see this combo, you do not have the latest version of the PIDE.
Hi Kornalius,
I have just confirmed that my installed downloaded file pre0.8.zip from
http://ppl.arwen.com/Downloads/ is the same as the file at that site at 20040915 0225UTC.
pre0.8.zip is 2,611,819 bytes long. The archive contains three files:
PPLSetup.zip 14/09/2004 12:54 466.432 463.072
Setup.zip 13/09/2004 14:55 2,143,131 2,136,927
Readme.txt 13/09/2004 14:32 34,002 11,400
In the "Program Files\Pocket Programming Language" directory on my PC:
PIDE.EXE 448,512 09-14-04 4:09am
I have only a single line of toolbar icons : File, Edit, Search, Project, Run, Tools, Users, Windows, Help
Any clues ???
Kornalius,
Last post was from me ... forgot to login
Apparently you have a phantom PIDE install

Seriously, though, even if you didn't have the "Target" combo, there should be a whole row of icons that represent the various menu items. What operating system are you running? Can you take a screen shot of your top toolbar(s) and the top portion of the Project Manager sidebar and post it to the forum? Something really wierd is going on if you don't have that second toolbar.
Eric
Screen shot attached. Running Windows 98.
BTW: I ran the PPLSetup install to get the latest PPL to the ppc. As per your earlier post just letting Setup.exe do the install results in PPL.EXE dated 07/08/2004 on ppc.
Kornalius,
I hate to sound like a broken record and I'm surprised to see that no one else has brought this up but... VFB still seems to be broken in this latest build.
I execute it from main.ppl now and I get the same message:
ControlEdit.PPL not found at chr position 96.
Another 2 second fix for the next build would be to change the text on the Intel PC tab on the options page. It says "(on the Pocket PC)". Just take out the word "Pocket".
Another thing I just thought of, when you open the form builder and you have compiled, then the "View Form Source" menu item becomes enabled. I can select it leave it open, change the form. At this time the menu item is disabled, but the edit window is left open. It doesn't match the form now. It is not updated after a compile. I'm not sure what the right thing to do is here, but maybe the window should be closed when the menu item is disabled.
Thanks
Brad
Wow. I think I'll have to defer the toolbar question to kornalius at this point. If I had to wager a guess, though, I'd say it has something to do with Windows 98. Unfortunately, I just recently got rid of my last box that had Windows 98 on it. Sorry I can't be much help there. Have you always had only one toolbar?
For the toolbar problem, simple, you see the two little plus buttons before the File menu? These buttons allow to show or hide the project manager and the button's toolbar. Click on the first + button.
Well, that's cool. I never noticed that before.
Here are the ControlEdit.ppl and ControlEdit.frm files, I forgot to include them in the latest build.
Fixed the caption's. Stupid me, I work too fast sometimes.
Btw, the View Form Source option is not supposed to be updated with the new form changes. It simply is generated and you do whatever you want with it basicly. It is just an extra option and not an integral part of the PIDE. This file will always be rewritten by the FormGenerator when building your project.
Thanks Koprnalius,
That fix was so simple ... and I do feel so embarrassed .. thanks
I can now compile and run from teh PIDE. Now for my second problem - my code runs but doesn't work ... two issues:
one form which has some buttons and labels on it no longer shows the buttons and labels, just an edit box.
the other looks like a problem with structured lists. It may be the same issue the Eric has reported and it is just possible that my first problem is also related to this one
I'll do some more snooping and report anything worthwhile
Hi,
The problem with the structs will be resolved shortly. I will have a new version up in a few hours.
Kornalius,
OK on your work on the structures.
The problem with the form display does not appear related to the structures problem.
- Code:
LoadMapForm$ = NewForm("Load Map", "", &LoadMapFormProc;);
label1$ = NewControl(1001, "STATIC", NULL, "Maps",
0, LoadMapForm$,
8, 10, 35, 20);
cb1$ = NewControl(1002, "COMBOBOX", NULL, "",
CBS_DROPDOWNLIST | CBS_NOINTEGRALHEIGHT | CBS_HASSTRINGS | WS_VISIBLE | WS_VSCROLL,
LoadMapForm$,
50, 8, 180, 100);
btn1$ = NewControl(1003, "BUTTON", NULL, "ReFresh",
BS_PUSHBUTTON, LoadMapForm$,
10, 35, 70, 20);
btn2$ = NewControl(1004, "BUTTON", NULL, "Load",
BS_PUSHBUTTON, LoadMapForm$,
85, 35, 70, 20);
btn3$ = NewControl(1005, "BUTTON", NULL, "Cancel",
BS_PUSHBUTTON, LoadMapForm$,
160, 35, 70, 20);
This code has worked in the past. It now generates a form with a single combobox only
Are you running this code on the PC or still on your PPC?
Kornalius,
I am running the code on the ppc. I am using some API calls that are ppc specific.
Some good news: I solved my "first" problem - a missing file.
The "form with missing controls" still persists.
A couple of new issues:
1. I call DeleteObject fairly regularly throughout the code to delete bitmaps and pens when not required any longer. There are some points in the code that now (didn't before) consistently report "address misaligned". I always check for a "null" object before calling deleteObject.
2. There may be a significant "memory leak" problem but I have no details at this time other than I can see "free mmeory" being depleted. I suggest we leave this one until the other issues are resolved and I'll then try to track it down.
1. The DeleteObject() has been changed to DeleteWindowObject() now.
2. Ok, good idea. I am overloaded right now.

Merv,
Send me your code (or a piece of it) I want to see where the problem is. I will do some tests tomorrow.
Kornalius,
Some Good News .....
I have loaded the latest release. I have changed all occurrences of DeleteObject to DeleteWindowObject. It now compiles and runs OK.
The "form" problem was simply fixed also. I did not set WS_VISIBLE in the button and static controls. I presume you previously defaulted these. Anyway it makes sense the way it is now.
The Bad News .....
We definitely have a memory leak problem.
- Code:
func GetCSV(aString$,index$)
local(lst$);
List(lst$);
StrTolist(aString$,",",lst$);
index$--;
if ((index$ >= 0) & (index$ < count(lst$)))
goto (lst$,index$);
return (str(lst$));
else
return("");
end;
end;
if (GetCSV(S$,1) == "$GPRMC")
//put some user code in here
end;
The above code block leaks memory "heavily". We have had a similar problem in the past, but you had fixed it.
Otherwise everything else is looking good.
Good news.
I will fix the memory leak tomorrow. Thanks for providing a nice piece of code, it is so much better to test with it.

Ok, found it, it was the lists elements not being freed when list variables were freed. This is all fixed now.
Can't make PPl running on my desktop PC...
OS: Win98SE
processor: AMD Athlon XP1200+
PPL v.08 11.11.2004
Errors when running ppl.exe:
PPL runtime error
APP: main.ppl
Proc: (null)
Opcode: =
Char/Line: 0,0
(CREATEUI(0,0))
Acces violation at 0x405f7a
PPL runtime error
APP: main.ppl
Proc: (null)
Opcode: PUSHINT
Char/Line: 0,0
(MAIN)
Acces violation at 0x42c20b
and then "This program has performed an illegal operation...."
PPL caused an invalid page fault in
module PPL.EXE at 0167:0040d157.
Registers:
EAX=00e36200 CS=0167 EIP=0040d157 EFLGS=00010246
EBX=00000000 SS=016f ESP=006fed10 EBP=006ffc54
ECX=006ffc44 DS=016f ESI=00000000 FS=29df
EDX=0124927c ES=016f EDI=00e36248 GS=0000
Bytes at CS:EIP:
8b 46 1c 89 47 1c 8b 46 0c 85 c0 74 4b 8b 0d f4
Stack dump:
00000000 00e36248 0040d59a 00e36248 00425faa 00e36248 006ffcac 00f50b10 bffa19f5 00000007 00000000 00000005 00000000 00000000 00000000 00000000