You cannot index an IntPtr, you have two options:
Option 1:
Cast the IntPtr using ToPointer() to your desired pointer type. Then you will be able to index it. Note that this requires using...
We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020
Type: Posts; User: Birdboat; Keyword(s):
You cannot index an IntPtr, you have two options:
Option 1:
Cast the IntPtr using ToPointer() to your desired pointer type. Then you will be able to index it. Note that this requires using...
Makes sense, thanks.
I'm currently making a C# wrapper for teamspeak plugins. What I'm wondering, is it okay if a plugin uses another plugin's freeMemory to release resources?
No, this is the only way
Can you run the plugin while debugging it and see if channel[i] or a is null? It's possible channel[i] is null and a is perfectly fine.
Ok, so getChannelName and getClientName are probably the issue, mainly this line:
String^ a = String::Copy(Marshal::PtrToStringAnsi((IntPtr)(char*)tmp));
There's nothing wrong with the pointer,...
Does it not say the exact line of where it crashes?
I suggest attaching to the process to make debugging much easier.
Right now, all the API functions are going to log the error. But if need be I can change it in the future.
I've made a class called TSReturnValue, it's just a mutable Tuple:
public class...
I was going to because the .NET wrapper is a good base to go off of, but I understand the concern. I think that errors should be handled in the code, so that when a exception was thrown, you knew you...
I've decided to go with throwing an error, mainly because the .NET wrapper uses this method as well.
Hello everyone, I'm in the works of creating a C# plugin base for people to use. Right now I'm in the process of wrapping all the native functions. I'd like to get some input from you all. Would you...
-Yes
-Yes
-Me, I'm busy however, but you could still ask me questions.
Go to the configuration manager and create a new build group called x64 (instead of Any CPU), this worked for me and I use Visual Studio 2015
Yes, it is, and as far as I know there is none available. However, I would be more than happy to make one for you. PM me if you'd like it. OR if you'd like to make it yourself you should use the...
Thanks for the responses(and sorry for being late) they were both great and they both helped! :)
Hi, I'm currently working with creating TeamSpeak3 Plugins, and I found a loop in the example that troubled me:
char* s;
char msg[1024];
anyID myID;
uint64*...