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

2011-02-21 Thread waldo kitty
On 2/19/2011 21:44, Tomas Hajny wrote: Alright. It's just a hack, but probably sufficient for your current needs. ;-) The attached files "fix" Synapse (the released version) for the OS/2 target. There are limitations related to character set conversions and time handling (timezones and daylight s

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

2011-02-19 Thread Tomas Hajny
On 19 Feb 11, at 18:34, waldo kitty wrote: > On 2/19/2011 15:27, Tomas Hajny wrote: > > On 19 Feb 11, at 14:53, waldo kitty wrote: > >> i was also incorrect... on the OS/2 box, in Mode: DEBUG with Target: OS/2, > >> it is giving the following... > >> > >> Fatal: Can't find unit UnixUtil used by syn

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

2011-02-19 Thread waldo kitty
On 2/19/2011 15:27, Tomas Hajny wrote: On 19 Feb 11, at 14:53, waldo kitty wrote: i was also incorrect... on the OS/2 box, in Mode: DEBUG with Target: OS/2, it is giving the following... Fatal: Can't find unit UnixUtil used by synautil i'm using synautil for the space trimming functions and th

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

2011-02-19 Thread Tomas Hajny
On 19 Feb 11, at 14:53, waldo kitty wrote: > On 2/19/2011 08:45, Tomas Hajny wrote: > > On Sat, February 19, 2011 06:36, waldo kitty wrote: > >> > >> Fatal: Can't find unit dynlibs used by synafpc > > > > Yes - unit dynlibs (loading of DLLs on demand) is not supported under > > GO32v2 for obvious r

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

2011-02-19 Thread waldo kitty
On 2/19/2011 08:45, Tomas Hajny wrote: On Sat, February 19, 2011 06:36, waldo kitty wrote: Fatal: Can't find unit dynlibs used by synafpc Yes - unit dynlibs (loading of DLLs on demand) is not supported under GO32v2 for obvious reasons... yep! i was also incorrect... on the OS/2 box, in Mode

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

2011-02-19 Thread waldo kitty
On 2/19/2011 05:30, Marco van de Voort wrote: In our previous episode, waldo kitty said: Fatal: Can't find unit dynlibs used by synafpc Odd. Dos doesn't support a common dll/shared library format (though some toolchains do on their own, right... the closest would be the old OVR/OVL (overlay

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

2011-02-19 Thread Tomas Hajny
On Sat, February 19, 2011 06:36, waldo kitty wrote: > On 2/18/2011 04:47, Tomas Hajny wrote: >> On Fri, February 18, 2011 02:24, waldo kitty wrote: . . > ok, as i wrote before, i would attempt to provide more information... > here's > what i'm getting with the attached source code when attempting

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

2011-02-19 Thread Tomas Hajny
On Sat, February 19, 2011 02:41, waldo kitty wrote: > On 2/18/2011 04:47, Tomas Hajny wrote: >> On Fri, February 18, 2011 02:24, waldo kitty wrote: >> First of all, you should check whether >> the missing units are supposed to be platform independent or not. > > yes, part of what i'm running into i

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

2011-02-19 Thread Marco van de Voort
In our previous episode, waldo kitty said: > > Fatal: Can't find unit dynlibs used by synafpc Odd. Dos doesn't support a common dll/shared library format (though some toolchains do on their own, FPC doesn't atm). But OS/2 does have dlls, and afaik has unit dynlibs, so that is a bit strange. __

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

2011-02-18 Thread waldo kitty
On 2/18/2011 04:47, Tomas Hajny wrote: On Fri, February 18, 2011 02:24, waldo kitty wrote: I'm willing to have a look at your current version if you can upload it somewhere. Synapse has probably not been ported to the OS/2 target and it possibly uses various platform specific APIs but it should b

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

2011-02-18 Thread waldo kitty
On 2/18/2011 04:47, Tomas Hajny wrote: On Fri, February 18, 2011 02:24, waldo kitty wrote: 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 that it is simply to do with the paths to the units and include files... i have been able to g

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

2011-02-18 Thread Tomas Hajny
On Fri, February 18, 2011 02:24, waldo kitty wrote: > On 2/17/2011 18:16, Kevin Jesshope wrote: . . > my next problem is to get it compiling on my OS/2 box with FPC 2.4.2 and > so far, > that is not working... complaints of missing units and include files that > i just > don't know where to tell

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 that

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

2011-02-17 Thread waldo kitty
On 2/17/2011 18:16, Kevin Jesshope wrote: [TRIM] I think I have that right. I am working from memory now as I do not have the code before me. i wanted to thank you again.. you gave me some hints that enabled me to propel myself much further than i've gone in the last week of floundering... in

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

2011-02-17 Thread Kevin Jesshope
Waldo, You are assigning an OnWalkPart hook procedure to the m1 mimepart you have created, not the mimepart you actually end up freeing. It does not look like the tc.ph procedure is called from the m1 mimeparts (which is what I would expect). If you do need to use the tc.ph on the individual m1 p

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

2011-02-17 Thread waldo kitty
On 2/17/2011 08:32, Kevin Jesshope wrote: Hi Waldo, I have now got the units so I can build and test your code properly. The reason you are getting the exception is that when you free m1 at line 66 you are not freeing the m1 you created at line 44, but the subpart belonging to m. This means tha

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

2011-02-17 Thread waldo kitty
On 2/16/2011 23:39, Kevin Jesshope wrote: Hi Waldo, I don't have the mimepart or synaser units available at the moment so without actually compiling the code I am not certain the following observations are the cause of your trouble. They are however somewhere to start. 1 In line 63 you are chec

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

2011-02-17 Thread Kevin Jesshope
Hi Waldo, I have now got the units so I can build and test your code properly. The reason you are getting the exception is that when you free m1 at line 66 you are not freeing the m1 you created at line 44, but the subpart belonging to m. This means that when you finally free m it is trying to fr

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

2011-02-16 Thread Kevin Jesshope
Hi Waldo, I don't have the mimepart or synaser units available at the moment so without actually compiling the code I am not certain the following observations are the cause of your trouble. They are however somewhere to start. 1 In line 63 you are checking to see if m1 is nil to see if the objec

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

2011-02-16 Thread waldo kitty
so i take it, from the dearth of replies, that no one on this list uses synapse or its mime library? i've reduced/stripped the code to produce the attached .pas file... while i now do not get a line number any more (which i also do not understand), at least i can more easily see now that the

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

2011-02-16 Thread waldo kitty
i'm trying to work with the synapse mime library but am running into a bit of a problem... i'm an old procedural type coder from the TP3 to TP6 days... it has been a long time since i've done much of anything with objects and i've forgotten a lot more than i remember... i've not done any delph