Matrix to string

New to FreeBASIC? Post your questions here.
fxm
Moderator
Posts: 12110
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Matrix to string

Post by fxm »

@marpon
To avoid memory leak, don't forget to deallocate the dynamic memory before returning from the procedure.
For example, replace:

Code: Select all

    .....
    return * ps1
end function
with:

Code: Select all

    .....
    function = * ps1
    deallocate ps1
end function
Post Reply