Technology Questions

Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Tablet PC Developers

Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 07-06-2007, 07:10 AM
Ravi
Newsgroup Contributor
 
Posts: n/a
Stroke with no packets

I have serialized ink analysis data that's raising an exception when I
try to load it. It comes down to the ink data containing a stroke that
doesn't have any packets. I can work around the problem by passing
true for doNotAutoAddStrokes to the InkAnalyzer.

But I'm curious how I ended up with an empty stroke. Is it normal
behavior to have a stroke with zero packets? How might it get created?

Thanks,
Ravi.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 07-06-2007, 07:10 AM
  #2 (permalink)  
Old 07-06-2007, 09:30 AM
Josh Einstein
Newsgroup Contributor
 
Posts: n/a
Re: Stroke with no packets

Out of curiosity, how did you discover that you had a stroke with no
packets? I've tried actually creating a zero packet stroke before in a
RealTimeStylus plugin to compensate for the inability to "cancel" a packet
but I remember having lots of trouble with it.

--
Josh Einstein (Tablet PC MVP)
Einstein Technologies
Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com


"Ravi" <ravi.usenet******.com> wrote in message
news:1183730758.166627.293630@n60g2000hse.googlegr oups.com...
>I have serialized ink analysis data that's raising an exception when I
> try to load it. It comes down to the ink data containing a stroke that
> doesn't have any packets. I can work around the problem by passing
> true for doNotAutoAddStrokes to the InkAnalyzer.
>
> But I'm curious how I ended up with an empty stroke. Is it normal
> behavior to have a stroke with zero packets? How might it get created?
>
> Thanks,
> Ravi.
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 07-06-2007, 11:11 AM
Ravi
Newsgroup Contributor
 
Posts: n/a
Re: Stroke with no packets

On Jul 6, 12:23 pm, "Josh Einstein" <j...@einsteintech.net> wrote:
> Out of curiosity, how did you discover that you had a stroke with no
> packets? I've tried actually creating a zero packet stroke before in a
> RealTimeStylus plugin to compensate for the inability to "cancel" a packet
> but I remember having lots of trouble with it.


It got discovered when my deserialization code choked on it. The
strack trace showed an ArgumentException thrown from GetPacketData. I
loaded the data into an Ink object, called GetPacketData() on each
stroke to identify the problem one, and dumped properties for it.

Looking back at the ink data, I notice that all the other strokes have
exactly one packet each. That's not necessarily incorrect since the
user might have been trying to tap on a small button but missing
slightly. A little odd though.

This app still uses InkCollector for collecting strokes.

Thanks,
Ravi.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 07-08-2007, 11:32 PM
Josh Einstein
Newsgroup Contributor
 
Posts: n/a
Re: Stroke with no packets

That is strange. I would imagine that any stroke, even a tap would need at
least a packet representing pen down and pen up. I honestly don't know much
about the internal structure of the Ink object or how InkAnalyzer persists
it.

In the meantime if Ink object loads it ok maybe you can just round trip it
through the Ink object until you figure out what the problem is?

--
Josh Einstein (Tablet PC MVP)
Einstein Technologies
Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com


"Ravi" <ravi.usenet******.com> wrote in message
news:1183744950.087464.24380@g13g2000hsf.googlegro ups.com...
> On Jul 6, 12:23 pm, "Josh Einstein" <j...@einsteintech.net> wrote:
>> Out of curiosity, how did you discover that you had a stroke with no
>> packets? I've tried actually creating a zero packet stroke before in a
>> RealTimeStylus plugin to compensate for the inability to "cancel" a
>> packet
>> but I remember having lots of trouble with it.

>
> It got discovered when my deserialization code choked on it. The
> strack trace showed an ArgumentException thrown from GetPacketData. I
> loaded the data into an Ink object, called GetPacketData() on each
> stroke to identify the problem one, and dumped properties for it.
>
> Looking back at the ink data, I notice that all the other strokes have
> exactly one packet each. That's not necessarily incorrect since the
> user might have been trying to tap on a small button but missing
> slightly. A little odd though.
>
> This app still uses InkCollector for collecting strokes.
>
> Thanks,
> Ravi.
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Erasing stroke segments Josef Meile Tablet PC Developers 3 06-28-2007 08:40 AM
How to assign a character to a key stroke Pete L Windows XP 5 01-24-2007 03:30 PM
Keyboard stroke ctrl+space bw Windows XP 0 01-04-2007 02:08 AM
Unable to receive packets on 801.11b w/WEP after SP2 GKF Windows XP Tablet PC Newsgroup 26 02-16-2005 09:17 AM
"shift-R click" with a pen stroke (ie without a keyboard) =?Utf-8?B?Q3JhaWc=?= Windows XP Tablet PC Newsgroup 4 05-26-2004 10:16 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 03:22 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0