Forum

Search:

Type: Posts; User: Birdboat; Keyword(s):

Search: Search took 0.01 seconds.

  1. [Resolved] You cannot index an IntPtr, you have two options:...

    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...
  2. Replies
    2
    Views
    615

    Makes sense, thanks.

    Makes sense, thanks.
  3. Replies
    2
    Views
    615

    freeMemory question

    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?
  4. No, this is the only way

    No, this is the only way
  5. Can you run the plugin while debugging it and see...

    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.
  6. Ok, so getChannelName and getClientName are...

    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,...
  7. Does it not say the exact line of where it...

    Does it not say the exact line of where it crashes?
  8. I suggest attaching to the process to make...

    I suggest attaching to the process to make debugging much easier.
  9. Replies
    12
    Views
    2,280

    Right now, all the API functions are going to log...

    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...
  10. Replies
    12
    Views
    2,280

    I was going to because the .NET wrapper is a good...

    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...
  11. Replies
    12
    Views
    2,280

    I've decided to go with throwing an error, mainly...

    I've decided to go with throwing an error, mainly because the .NET wrapper uses this method as well.
  12. Replies
    12
    Views
    2,280

    C# Plugin Survey

    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...
  13. -Yes (http://i.imgur.com/PsLILbt.png) -Yes...

    -Yes
    -Yes
    -Me, I'm busy however, but you could still ask me questions.
  14. Go to the configuration manager and create a new...

    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
  15. Replies
    1
    Views
    821

    Yes, it is, and as far as I know there is none...

    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...
  16. Replies
    3
    Views
    1,214

    Thanks for the responses(and sorry for being...

    Thanks for the responses(and sorry for being late) they were both great and they both helped! :)
  17. Replies
    3
    Views
    1,214

    C++ Pointer Iteration Help

    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*...
Results 1 to 17 of 17