|
-
May 23rd, 2000, 09:20 AM
#1
Thread Starter
Lively Member
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?
-
May 23rd, 2000, 09:49 AM
#2
Hyperactive Member
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.
-
May 23rd, 2000, 02:06 PM
#3
Fanatic Member
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
-
May 23rd, 2000, 08:21 PM
#4
Addicted Member
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
-
May 24th, 2000, 07:07 AM
#5
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.
-
May 24th, 2000, 07:56 AM
#6
Thread Starter
Lively Member
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.
-
May 24th, 2000, 08:34 AM
#7
Hyperactive Member
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!!!
-
May 24th, 2000, 10:28 AM
#8
Fanatic Member
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!)
-
May 25th, 2000, 08:02 AM
#9
Fanatic Member
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]
-
May 26th, 2000, 06:13 AM
#10
Well let's hope VB7 doesn't have any of these bug in it.
-
May 28th, 2000, 04:55 PM
#11
New Member
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
-
May 28th, 2000, 05:19 PM
#12
New Member
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
-
May 28th, 2000, 10:55 PM
#13
Hyperactive Member
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
-
May 29th, 2000, 03:35 AM
#14
How would DirectX7 affect VB Code Editor?
-
May 29th, 2000, 03:50 AM
#15
Hyperactive Member
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
===========================
-
May 29th, 2000, 11:55 AM
#16
New Member
Paul282 is correct, you have to upgrade!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|