Warning using a custom DLL as Automation

marchinomarchino Member Posts: 25
Hi everybody,
I created a library (using visual studio 2008 with COM properties and snk file); it has got a function that receive a stream from sharepoint and write it in a file.
it works well in navision but when i'm trying to declare it in variable form, it gives to me

"The length of the text string exceeds the size of the string buffer"

it's strange, as to see it I've to choose another automation in automation's list when i'm going to create it.

Even if it works in the program (it writes the file) I wouldn't have any problem in the future.

Anybody has any idea?
Thanks in advanced,

Marco
_marchino_

Comments

  • SPost29SPost29 Member Posts: 148
    I used to get this error when I would mark a automation variable with events
    One of the method call names was too long to fit in Nav's max string Length for a name ( which I think is 30)
    Steve
  • marchinomarchino Member Posts: 25
    I recreated my VS Project's class library from a blank solution, without using an Interface + putting ComVisible(false) in private method (this shouldnt need it, as the private aren't extracted in COM) and it seems it's working.

    thanks for the support
    _marchino_
Sign In or Register to comment.