Results 1 to 7 of 7

Thread: Hard to find bug

  1. #1

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860

    Hard to find bug

    Well, I've been working on a client-server type program for my own use. (It can send files, and has the functionality for person A to request a file from person B, assuming they've allowed it, and person A knows the path)

    Anyways, I was testing it, and people can send files to me (I can send them to myself as well) but whenever I send them files their program crashes (note that I am using the exact same program, but they don't have vb on their computers).

    What are the possible causes for this?? They seem to get errors peppered throughout he program that I CAN'T reproduce!
    Don't pay attention to this signature, it's contradictory.

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Number the lines and use Erl to return the errored line.

  3. #3

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    I know which line it errors on, the one where it tries to write the file data to a file (after being totally received) because the filename is "" or something along those lines. But there's no reason for their app.path & "\received" & filename to be any different than mine!
    Don't pay attention to this signature, it's contradictory.

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Hard to find bug

    Originally posted by alkatran
    Well, I've been working on a client-server type program for my own use. (It can send files, and has the functionality for person A to request a file from person B, assuming they've allowed it, and person A knows the path)

    Anyways, I was testing it, and people can send files to me (I can send them to myself as well) but whenever I send them files their program crashes (note that I am using the exact same program, but they don't have vb on their computers).

    What are the possible causes for this?? They seem to get errors peppered throughout he program that I CAN'T reproduce!
    How did they get their copy of your program. Was it installed?

  5. #5

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    No, it wasn't installed... I prefer to stick with just sending them the program (in exe format, they trust me enough for that) rather than forcing them to install and remove software.

    I always assumed installation only added the program and required files to the computer (required file errors pop up when the program is started, and I send those over, too... I know, wonderful system )
    Don't pay attention to this signature, it's contradictory.

  6. #6

  7. #7
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Further to what MartinLiss said you can't just copy the files over that the program complains about when it runs.

    1. There may be other files required by the ones that VB moans about.
    2. Most files need to be REGISTERED on the machine, not just copied.
    3. If you use late binding in your code your VB app won't know it needs a DLL until it gets to that line of code.. and then it'll crash.


    If your users don't trust install programs then they can't be doing very much on their PCs!!
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

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