Results 1 to 4 of 4

Thread: Types Q! Error given...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Question Types Q! Error given...

    Hi, Guys.

    I have a module with a type called tPlayer.
    In this type I have pMagic(1 To 5) As tMagic.
    tMagic is another type in another module. In this module I have a Sub: Sub Magic(iMagic As Integer, iPlayer As tPlayer)

    When I run my game, I get the error: 'Circular dependencies between modules'

    What is that mean? Please Help!

    Thank you,
    Arie.

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    Baltimore, MD
    Posts
    230
    A circular dependency means you have objects referring to each other. What line does the code pop up on?

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Post the code for your UDT

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Just a note, you can't have a UDT that specifies itself in its data. Instead, use a have type, and then have its 'child' as a variable. You can then set that variable to be another 'tMagic'.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

Posting Permissions

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



Click Here to Expand Forum to Full Width