PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

New version out now!

A new version of PPL pre-beta release 0.8 as been released today.

Nothing major (mainly optimization and bug fixes) but it's a good progress towards the official 0.8 beta (in March).

Btw, I am feeling a lot better now and I am back at least at 80% into PPL's development. 8)
Some strange things about this release:
I have a few classes implementations in my code - and everything is ok, however when I add ANY "if" statement in ANY class ANY function, PPL shows compile error: (main.ppl) PPL runtime error (__Startcase) access violation, and then
(test.ppl - my program)
An END statement is missing at 'CASE' (84,3),
No main entry point defined

When i delete this "if" from class function implementation - everything OK.
I dont know whether it can be my bug or PPL one, but It seems to me that this bug is not mine.
Show me a piece of the code in question. I will do some testing.
Kornalius
Looks like everything becomes clear to me - let me explain the bug (as I see it):

1.) This bug not only in the latest release but in previous too.

2.) Well, I have the main file - game.ppl and a lot of includes in the header of this file (so during compile process we get a big file).
Also I have mainProc procedure to init GAPI form. So if I place mainProc after all includes the adress of &gameProc; is misaligned maybe because of some overflow of funcs addresses (the number of funcs and code above mainProc is rather big) otherwise (if to place before includes) everything works fine.

3.)In my previous post I probably came close to the critical amount of code before mainProc(or any other proc whose address we want to get) => adding some more code ("if" and so on) caused a compile fault and address misaligned error.

4.)I can't post a "piece" of code cause only the whole program is suitable for testing. I suppose you should simply write a big code(any) before any proc and try to take this proc address to test.


Hope everything is clear,
Dragnir
Hi Kornalius,
I've made a test example
here it is

P.S. As you can see, it just a lot of class definitions that are completely the same, except their names.
Attachments:
test1.ppl (17 KB)
Thanks that will help a lot for testing. I will get back to you tomorrow on the progress I've made.
Ok, I found the problem. PPL had a limitation of 128 procedures per application. I raised this limit to 4096. I also took the time to raised some other limits while I was at it. :)
Btw,
nfunc doesn't works - just test example in the help for nfunc.

P.S. it was an unpleasant limitation
Thanks, I just fixed it. This bug was introduced in the last version because of radical changes I had to do in the proc & func calling to extend the Object-Oriented functionality.