>So it's agreed that either could be used.
No, that's not what I said. You are putting words in my mouth.
The pronoun in the objective case (e.g. me) and the possessive (e.g. my) are never interchangeable.
The possessive in those structures is always O.K.; the pronoun seldom is.
>However, one of the
>teachers that I am in contact wrote to me that 'trying' in that
>context functions as a gerund
Not only does it function as a gerund, but it is a gerund.
>(after the preposition 'to')
The proposition "to" might as well justify the objective case of "me"; your teacher's point is moot (read: of little or no practical value) unless you misunderstood him.
and
>therefore the possessive adjective would be the better grammatical
>choice.
The only acceptable choice in this examp[le.