home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,274 of 10,840   
   Jan Hyde to All   
   Re: Hitch in VB6   
   30 Oct 06 09:13:09   
   
   From: StellaDrinker@REMOVE.ME.uboot.com   
      
   "David C. Barber" 's wild thoughts   
   were released on Sat, 28 Oct 2006 12:29:38 -0700 bearing the   
   following fruit:   
      
   >I discovered an amazing hitch in VB6 SP6.   
   >   
   >I run a Sub Main that shows a splash screen, initializes a number of items,   
   >takes down the splash screen, and shows the main form.   
   >   
   >While trying to track another problem that I couldn't run in the IDE because   
   >this problem (an ADODB OLEDB connection to an SQL Database that runs fine in   
   >Windows 2K, and blows up on the recordset open in XP) has to be run on   
   >another machine without VS6 installed, I inserted a whole string of msgbox's   
   >to track down the offending statement.   
   >   
   >The last msgbox is after the final form show, and before the Exit Sub in my   
   >Sub Main.  Guess what happened to me next?   
   >   
   >When run under these circumstances in the IDE, the main form load event   
   >fires as expected, AND THE FORM ACTIVATE EVENT DOESN'T!   
   >   
   >SP7 anyone?   
      
   OK, firstly it's not unusal to have a problem that doesn't   
   occur when running in the IDE.   
      
   Secondly, a messagebox is a very poor way to try and debug   
   it. I'm not in the least bit suprised that events aren't   
   firing as you might expect if your doing this.   
      
   Add line numbers to you code and log this information along   
   with the error. If you want to track program flow, log the   
   details to file. This way the program is more likely to flow   
   in the same way as your original compiled app. However   
   sometimes just adding one extra line of code to log somthing   
   can affect things.   
      
      
      
      
   Jan Hyde (VB MVP)   
      
   --   
   Did you hear about the self help group for compulsive talkers? It's called On   
   & On Anon. (Doug Helsel)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca