View Single Post
  #5 (permalink)  
Old 12-01-2007, 08:42 AM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,332
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by alfcen View Post
Longer texts, say, in the order of 160 characters, cause a native exception error, though.
The limit seems to be 127 characters, a value probably not without significance as it is the maximum value of an unsigned byte. I just missed picking this up as my largest test string was 123 characters long.

I didn't mention it but Say actually returns the number of characters spoken - a hangover from debugging the interface - so you can confirm this limit yourself if you wished.

Because of limitations in the Compact Framework I had trouble marshalling .NET wide strings into C type narrow strings across the DLL call and it is a bit ugly on the native side so I guess that it is related to this. I don't think there is any deeper problem, just an interface problem between the two different sorts of DLL.

I'll look at it to see if it is an easy fix - otherwise you will just have to keep the text shorter than this limit.
Reply With Quote