help with a lazarus project (solved) lazarus / 21-General ---------------------------------------------------------------------- whatsup · 2022-11-19 22:29 hey all. the project located here https://github.com/derekjohnevans/Geep-Jeez seems to be abandoned. in the past it used to compiled ok. in some point with new lazarus versions, i get warning/error messages. I know nothing about lazarus. I wonder if someone can help fixing this ? btw: the talent programmer of this project was a user here.. thanks in advanced. ---------------------------------------------------------------------- whatsup · 2022-11-23 21:40 I did a test what's the problem. I get an error that only static methods and static variables can be referenced through an object type. I'm quite sure this is a new behave, because the same code used to compile in old lazarus versions. my question is, what can be done to fix this ? maybe an option to revert back to old behavior ? ---------------------------------------------------------------------- MarkMLl · 2022-11-23 22:00 Quote from: whatsup on November 23, 2022, 10:40:48 pmI know nothing about lazarus. ... I'm quite sure this is a new behave, because the same code used to compile in old lazarus versions. What makes you think this is new behaviour? What version of Lazarus etc. have you tried it with, on what platform? What version have you seen it working with? With respect to the original author (whose website now appears to redirect to porn), what reason do you have to believe it ever worked, or at least was abandoned in a working state? MarkMLl ---------------------------------------------------------------------- whatsup · 2022-11-23 22:49 It's not a believe. I did dome work on it, and build it successfuly some years ago. the site doesn't work anymore. the talent programmer is a member  of this forum. you can still find some activity on sourceforge. on other projects. any answer to the topic ? ---------------------------------------------------------------------- dbannon · 2022-11-23 23:40 Quote from: whatsup on November 23, 2022, 11:49:01 pmthe talent programmer is a member  of this forum. possibly "dje" ?  Maybe a pm might work ... Davo ---------------------------------------------------------------------- whatsup · 2022-11-24 00:59 i checked his activity, his last post was some years ago ---------------------------------------------------------------------- dje · 2022-11-24 03:38 Yep, that was one of my projects. The github code is out of date. The installer for v2.9 also contains the source code. https://sourceforge.net/projects/geep-jeez/files/ I believe I left the project is a fully working state and suitable for all my needs, but its been 7 years. I just downloaded the installer on my last Windows 7 machine, and it still runs. I'm sure with the right version of TDM-GCC installed, the system would work as it should. I do recall being able to compile all Jesus Script effects at that time, but I'm sure JS has evolved. There was some work done on a LADSPA interface (Linux Audio Developer's Simple Plugin) as well, which at the least achieved the generation of at least one working plugin for Audacity under Linux. But, since I didn't need it, no more work was done. I do recall issues with making sure a specific version of TDM-GCC was used. But, that could have been due to me using Windows XP at the time. Anyway, you are more that welcome to do as you please with the code. I wrote it for myself, so I could knock up VST's quickly. I'm not sure such a program is needed anymore. But, at the time I thought it was cool. I guess, these days I'd either stick with JS or LUA to prototype audio effects, then re-code in C++. But, its there if you so wish to play with it. Cheers. ---------------------------------------------------------------------- whatsup · 2022-11-24 11:27 Thank you very much for this reply. First let me say a big thank you For all the effects code you shared. I use them often. As i said in the post above, The problem is with the source code compilating. I get errors from freepascal About none static methods been used with object types. In the past this code was compiled with no problems. I think something in freepascal behave has changed. ---------------------------------------------------------------------- KodeZwerg · 2022-11-24 11:44 Quote from: whatsup on November 19, 2022, 11:29:44 pmi get warning/error messages. Quote from: whatsup on November 24, 2022, 12:27:00 pmI get errors from freepascal Why not show errors instead of saying that you get errors. When helpful people see what happen on your system a better response can be achieved. ---------------------------------------------------------------------- whatsup · 2022-11-24 12:54 https://forum.lazarus.freepascal.org/index.php/topic,61286.msg461101.h tml#msg461101 ---------------------------------------------------------------------- KodeZwerg · 2022-11-24 13:36 Quote from: whatsup on November 24, 2022, 01:54:54 pmhttps://forum.laz arus.freepascal.org/index.php/topic,61286.msg461101.html#msg461101 I do not see any code or any error message at that link. Best of luck ---------------------------------------------------------------------- MarkMLl · 2022-11-24 13:47 Quote from: KodeZwerg on November 24, 2022, 02:36:37 pmI do not see any code or any error message at that link. Best of luck  Seconded. For somebody who claims to have no Lazarus knowledge to start talking about having tried to build something, decline to give details on the Lazarus/FPC version he's using and the precise platform, and then refuse to give the precise error messages etc. that he's getting when asked to do so by somebody who does have significant experience... well, it's unusual and hardly conducive to people wanting to help him. MarkMLl ---------------------------------------------------------------------- whatsup · 2022-11-24 14:50 Quote from: MarkMLl on November 24, 2022, 02:47:05 pmQuote from: KodeZwerg on November 24, 2022, 02:36:37 pmI do not see any code or any error message at that link. Best of luck  Seconded. For somebody who claims to have no Lazarus knowledge to start talking about having tried to build something, decline to give details on the Lazarus/FPC version he's using and the precise platform, and then refuse to give the precise error messages etc. that he's getting when asked to do so by somebody who does have significant experience... well, it's unusual and hardly conducive to people wanting to help him. MarkMLl Do you see the words 'object type' ? The whole sentence is the error message. Quoteonly static methods and static variables can be referenced through an object type. I would be apperciate if someone will download the project https://github.com/derekjohnevans/Geep-Jeez Or from here as it is more uptodate https://sourceforge.net/projects/geep-jeez/files/ and try to build it. I'm with lazarus 64 bit from few days ago, On windws 11 64 bit Thanks in advanced ---------------------------------------------------------------------- jamie · 2022-11-24 18:39 Ok, So I bit... I downloaded it and corrected the problem. It compiles fine here on my laz 2.0.4/ 3.0.4FPC what is this program supposed to do? I don't get it although it does look nice. ---------------------------------------------------------------------- whatsup · 2022-11-24 21:09 Thank you very very much sir. I apperciate this. The app suppose to take an audio effect script And create a vst plugin that can be used In any app that can host it, Like cubase, fl studio, ... The script is written in eel fx script, Which developed by cockos The creator of reaper daw. How can i download your fixes ? ---------------------------------------------------------------------- jamie · 2022-11-24 22:46 ok, I just fixed it to compile in the newer version of Laz. seems somethings have changed with the TStringList..  There are still problems with cleanup, and I think there could be a problem with an error stating there is an Invalid type cast if you run the Check Methods debug but it does not point where to.  In anycase. I'll attach a project file. ---------------------------------------------------------------------- whatsup · 2022-11-25 09:09 Thank you so much. Will download it soon as i'll be on the computer ---------------------------------------------------------------------- Thaddy · 2022-11-25 10:32 Quote from: jamie on November 24, 2022, 11:46:52 pmseems somethings have changed with the TStringList.. Highly unlikely. Tstrings and therefor Tstringlist is a core class and any malfunction will be picked up very quickly. There are too many places where code depends on Tstrings. ---------------------------------------------------------------------- jamie · 2022-11-25 12:48 @Thaddy, Throwing stones at glass windows again? The "LoadFromFIle" is no longer a VIRTUAL method in the TStringList, so it can't be overridden like it was in the original code. You are consistent, no doubt about that. ---------------------------------------------------------------------- whatsup · 2022-11-25 12:51 QuoteHighly unlikely  interesting.  To check this,  get an old lazarus with freepascal distribution , the project (which hasn't change for 7 years), And check it your self. ---------------------------------------------------------------------- whatsup · 2022-11-25 13:23 QuoteThe "LoadFromFIle" is no longer a VIRTUAL method in the TStringList, so it can't be overridden like it was in the original code. So this function has to be renamed, in all places ? Thanks again for all your help. ---------------------------------------------------------------------- jamie · 2022-11-25 14:18 I just edited the code a bit and REINTRODUCED the method in the Object so the compiler won't complain about the old one being hidden and then in the actual implemented code I casted it back to the original TStringList instead of it doing the Inherited call.  seems to work for the time being. ---------------------------------------------------------------------- whatsup · 2022-11-27 06:06 Thanks for jamie reply, i managed to fix the project. I had to change some object declaration to class declaration, and to comment out the override property from LoadFromFile. (I had also to comment one line with an undeclared variable.) The project compile and seems to run correct. My conclusion from this, is that something in freepascal has changed. In the past object could be used with virtual methods. Now it seems that no. Again, Thank you jamie very much for your help. Without it i would be lost. ---------------------------------------------------------------------- jamie · 2022-11-27 11:09 Strange, I didn't have to do any of that, and I never found any undeclared variables, hmm.  You will also find that the settings INI file is not getting closed in the Option dialog.  or at least it's not getting Free'd.  The Close and Destroy event is not freeing the INI file object, which is where all that un-freed memory was coming from.  have fun. ---------------------------------------------------------------------- whatsup · 2022-11-27 11:18 Correct. I checked your code to see what you did With the undeclared var, i found that you downloaded the older project, which hasn't have it. Thank you for the information, will check. ---------------------------------------------------------------------- Thaddy · 2022-11-27 11:33 Quote from: jamie on November 25, 2022, 01:48:28 pm@Thaddy, Throwing stones at glass windows again? The "LoadFromFIle" is no longer a VIRTUAL method in the TStringList, so it can't be overridden like it was in the original code. You are consistent, no doubt about that. IF that is the case, then report  it on the bugtracker. LoadFromFile should be virtual/override, not Reintroduce. Probably an oversight. Then again, I suffered no issues. (using daily trunk/main) And who was the silly one that tinkered with that class? Anyway Loadfromfile calls loadfromstream, for now,  which is left alone. https://www.freepascal.org/docs- html/rtl/classes/tstrings.loadfromfile.html as proof. KYMS ---------------------------------------------------------------------- whatsup · 2022-11-27 14:32 I just found a thread which discusses the problem i had, showing that i actually did the correct fix - change object to class. https://forum.lazarus.freepascal.org/index.php?topic=56804.0 I'm sure this behave wasn't in the past, though.