Re: [fpc-pascal] HTTPRoute.pas and TRouteObject

2018-02-10 Thread Kevin Jesshope
Thanks Michael, I did consider putting everything in the HandleRequest but I prefer the virtual constructor. Regards Kevin Jesshope - In Touch Computer Support Supporting Aberfoyle Hub R-7 and Happy Valley Primary Schools On Sat, Feb 10, 2018 at 6:06 PM, Michael Van Canneyt <m

[fpc-pascal] HTTPRoute.pas and TRouteObject

2018-02-09 Thread Kevin Jesshope
Hi, Working on a standalone web project using the new routing. I have a class descended from TRouteObject. My problem is that the constructor cannot be marked override so it is not called when the class is created by HTTPRouter. Adding an empty virtual TRouteObject.create resolves this. Is

Re: [fpc-pascal] TStringList - Strange quotation mark handling

2017-08-16 Thread Kevin Jesshope
Setting the quotechar to something impossible (linefeed, #0 etc) stops the quote processing. SL2.QuoteChar:=#10; results in 0 * 84392 1 * asfds 2 * hytr 3 * 43421454 4 * "O" fdsfds 5 * 654645645 "O" fdsfsd 6 * hgfgfedw 7 * fg 8 * 321.544 9 * 89 10 * 0 Regards Kevin

Re: [fpc-pascal] help with synapse mime routines...

2011-02-17 Thread Kevin Jesshope
to free all the objects (mime parts) that it owns including the one you already freed at line 66. If you declare an m2 and use it at line 49 and 50 instead of the m1 all will be well. You have to watch out for objects that are owned by other objects or horrible things will happen! Regards Kevin

Re: [fpc-pascal] help with synapse mime routines...

2011-02-17 Thread Kevin Jesshope
freed at the end of the loop and you attempt to use that mimpart to set the hook again but as it has already been freed you get the exception. I think I have that right. I am working from memory now as I do not have the code before me. Regards Kevin Jesshope - In Touch Computer Support can

Re: [fpc-pascal] help with synapse mime routines...

2011-02-17 Thread Kevin Jesshope
Good luck with the other OSs. At this time I am only doing Win32 but I am sure there are others here who can help if you ask. Regards Kevin Jesshope - In Touch Computer Support on my OS/2 box, i've tried targets of OS2 and OS2 with EMX but both have failed all kinds of ways... i suspect

Re: [fpc-pascal] help with synapse mime routines...

2011-02-16 Thread Kevin Jesshope
the GetSubPart function. You have lost the reference you had to the original TMimePart created at line 44. Declare and use say m2 to fix this one. Regards Kevin Jesshope - In Touch Computer Support can anyone assist with the reason for the exception?? i'm using the last release code of synapse