Results 1 to 6 of 6

Thread: Divison by zero while setting varb

  1. #1

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    VB gives this error:
    _______________________________
    |__________________________ _ 0X|
    | Run-time error: 11 - division by zero |
    | |
    | [continue] [END] [DEBUG] [HELP] |
    |______________________________|

    (sorry, felt like being artistic)

    When I set this:

    With PT(PTT)
    X=.X <---
    Y=.Y
    Z=.Z
    End With

    The funny thing is, it only gives this error when rendering the second particle (opengl), when it goes through the first particle everything works. I have tried EVERYTHING! All of the particles are the same as the result of debugging. Can you guys help?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    nice art Sas!

    again, i don't have any OGL experience so i can't say, are any of those variables properties, you either assign X on a property let, .X evaluate a property get, in that case do you have the source to this part or is it part of OGL or any other component you don't have access to?
    Are any of them evaluated 0?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Guest
    something is seriously wrong if you are getting a divide by 0 error without doing some division.

    Z.

  4. #4

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Yeah, neither of them are 0, and I dont think it does any division.....

    What bothers me, is VB is probably "masking" the error. It's probably to do with something I gave an OGL call, and then it's in line #4 or something of that code, so it goes 4 codes down in MY prog, so it says that that is the error....

    The strangest thing is, (like I said at the top), is that it works the first time around, but not the second...
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5
    Guest
    My suggestion is to "Debug by superstision (sp?)".
    Comment some code out, run, see if it works, if not,
    uncomment, comment something else, until you find
    something that works. Check every scrap of info you
    can find on whatever doesnt work, and study it for days
    on end. It'll come to you eventually (I know =).

    [edit]
    More of VB's "whacked math" again =(

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    rightclick all values, and go for definition, and tell me where you get
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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