Results 1 to 12 of 12

Thread: Error Problem

  1. #1

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Error Problem

    I created a program on my pc and then made a setup of it using package and deployment wizard along with all dependencies. I isntalled that program in the college computer using this setup. Now whenever I run this program in college I get Error#6 overflow which I was not getting on my home PC. How do I solve the problem and how can I find where the problem lies? Is it the problem with my variables?

    Please help. Its urgent. I have to display my software in exam.

    Kinjal

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    probl a function returning values bigger than expected.

    I had this behavior in a program once, It worked fine on some machines and not on others. It was all caused by a function returning values greater than my vars could take.

    Try put in msgboxes in u'r code so that u know where it stops.
    -= a peet post =-

  3. #3

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535
    Its going to be a real painfull job. But I don't understand why it is not happening on my system?
    Any way thanks for your suggestion

    Kinjal

  4. #4
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Originally posted by kinjalgp
    Its going to be a real painfull job. But I don't understand why it is not happening on my system?
    Any way thanks for your suggestion

    Kinjal
    I think when I had that problem, it was a handle of some sort returned from an API, that I tried assigning to an Integer var.

    It worked just fine on my computer, but on some other computers, the handle was bigger than an integer could hold.

    This might be the problem in u'r case.
    -= a peet post =-

  5. #5
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    Could be something subtle. (Like a regional setting not the same on the other PC), so something you are calculating is bigger than you expect. Are you reading disk free-space, or something like that?

    That Message Boxes trick is a good way to go, but it's a pain if you have to keep changing the message boxes and recompiling.

    One little tip - if all you are changing is message boxes, then you can probably get away with just copying the EXE, not a complete reinstall every time. May save you a bit of time.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  6. #6
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    VB Code:
    1. Dim i As Integer
    2.     i = 90000

    error 6 overflow
    -= a peet post =-

  7. #7
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Peet, I've even had it happen with no Api calls... I cant remember what exactly caused the problem now (was a while ago) but i know that when writing on a sooooopa compoota and then returning to my vic20 style machine I would get logical errors that should have affected both equally. Maybe some pootas know the drill and say "duffer developer.. dont worry i'll fix it for you"
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  8. #8
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    pootas ??
    -= a peet post =-

  9. #9
    Member
    Join Date
    Sep 2001
    Location
    USA
    Posts
    33
    I think he meant compootas not the latino version

  10. #10
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Originally posted by shabbs
    I think he meant compootas not the latino version
    The weird thing is that the original sentence still makes sense with your version of the word!!!
    "duffer developer.. dont worry i'll fix it for you"
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  11. #11
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    hmmm... he got me worried there shabbs...
    -= a peet post =-

  12. #12
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Originally posted by beachbum

    The weird thing is that the original sentence still makes sense with your version of the word!!!
    "duffer developer.. dont worry i'll fix it for you"
    -= a peet post =-

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