Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Odd problem wiith Vista

1 view
Skip to first unread message

M-News

unread,
Nov 10, 2009, 11:32:05 PM11/10/09
to
Hi, the behavior of the Vista engine is different from the XP engine
when it loads a grammar I am working on. After testing, I isolated the
exact problem with the grammar, but I am not sure why one engine reacts
differently than the other.

Below are two modified extracts from my grammar highlighting the
difference that seems to cause the problem.

The extract below runs properly in both XP and Vista"

<?xml version="1.0" encoding="utf-8"?>
<Grammar LANGID="409">
<RULE NAME="x1" TOPLEVEL="ACTIVE">
<L>
<P>a voice command</P>
</L>
</RULE>
<RULE NAME="x2" TOPLEVEL="ACTIVE">
<L>
<P>another voice command</P>
</L>
</RULE>
</Grammar>

The following extract differs in that the second RULE ("x2")'s "L" child
tag does not contain any P tags. This runs properly in XP but in Vista
it generates an error.

<?xml version="1.0" encoding="utf-8"?>
<Grammar LANGID="409">
<RULE NAME="x1" TOPLEVEL="ACTIVE">
<L>
<P>a voice command</P>
</L>
</RULE>
<RULE NAME="x2" TOPLEVEL="ACTIVE">
<L></L>
</RULE>
</Grammar>

The error it generates is: : -2147201021 (80045003) Method
CmdLoadFromFile of object ISpeechRecoGrammar failed


I am looking for an explanation of the problem and if possible guidance
on how to resolve or work around the issue. I would prefer not having
two separate grammars, one for XP and one for Vista.

Thanks in advance,
Miguel

0 new messages