Research In Motion , which is based in Waterloo , Ontario , is exhausting its avenues for appeal in its defense against accusations that its software violates patents held by NTP , an intellectual property holding company based in Arlington , Va. .