[fpc-pascal] help with synapse mime routines...
wkitty42 at windstream.net
Thu Feb 17 15:41:41 CET 2011
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 that when you finally free m it is
> trying 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.
i will follow along with this and see what happens... thanks!!
> You have to watch out for objects that are owned by other objects or
> horrible things will happen!
so i'm finding out! thanks for the assist... and to think, i'm wading into this
thinking that it would be easier than what i was trying to develop to extract
the text/plain mime section :)
More information about the fpc-pascal