User Tag List

Results 1 to 5 of 5

Thread: TO CLICKTEAM: Problem with rdPtr and ...

  1. #1
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Location
    Stockholm, Sweden
    Posts
    1,529
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    TO CLICKTEAM: Problem with rdPtr and ...

    Hello Clickteam (and may other who can help me)
    The hole subject is:
    TO CLICKTEAM: Problem with rdPtr and tagRDATA structure .

    I have a problem, im using a lib called ID3Lib (who can read mp3 id3 data) , but there seems to be a problem if i add my variable "ID3_Tag myTag" to tagRDATA structure; it crashing when i try to use a function: rdPtr->myTag.Link("filename.mp3") , that gets called when i do a "action" function.
    But the thing is that it works perfectly without having the variable defined in tagRDATA structure (works with having it in top of Main.cpp).

    Many Thanks!!

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: TO CLICKTEAM: Problem with rdPtr and ...

    If you want to access the object elsewhere, you could always try putting extern ID3_Tag myTag; in common.h, and then keep the ID3_Tag myTag; at the top of main.cpp.

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TO CLICKTEAM: Problem with rdPtr and ...

    That is because the object isn't created in tagRDATA structure. Only its memory is created. So you need to have a pointer to the object in the tagRDATA structure and create it when when the frame starts and destroy it at the end of the frame..

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: TO CLICKTEAM: Problem with rdPtr and ...

    And what z33z said. rdPtr is not a C++ struct so the object's constructor/destructor will not be called.

  5. #5
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Location
    Stockholm, Sweden
    Posts
    1,529
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TO CLICKTEAM: Problem with rdPtr and ...

    Ah, okay... well anyway, setting up in common.h with extern seems to work good; i'll report later....

    Thanks!

Similar Threads

  1. Calling rdPtr's constructor
    By LB in forum Extension Development
    Replies: 3
    Last Post: 29th June 2011, 11:02 PM
  2. Clickteam Movement controller problem
    By ToxicKiwiGames in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 15th September 2009, 09:14 PM
  3. What does "rdPtr->rRd->GenerateEvent(1)" do?
    By Iwantmyrpg in forum Extension Development
    Replies: 3
    Last Post: 3rd January 2009, 11:25 PM
  4. [Help] Get rdPtr from WindowProc function
    By Sphax in forum Extension Developers Lobby
    Replies: 11
    Last Post: 18th July 2007, 07:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •