After having worked on it more, I now have something that works in dry runs occasionally but I always get a 'Killed' and exit code 137. I have no idea what it is but its just as anoying as the bug above that may now have been fixed...
After having worked on it more, I now have something that works in dry runs occasionally but I always get a 'Killed' and exit code 137. I have no idea what it is but its just as anoying as the bug above that may now have been fixed...
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
The function itself and variables seem ok to me. But what caught my eye is that you use oApplication = Object. I have no idea whatsoever how the deprecated objects work or if they're still supported. You didn't include the essential for the problem (memory leak) which is use of that oApplication.
Last edited by User137; 20-08-2011 at 05:55 PM.
What was the depreciated object replaced by? I was not aware of it being depreciated...
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
More commonly records and classes
(They're not depreciated in Free Pascal, only in Delphi. Free Pascal aims to be compatible with many different Pascal Dialects so you won't be seeing anything disappear like in the proprietary Delphi)
Classes are the more common in the OOP world however Objects can be used in an almost identical manner. They are more like records in that you don't have to have a mandatory constructor or destructor and don't have to call a constructor in order to use the Object. In fact, think of them as Records that support inheritence (certain dialects allow records to have functions and procedures too)
This is because an Objects memory is allocated upon it's decleration in the same way variables are. A Class needs to be created on the heap seperatley. This means that objects are lost when they go out of scope but classes are persistant, requiring that you implicitly call a destructor of a class instance if you want to free up the memory.
Classes are better in this way because it allows a lot more flexiblity in your code, A class does not need any form of Global decleration in order to be used across your program.
Because Objects are not commonly used (and are more for supporting old code) perhaps there are bugs (You should submit your problem to the FreePascal bug tracker!)
Start using classes and if you're still having the same problem then you need to eliminate more factors.
When the moon hits your eye like a big pizza pie - that's an extinction level impact event.
Ah, thanks for clearing that up. I tracked the evil bug down to where my main code interfaced with memory management code (reverse flow in a way) duh... And as for the 137, my OS was not hapyp I was using up so much memory soo fast so it kept killing it (running it as sudo fixed it).
Now well underway and hooping for a strong finish (and hopefully an early one at that)
Note to self: Prometheus is niec to work in when it works, focus of next few weeks will most definetly be on reliability.
Thanks for all the help and sorry to be so ratty, stress, no sleep and time frame.
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
Bookmarks