Author | Message | Time |
---|---|---|
Antarctica | I'm having quite a weird problem. With my project, when I run it, then close it out, vb6 locks up and i have to crash it. Anyone heard of this? It only seems to happen when the Form design window is open. | November 23, 2007, 11:26 PM |
Barabajagal | 1) Are you using "End"? 2) Are you using the INet (Microsoft Internet Transfer) control? 3) Are you using subclassing? | November 23, 2007, 11:48 PM |
Antarctica | 1: Yes, on both Form_Unload and Form_Terminate 2: No 3: Please explain what this means (sorry for being newb) | November 23, 2007, 11:51 PM |
Barabajagal | Never, EVER use End. It is the absolute worst thing you can do. Remove it immediately. Subclassing is where you write code that goes before the built in system message handling in VB. It can be used in a variety of ways to intercept or send messages to or from applications. For instance, you can hook WM_MMI, which is the system message for resizing windows, to prevent a window from getting smaller or larger than defined values. | November 23, 2007, 11:56 PM |
Antarctica | No, I don't remember doing anything fancy like that :-\ | November 23, 2007, 11:57 PM |
Barabajagal | Well, get rid of End in both instances. When you need to close a window, use Unload Me. When you need to close all the windows, use a For Each loop, like so: [code] Dim Frm as Form For Each Frm in Forms Unload Frm Next Frm [/code] | November 24, 2007, 12:00 AM |
BreW | Are you using a winsock control, and using a text IP? (such as, valhallalegends.com) Doing this, then trying to close it may "hang" vb6 for a while then crash. I have this problem. | November 24, 2007, 12:20 AM |
Antarctica | Yeah, i am using useast.battle.net | November 24, 2007, 12:27 AM |
BreW | I guess that's your problem. It happens to about what seems like every 1/9 people who use vb6, including me. I know of no way to fix that. Just revolve it yourself, by using gethostbyname. | November 24, 2007, 12:40 AM |
inner. | I know how you feel about VB6 always freezing or crashing. It made me so mad. I never could find out why it did that until my later years of programming. | November 24, 2007, 5:13 AM |
Hell-Lord | [quote author=Andy link=topic=17188.msg174994#msg174994 date=1195862435] Well, get rid of End in both instances. When you need to close a window, use Unload Me. When you need to close all the windows, use a For Each loop, like so: [code] Dim Frm as Form For Each Frm in Forms Unload Frm Next Frm [/code] [/quote] [code]Dim frm as Form For Each frm In Forms Unload frm Set frm = Nothing Next[/code] fixed ;) | November 24, 2007, 10:27 AM |
dlStevens | Make sure on Form_Terminate and Form_Close and stuff, you do [code]wSck.Close[/code] because, if I don't, then usually I'll freeze up as well. | November 24, 2007, 5:47 PM |
Hell-Lord | I find QueryUnload good to use too, it is fired before the terminate and unload events and allows the user to specify what to do when a particular method has been used to close the applications. [code]Private Sub Form_QueryUnload(Cancel As Integer, _ UnloadMode As Integer) Select Case UnloadMode Case 0: ' User used the 'X' in the corner to close ' the application Case 1: ' Some other code within this application is invoked ' and is closing the application. Case 2: ' Windows session is closing (i.e. Start, Shut Down) Case 3: ' Task Manager is closing this application. (i.e. ' Ctrl+Alt+Del, End Task) Case 4: ' The MDI parent form is closing. End Select End Sub[/code] And yes you should do what Dale said if the Winsock is not already closed. | November 24, 2007, 11:48 PM |
Quarantine | [quote author=inner.de link=topic=17188.msg174999#msg174999 date=1195881193] I know how you feel about VB6 always freezing or crashing. It made me so mad. I never could find out why it did that until my later years of programming. [/quote] The problem is you were using VB6 after years of programming. | November 26, 2007, 12:19 AM |
dlStevens | [quote author=Warrior link=topic=17188.msg175017#msg175017 date=1196036393] [quote author=inner.de link=topic=17188.msg174999#msg174999 date=1195881193] I know how you feel about VB6 always freezing or crashing. It made me so mad. I never could find out why it did that until my later years of programming. [/quote] The problem is you were using VB6 after years of programming. [/quote] Trolling much? :-\ | November 26, 2007, 1:42 AM |
BreW | [quote author=Dale link=topic=17188.msg175018#msg175018 date=1196041376] [quote author=Warrior link=topic=17188.msg175017#msg175017 date=1196036393] [quote author=inner.de link=topic=17188.msg174999#msg174999 date=1195881193] I know how you feel about VB6 always freezing or crashing. It made me so mad. I never could find out why it did that until my later years of programming. [/quote] The problem is you were using VB6 after years of programming. [/quote] Trolling much? :-\ [/quote] Isn't trolling where you supply false information in order to confuse the OP and/or create some kind of controversy? I wouldn't say warrior is trolling. I agree with his statement 100%. | November 26, 2007, 1:47 AM |
St0rm.iD | i think it's just flamebait | November 26, 2007, 2:35 AM |
inner. | I don't take that as a flame to me, mostly because what he said flames VB. But the reason why I didn't move on was because programming was just a hobby, I didn't plan to educate myself further. | November 26, 2007, 2:38 AM |
Quarantine | It was more of a joke, ironically I've never trolled these boards though I have been banned from here for allegedly trolling. Go figure :). | November 26, 2007, 2:42 AM |
dlStevens | I wasn't picking on you Warrior, It was just kind of hard to tell how you were saying it. :P | November 26, 2007, 9:11 PM |
MyStiCaL | Another reason why visual basic 6 may crash could be from a internal usercontrol; which they have never fixed to unload right. ;p | November 26, 2007, 10:12 PM |
Barabajagal | Never had an app of mine crash because of a UserControl. | November 27, 2007, 8:20 PM |
dlStevens | Maybe because your User Controls were coded correctly? ??? | November 28, 2007, 2:40 AM |
Barabajagal | Naw, a few of them do the "BROKEN" thing all the time, where the control gets diagonal lines all across it. Maybe it's because I'm using Service Pack 6? | November 28, 2007, 2:48 AM |
dlStevens | Hello, Windows sucks period. | November 29, 2007, 1:47 AM |
Kp | [quote author=Dale link=topic=17188.msg175079#msg175079 date=1196300854] Hello, Windows sucks period. [/quote] Windows is a sufficiently large construct that such a sweeping generalization is inappropriate. Some of Microsoft's offerings shipped with Windows do indeed suck, but there are parts that are decent. | November 29, 2007, 4:02 AM |
dlStevens | [quote author=Kp link=topic=17188.msg175080#msg175080 date=1196308975] [quote author=Dale link=topic=17188.msg175079#msg175079 date=1196300854] Hello, Windows sucks period. [/quote] Windows is a sufficiently large construct that such a sweeping generalization is inappropriate. Some of Microsoft's offerings shipped with Windows do indeed suck, but there are parts that are decent. [/quote] It didn't use to be bad, it use to be efficient, but ever since Windows Vista hit the market, my view for Microsoft declined. | November 29, 2007, 2:13 PM |
St0rm.iD | fucking overlapped i/o is sweet. | November 29, 2007, 9:26 PM |
Quarantine | [quote author=Dale link=topic=17188.msg175082#msg175082 date=1196345633] [quote author=Kp link=topic=17188.msg175080#msg175080 date=1196308975] [quote author=Dale link=topic=17188.msg175079#msg175079 date=1196300854] Hello, Windows sucks period. [/quote] Windows is a sufficiently large construct that such a sweeping generalization is inappropriate. Some of Microsoft's offerings shipped with Windows do indeed suck, but there are parts that are decent. [/quote] It didn't use to be bad, it use to be efficient, but ever since Windows Vista hit the market, my view for Microsoft declined. [/quote] Ironic considering your signature sports the Windows Vista color scheme and the login screen wallpaper. | November 29, 2007, 11:54 PM |
Barabajagal | Win2k Pro FTW! | November 30, 2007, 1:04 AM |
dlStevens | [quote author=Warrior link=topic=17188.msg175094#msg175094 date=1196380492] [quote author=Dale link=topic=17188.msg175082#msg175082 date=1196345633] [quote author=Kp link=topic=17188.msg175080#msg175080 date=1196308975] [quote author=Dale link=topic=17188.msg175079#msg175079 date=1196300854] Hello, Windows sucks period. [/quote] Windows is a sufficiently large construct that such a sweeping generalization is inappropriate. Some of Microsoft's offerings shipped with Windows do indeed suck, but there are parts that are decent. [/quote] It didn't use to be bad, it use to be efficient, but ever since Windows Vista hit the market, my view for Microsoft declined. [/quote] Ironic considering your signature sports the Windows Vista color scheme and the login screen wallpaper. [/quote] Never said I didn't care for the GUI, It's cute, but as far as performance wise it's shit. | November 30, 2007, 12:05 PM |
Myndfyr | Bull. Shit. | November 30, 2007, 5:05 PM |
Barabajagal | Eww... the GUI looks like a shitty knock-off of OSX, which is what it is! | November 30, 2007, 8:30 PM |
dlStevens | I like it, but like I said despite MyndFyres' comment, performance is shit. | November 30, 2007, 9:56 PM |
Quarantine | [quote author=Dale link=topic=17188.msg175109#msg175109 date=1196424305] [quote author=Warrior link=topic=17188.msg175094#msg175094 date=1196380492] [quote author=Dale link=topic=17188.msg175082#msg175082 date=1196345633] [quote author=Kp link=topic=17188.msg175080#msg175080 date=1196308975] [quote author=Dale link=topic=17188.msg175079#msg175079 date=1196300854] Hello, Windows sucks period. [/quote] Windows is a sufficiently large construct that such a sweeping generalization is inappropriate. Some of Microsoft's offerings shipped with Windows do indeed suck, but there are parts that are decent. [/quote] It didn't use to be bad, it use to be efficient, but ever since Windows Vista hit the market, my view for Microsoft declined. [/quote] Ironic considering your signature sports the Windows Vista color scheme and the login screen wallpaper. [/quote] Never said I didn't care for the GUI, It's cute, but as far as performance wise it's shit. [/quote] Performs just fine for me, and I've had it since release. What specifically is slow for you? | November 30, 2007, 10:10 PM |
Quarantine | [quote author=Andy link=topic=17188.msg175115#msg175115 date=1196454610] Eww... the GUI looks like a shitty knock-off of OSX, which is what it is! [/quote] Except Aero and it's underlying technologies were being shown off at PDCs before OSX got any form of usable compositing+3D Effects. Additionally, if you find think that a Windows Vista Desktop, and an OSX Desktop look in any way similar you must be smoking something. Or maybe we should mention how Leopard adopts the Vista Style translucent Menu Bar? Nah. | November 30, 2007, 10:13 PM |
Barabajagal | It's the entire idea of the round/bubbly/glassy/"Web2.0" shit. I can't stand any of it. I like dark, squared off interfaces that don't make me feel like I'm playing a game designed for a three year old. | November 30, 2007, 10:19 PM |
BreW | [quote author=Andy link=topic=17188.msg175120#msg175120 date=1196461174] It's the entire idea of the round/bubbly/glassy/"Web2.0" shit. I can't stand any of it. I like dark, squared off interfaces that don't make me feel like I'm playing a game designed for a three year old. [/quote] But that's the future of computing! Great, init? | November 30, 2007, 11:27 PM |
dlStevens | You have awful taste Andy, :P | December 1, 2007, 4:22 PM |
Barabajagal | I value ease of use over appearance. Visual styles should be minimal, un-noticed, and not distracting. Windows XP's "Luna" skin was completely and totally pointless. It didn't increase productivity at all. In fact, it made lots of things larger than they needed to be, which takes up workspace. Aero's even worse. It's all bloated, pointless bullshit. I'd rather use a text based system that lets me work without a single thought to the GUI. | December 1, 2007, 9:40 PM |
BreW | [quote author=Andy link=topic=17188.msg175147#msg175147 date=1196545201] I'd rather use a text based system that lets me work without a single thought to the GUI. [/quote] See: Ripple Chat Bot Configuration GUI | December 2, 2007, 1:34 AM |
dlStevens | [quote author=brew link=topic=17188.msg175151#msg175151 date=1196559264] [quote author=Andy link=topic=17188.msg175147#msg175147 date=1196545201] I'd rather use a text based system that lets me work without a single thought to the GUI. [/quote] See: Ripple Chat Bot Configuration GUI [/quote] It was rather repulsive. | December 2, 2007, 4:09 AM |
Camel | It's pointless to argue over who did what first. Even if the information you use to support your argument is fact, it still doesn't change the bottom line: Aero is egregiously slow. I've seen benchmarks, supported by my own personal experience, that indicate Aero is responsible for as much as a 150% slowdown in window draw time when compared to the classic windows style. If you've got a top of the line computer with a top of the line graphics card, you probably wont notice the difference, but I for one will not be installing Vista any time soon. Leopard runs just fine on my MacBook. I've got the GM850 graphics card (it's a shitty integrated Intel card), and it has no problems drawing any of the effects in OSX. | December 2, 2007, 11:47 AM |
warz | So, you can't run Vista with Aero - who cares? | December 3, 2007, 12:49 AM |
Myndfyr | [quote author=Camel link=topic=17188.msg175164#msg175164 date=1196596070] Leopard runs just fine on my MacBook. [/quote] I'm sure Windows would run with flying colors on a machine in which Microsoft had all the control over the hardware, too. ::) | December 3, 2007, 2:16 AM |
Barabajagal | Actually, I'd be very much afraid of hardware controlled completely by a Microsoft product... | December 3, 2007, 2:28 AM |
Myndfyr | [quote author=Andy link=topic=17188.msg175180#msg175180 date=1196648905] Actually, I'd be very much afraid of hardware controlled completely by a Microsoft product... [/quote] That's entirely irrelevant to what I just said. | December 3, 2007, 3:13 AM |
Barabajagal | Yes, and everything the last few pages has been talking about has been irrelevant to the topic. | December 3, 2007, 3:19 AM |
dlStevens | [quote author=Andy link=topic=17188.msg175189#msg175189 date=1196651977] Yes, and everything the last few pages has been talking about has been irrelevant to the topic. [/quote] Not necessarily, the fact that Microsoft Window sucks, may be the problem to Visual Basic crashing? | December 3, 2007, 3:11 PM |
St0rm.iD | the general software bloat trend is disgusting, scary, and a conspiracy. the only good thing that has come from software bloat is VM languages. | December 3, 2007, 4:13 PM |
Quarantine | [quote author=Camel link=topic=17188.msg175164#msg175164 date=1196596070] It's pointless to argue over who did what first. Even if the information you use to support your argument is fact, it still doesn't change the bottom line: Aero is egregiously slow. I've seen benchmarks, supported by my own personal experience, that indicate Aero is responsible for as much as a 150% slowdown in window draw time when compared to the classic windows style. If you've got a top of the line computer with a top of the line graphics card, you probably wont notice the difference, but I for one will not be installing Vista any time soon. Leopard runs just fine on my MacBook. I've got the GM850 graphics card (it's a shitty integrated Intel card), and it has no problems drawing any of the effects in OSX. [/quote] I think Myndy hit the nail on the head, when Apple controls the hardware and the software it's very easy to optimize the system for performance. There are various trade offs, assumptions, etc made when handling with such a wide array of hardware. Aero takes advantage of modern hardware, so OEMs are going to have to step up their game and give people quality parts. It pushes the envelope on the evolution of that specific field of technology, so it can't all be a bad thing. Even so, there's no doubt in my mind with all this taken into account that Aero is still a hog. It's a 1.0 technology, and I know for a fact that the compositor in OSX was not as fast as it is today, the day it was released. | December 3, 2007, 7:33 PM |