Results 1 to 16 of 16

Thread: Bug in VB code editor?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    Australia
    Posts
    115

    Angry

    I'm using VB5 SP3.

    I'm encountering a very and the most frustrating problem for the 1st time. When I tried to change some code in VB, some lines disappears or overwrites each other. So I tried to delete the whole function to rewrite it. I can't even delete it! The whole application hangs if I try to 'Undo' changes.

    Has anyone has this problem? How can I fix it?

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Unhappy

    Give you more frustration, I am using VB5 SP3 and have 2 other problem with the IDE,

    1) Sometimes, when you use Ctrl-F to search for something and which do not exist in your source, the machine just hang.

    2) When compile and the .exe already exist, sometime it will not display the Replace or Not message, rather the program will be compiled into a 'File' without any extension. So, everytime I manually delete the .exe before compile, to make sure I will not ship the old .exe to customers.

    Well, it makes me think how do M$ design their architecture. All these seems to be 'Never' happen problem, unless M$ use very complicate or mysterious way to cater for very simple requirement. If that's the case, then I understand why everything from M$ is so huge in size. And it looks like that the improving h/w capacity is for M$ but not for the buyer----US.


  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Upgrade... !


    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  4. #4
    Addicted Member
    Join Date
    Jul 1999
    Location
    St-Élie d'Orford, Quebec, Canada
    Posts
    133
    Hi,

    I've had lines disapearing too, the thing is that when you stop writing it, it seems good but then you close your app and then reload it there are strechs of code lines missing!!!

    I don't know if this is true but I think I heard someone saying this to someone else who said this to another one... :-) in short : code line lenght should not be more than 256 caracters long...

    Try re-writing your function and ajust the lenght of your code lines...

    Hope theses where not only rumors...

    Bye

  5. #5
    Guest
    I've had probalems where my code was completely bug-free and VB gave an error for it. Then I re-typed it on a different line and everything worked.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    Australia
    Posts
    115

    Thumbs down VB problems!

    Hi

    The problem area is just a small function. All I want to do is just adding a parameter. It has nothing to do with string length. So I opened the form with notepad, do whatever I want in there. So far the lines are still there. I'll try not to touch that part of the code to prevent any unpreditable behavior.

    But I have also encounter the same problem Vince has, which has to do with string length. Everytime I reload the project, that particular part of string concatenation is missing! And I always have to retype the codes again. So I rearranged the code and have no problem so far. And again, I'll try not to touch this part of the code either. You never know what unpreditable behaviour you have.

    I also once had problems where there wasn't anything wrong with my code but VB had compilation error. But there wasn't any error if I run it on another PC.


  7. #7
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Angry

    Megatron,

    Your problem, I hit when using C++ also.
    What a hell M$ is!

    More funny is I got protection error in a blank line in C++, if I delete the blank line, then it works!!!


  8. #8
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Originally posted by carolyn
    Hi

    The problem area is just a small function. All I want to do is just adding a parameter. It has nothing to do with string length. So I opened the form with notepad, do whatever I want in there. So far the lines are still there. I'll try not to touch that part of the code to prevent any unpreditable behavior.


    Does it always happen with this function or this PC?
    does reinstalling VB help?
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  9. #9
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    I had that correct syntax but gives erro prob too
    and once when i re-entered it it still did not accept it

    Otherewise though its Kewl as a cucumber

    DocZaf
    {;->

    VB5 SP3

    [Edited by Zaf Khan on 05-25-2000 at 09:03 PM]

  10. #10
    Guest
    Well let's hope VB7 doesn't have any of these bug in it.

  11. #11
    New Member mwildam's Avatar
    Join Date
    Feb 2000
    Location
    Austria
    Posts
    14

    Lightbulb

    Originally posted by Megatron
    I've had probalems where my code was completely bug-free and VB gave an error for it. Then I re-typed it on a different line and everything worked.
    I know this from cut and paste operations from somewhere (b.e. Internet explorer) into VB. Sometimes there are invisible characters in the lines (chr 0 or whatever).
    Using VBS, Java, JavaScript

  12. #12
    New Member mwildam's Avatar
    Join Date
    Feb 2000
    Location
    Austria
    Posts
    14

    Exclamation Corrupt Exe files & insufficient error messages

    I generally have no problems with VB5, there are only two really annoying things with it:

    - Sometimes when compiling to an exe I experienced that the exe file is corrupt and I had to recompile. But I could see this effect only if my PC was running over days and I am doing much with activex also from 3rd party. Maybe something remains in memory in background after some code breaks during programming and makes the troubles later. Further I am compiling and developing the same projects on up to 3 different machines. It may also be that on some machine some DLL is not up to date which I know also to make some problems (but this cannot be addressed to VB only). So maybe this doen't address the plain VB5 only.

    - Sometimes when I am compiling an activex dll created by my own with binary compatibility I get error messages "Ambigous name detected" although I cannot find ambigous names. Worst of all VB doesn't show the position in code where the problem occurs so I have to look at the latest added functions. Mostly the problem is solved by commenting out all latest added functions and then recompile. Then remove the comments of one function and recompile. Then the next function and so on. But - I only have this problems with one of my activex DLLs and it is very large (compiled 1,3 MB).

    I also never had IDE hangups (execpt for some times when a third party module hangs up), I only experienced IDE problems with VB6.
    Using VBS, Java, JavaScript

  13. #13
    Hyperactive Member kourosh's Avatar
    Join Date
    Aug 1999
    Location
    Vancouver, British Columbia, Canada
    Posts
    256

    Cool Direct x 7

    I havn't read all the replies but if you have recently download and install direct x 7.0 goto control panel and uninstall it this might solve your problem. I had direct x 7 couple of months ago and I had the same problem with front page html code editor. I experience some weird think like you could only see half of the written line, I mean it was cut from the top. So direct x could be your answer. The other possiblity is if you have some curropted files. Reinstall vb and your problem might solve.

    Good luck

  14. #14
    Guest
    How would DirectX7 affect VB Code Editor?

  15. #15
    Hyperactive Member kourosh's Avatar
    Join Date
    Aug 1999
    Location
    Vancouver, British Columbia, Canada
    Posts
    256

    Exclamation I am not sure

    I am not sure but I know when I was installing direct x 7 the installation proccess mentioned that it might make such an errors in the word proccessors and code windows. and it also said if such a thing occured just uninstall active x 7. I also saw this problem in my MSWord.

    But frankly I am not sure how does it effect the word proccessors and code windows!!!
    ===========================
    Kourosh Gonabadi
    VB Programmer
    C++ Newbie
    Graphic Designer
    ===========================

  16. #16
    New Member
    Join Date
    May 2000
    Posts
    6

    Talking

    Paul282 is correct, you have to upgrade!
    Shinned
    Email : [email protected]
    Home : http://www.geocities.com/shinned

    VB Ver : 6.0

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