From dwaters at usinternet.com Tue Aug 5 20:36:58 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 5 Aug 2008 20:36:58 -0500 Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) Message-ID: I want to get a book on VS 2008 and a book on VB 2008. I am new to both, with significant Access experience. Does anyone have recommendations for or against? Thanks! Dan From dw-murphy at cox.net Wed Aug 6 13:50:47 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 6 Aug 2008 11:50:47 -0700 Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) In-Reply-To: References: Message-ID: <005a01c8f7f5$56a80800$0200a8c0@murphy3234aaf1> Hi Dan, I have found Murach's Visual Basic 2008 to be a good intro. I was at a Dot Net Developers Group meeting last night and won a copy of Deborah Kurata's "Doing Objects in Visual Basic 2005". I just skimmed through it and I look like a great resource for someone coming from a VB or VBA background. I have Deborah's "Doing Objects in VB6" which was a great book for VB developers 10 years ago. Her latest book is one version of Visual Studio behind but the concepts have not changed. As a side comment it is interesting to contrast the interest in Dot net development and Access development. I attend both user's groups meetings. There is a lot of energy and interest by head hunters at the Dot net meetings. Our Access Users Group hasn't seen a head hunter for quite some time. Have fun. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, August 05, 2008 6:37 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) I want to get a book on VS 2008 and a book on VB 2008. I am new to both, with significant Access experience. Does anyone have recommendations for or against? Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Sat Aug 9 11:54:46 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 09 Aug 2008 18:54:46 +0200 Subject: [dba-VB] C#: Validate e-mail address Message-ID: Hi all I needed to validate the format of user entered e-mail addresses and couldn't find a good method, except some RegEx at Microsoft. So I had to run my own, but wonder if anything better exists. MailAddress is used for first level validation as this later will be used to create the e-mails: using System.Net.Mail; private static bool IsMailAddress(string address, out string cleanedAddress) { cleanedAddress = String.Empty; try { MailAddress mailAddress = new MailAddress(address.Trim()); // MailAddress validated the address. // However, even one char only for Host will be accepted. // Extract user and host for further validation. bool isAddress = false; string displayName = mailAddress.DisplayName; // Strip internal spaces from user and host string. string user = mailAddress.User.Replace(" ", String.Empty); string host = mailAddress.Host.Replace(" ", String.Empty); // Build basic mail address. string baseAddress = (user + "@" + host).ToLower(); // Check that Host contains a domain too. // Expanding on the method described here: http://support.microsoft.com/kb/308252 System.Text.RegularExpressions.Regex mailRegex = new System.Text.RegularExpressions.Regex("(?[^@]+)@(?[^.]+).(?[^.]+)."); System.Text.RegularExpressions.Match match = mailRegex.Match(baseAddress); Console.WriteLine( match.Groups["user"].Value.ToString() + "@" + match.Groups["host"].Value.ToString() + "." + match.Groups["domain"].Value.ToString()); isAddress = match.Success; if (isAddress) { // Return formatted email address. if (displayName.Length == 0) { // Basic mail address only. cleanedAddress = baseAddress; } else { // Full address including Display Name. cleanedAddress = @"""" + displayName + @""" <" + baseAddress + @">"; } } return isAddress; } catch { return false; } } The trick is that MailAddress is somewhat flexible regarding accepted strings and will _clean_ these, thus you very easily can return the cleaned string. Of course, you can turn this into a small class if you like. Here's a basic method to use it with the ErrorProvider when validating a TextBox: private void textBoxEmailAddress_Validating(object sender, CancelEventArgs e) { TextBox textBox = (TextBox)sender; string errorDescription = String.Empty; string cleanedAddress = String.Empty; string address = textBox.Text; if (textBox.Text.Equals(String.Empty)) { errorDescription = "Please enter an e-mail address"; } else if (!IsMailAddress(address, out cleanedAddress)) { errorDescription = "The format of the address is not correct"; } else { if (!cleanedAddress.Equals(address)) { textBox.Text = cleanedAddress; } } errorProvider1.SetError(textBox, errorDescription); } /gustav From Gustav at cactus.dk Mon Aug 11 04:55:29 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 11 Aug 2008 11:55:29 +0200 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Message-ID: Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav From Gustav at cactus.dk Mon Aug 11 05:04:16 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 11 Aug 2008 12:04:16 +0200 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Message-ID: Oops. From another source: SP1 does not include ASP.NET MVC Framework but only one basic element for ASP.NET MVC: Routing. Routing allows for nice URLs in traditional ASP.NET WebForm applications as well as ASP.NET MVC when this will be released later this year. /gustav >>> Gustav at cactus.dk 11-08-2008 11:55 >>> Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav From shamil at smsconsulting.spb.ru Mon Aug 11 15:23:05 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 12 Aug 2008 00:23:05 +0400 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? In-Reply-To: Message-ID: <001801c8fbf0$11e19b60$6401a8c0@nant> Hi Gustav, I looked at MVC for ASP.NET and I decided for myself to avoid using it. When I will see/hear that somebody here uses it I might change my current decision... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, August 11, 2008 1:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Aug 16 16:48:44 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 16 Aug 2008 17:48:44 -0400 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? References: Message-ID: http://www.asp.net/mvc/ ...something else for my "to do" list ...current priority is zip :( William -------------------------------------------------- From: "Gustav Brock" Sent: Monday, August 11, 2008 5:55 AM To: Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? > Hi all > > Did you notice this: > > http://www.sdtimes.com/content/article.aspx?ArticleID=32687 > > and the link inside (near bottom) to the previous story. > > Now, to me the big question is: What is this MVC (Model-View-Controller) > pattern for ASP.NET? > Does it represent a new steep learning curve? > > /gustav > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Sun Aug 17 10:13:52 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 17 Aug 2008 17:13:52 +0200 Subject: [dba-VB] C#, mantissa, math fun Message-ID: Hi all Delphi people know this as Fract, the decimal part of a decimal number. C# does not contain a direct method to extract that, so I thought of some smart math way to do so as I try too to avoid number handling by string conversion as it often turns into some "dirty" operation. By second thought you - as a human - easily can extract the mantissa but you do that by looking at the full number as a string. So why not ask the machine to do the same - and simple string handling is actually extremely fast for small strings like here, while raising a number to the power of something (which is a math method) is slower. So, inspired by this link: http://bytes.com/forum/thread563673.html I found this simple one-liner which handles both negative and positive numbers: double number = -1234.56789; int mantissa = Convert.ToInt32((Math.Abs((decimal)number) % 1).ToString().Substring(2)); mantissa -> 56789 Of course, if you expect to use it a lot, wrap it into a utility class. Still, I wonder if some clever byte manipulation method would exist. /gustav From djkr at msn.com Mon Aug 18 03:49:36 2008 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 18 Aug 2008 09:49:36 +0100 Subject: [dba-VB] FortiGuard? In-Reply-To: Message-ID: Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John From accessd at shaw.ca Mon Aug 18 12:52:56 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Aug 2008 10:52:56 -0700 Subject: [dba-VB] FortiGuard? In-Reply-To: References: Message-ID: Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From djkr at msn.com Mon Aug 18 13:16:05 2008 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 18 Aug 2008 19:16:05 +0100 Subject: [dba-VB] FortiGuard? In-Reply-To: Message-ID: Thanks, Jim, especially since I posted in the wrong forum. A nasty zombie of your client's! But I think in this case it may have been the 500-year-old flesh-colored cobbles in yesterday's picture... And FortiGuard have re-categorized the site now. John -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 18 August 2008 18:53 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Mon Aug 18 14:52:23 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Aug 2008 12:52:23 -0700 Subject: [dba-VB] FortiGuard? In-Reply-To: References: Message-ID: <78EB589C8994444E90651EBB9511C449@creativesystemdesigns.com> Ha ha ha.... what can I say... reading fast, writing faster. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 11:16 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Thanks, Jim, especially since I posted in the wrong forum. A nasty zombie of your client's! But I think in this case it may have been the 500-year-old flesh-colored cobbles in yesterday's picture... And FortiGuard have re-categorized the site now. John -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 18 August 2008 18:53 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Aug 22 11:26:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Aug 2008 18:26:33 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From michael at ddisolutions.com.au Sat Aug 23 00:38:09 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 23 Aug 2008 15:38:09 +1000 Subject: [dba-VB] C#: When to Dispose References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF08@ddi-01.DDI.local> Hi Gustav, I rarely explicitly Dispose. I was aware that certain objects do require Disposing such as some Streams and some database objects. These days I use Using 'C#' not sure what the VB equivalent is. Browsing the article he makes it pretty clear that Dispose is mainly used for unmanaged objects, so in your example if you are using an unmanaged library then you should probably Dispose it. If you are writing an API that uses unmanaged objects then as the developer you should implement the IDispose Interface. If your app is leaking memory then you may be missing Dispose calls. cheers Michael M Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.6/1626 - Release Date: 8/21/2008 6:54 PM From Gustav at cactus.dk Sat Aug 23 03:25:34 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 23 Aug 2008 10:25:34 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Michael Thanks. I'll continue to follow those guidelines, indeed as I don't use any unmanaged libraries. /gustav >>> michael at ddisolutions.com.au 23-08-2008 07:38 >>> Hi Gustav, I rarely explicitly Dispose. I was aware that certain objects do require Disposing such as some Streams and some database objects. These days I use Using 'C#' not sure what the VB equivalent is. Browsing the article he makes it pretty clear that Dispose is mainly used for unmanaged objects, so in your example if you are using an unmanaged library then you should probably Dispose it. If you are writing an API that uses unmanaged objects then as the developer you should implement the IDispose Interface. If your app is leaking memory then you may be missing Dispose calls. cheers Michael M Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From michael at ddisolutions.com.au Sun Aug 24 18:39:42 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 25 Aug 2008 09:39:42 +1000 Subject: [dba-VB] Dev PC with Raid? References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local> Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M From DWUTKA at Marlow.com Sun Aug 24 19:43:16 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 24 Aug 2008 19:43:16 -0500 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local> Message-ID: I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From bill_patten at embarqmail.com Sun Aug 24 20:06:40 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Sun, 24 Aug 2008 18:06:40 -0700 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: References: Message-ID: <231A64CBB0AC49BBA9EEA405BE8F8B5F@BPCS> I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Aug 24 20:10:51 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 25 Aug 2008 11:10:51 +1000 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local>, Message-ID: <48B2069B.25512.43478540@stuart.lexacorp.com.pg> Raid 0 is "Striped" - Raid 1 is "Mirrored" Raid 0 doesn't give you any redundacy, it just improves access times. Raid 5 requires a minimum of 3 disks Raid 10 requires a minimum of 4 disks I agree with Drew - go with Mirrored (ie Raid 1) You can see the pros/cons of each Raid version and some nice action graphics at http://www.acnc.com/04_01_00.html On 24 Aug 2008 at 19:43, Drew Wutka wrote: > I would recommend going with a raid 0. It's a mirror, and you will lose > half of your space capacity (essentially you'll only have 1 500 gig > drive, instead of 2), but it'll run just fine, speed wise, in fact, > reading will go twice as fast, and you have the reliability of losing > either drive and the other will pick up live! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Sunday, August 24, 2008 6:40 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Dev PC with Raid? > > Hi Guys, > > Just got my new bits to build a new dev workstation. :-))) > > I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + > 10. I've never used raid on > a workstation before. I have a 1TB usb drive I use for backups already. > I have all my dev stuff including a lot of data fitting into about 200 > GB now. > > Any opinions? > > cheers > > Michael M > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Stuart Mclachlan From DWUTKA at Marlow.com Sun Aug 24 20:31:04 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 24 Aug 2008 20:31:04 -0500 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: <231A64CBB0AC49BBA9EEA405BE8F8B5F@BPCS> Message-ID: Ooops.... you're right, 1 is a mirror, and 0 is a stripe...my bad.... Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Sunday, August 24, 2008 8:07 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From michael at ddisolutions.com.au Mon Aug 25 00:38:27 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 25 Aug 2008 15:38:27 +1000 Subject: [dba-VB] Dev PC with Raid? References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> Thanks, I must suck... Need to have a floppy to install drivers with XP! So I borrowed 1 from an old box and followed the instructions, must have done something wrong as I tried 3 time but all I get is a BSOD during Windows install. Remove the RAID option from the bios and installation goes fine... Maybe next time... cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, 25 August 2008 11:31 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? Ooops.... you're right, 1 is a mirror, and 0 is a stripe...my bad.... Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Sunday, August 24, 2008 8:07 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.7/1631 - Release Date: 8/24/2008 12:15 PM From cfoust at infostatsystems.com Mon Aug 25 18:15:39 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Aug 2008 16:15:39 -0700 Subject: [dba-VB] C#: When to Dispose In-Reply-To: References: Message-ID: It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Mon Aug 25 20:34:01 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 11:34:01 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M From bill_patten at embarqmail.com Mon Aug 25 21:37:37 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 25 Aug 2008 19:37:37 -0700 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Message-ID: <4A8910858CA74E47B3A12A3D58A03F90@BPCS> Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Mon Aug 25 23:14:57 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 14:14:57 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> <4A8910858CA74E47B3A12A3D58A03F90@BPCS> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM From shamil at smsconsulting.spb.ru Tue Aug 26 00:35:48 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 26 Aug 2008 09:35:48 +0400 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Message-ID: <001001c9073d$9977bb10$6401a8c0@nant> Michael, I have Vista Ultimate edition on my notebook and I have VS2005 and VS2008 installed on it as well as VB6 and MS Office 2007... I have done VB6 and VS2005 development on it and it worked well, activeX dlls get registered etc. Maybe you have issues you mentioned because of Vista running as a Virtiual PC? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Tuesday, August 26, 2008 5:34 AM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bill_patten at embarqmail.com Tue Aug 26 01:00:06 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 25 Aug 2008 23:00:06 -0700 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local><4A8910858CA74E47B3A12A3D58A03F90@BPCS> <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> Message-ID: <98E7C22C36F644C1BB94A0C0F65E756F@BPCS> I really only have a few projects in each type so certainly not qualified to say no problem, but so far all the problems were because I didn't know what I was doing. You do not need special versions for 64 bit. I haven't written any AX's so can't help you there but I have not had any problems installing those provided by others. If it was awhile ago perhaps you were running into permission issues. I do every thing run as admin and everything seems to install ok. I have done some testing in a Vista 32 in a Virtual PC , mostly so I am able to see what my friends an clients see with threes and that seems to run fine as well, though It does not allow USB (except for the mouse and perhaps keyboard.) Sorry I can't be of more help, but in my opinion Vista is not what caused your problem, excluding the permissions thing. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 9:14 PM Subject: Re: [dba-VB] Dev PC OS Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Tue Aug 26 02:30:00 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 17:30:00 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local><4A8910858CA74E47B3A12A3D58A03F90@BPCS><59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> <98E7C22C36F644C1BB94A0C0F65E756F@BPCS> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF26@ddi-01.DDI.local> Thanks all, I'm installing Vista64 now. If I run into problem I'll either run virtual XP or keep a machine loaded with my legacy bits. cheers Michael M I really only have a few projects in each type so certainly not qualified to say no problem, but so far all the problems were because I didn't know what I was doing. You do not need special versions for 64 bit. I haven't written any AX's so can't help you there but I have not had any problems installing those provided by others. If it was awhile ago perhaps you were running into permission issues. I do every thing run as admin and everything seems to install ok. I have done some testing in a Vista 32 in a Virtual PC , mostly so I am able to see what my friends an clients see with threes and that seems to run fine as well, though It does not allow USB (except for the mouse and perhaps keyboard.) Sorry I can't be of more help, but in my opinion Vista is not what caused your problem, excluding the permissions thing. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 9:14 PM Subject: Re: [dba-VB] Dev PC OS Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM From Gustav at cactus.dk Wed Aug 27 02:41:56 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 27 Aug 2008 09:41:56 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From Gustav at cactus.dk Thu Aug 28 03:08:00 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 28 Aug 2008 10:08:00 +0200 Subject: [dba-VB] MDI Winforms, no keyboard copy, cut or paste Message-ID: Hi all It took me some research to figure this out ... Should you ever wonder why you have "lost" the keyboard shortcuts for copy and paste in your child forms while the popup menu still offer that functionality, the reason is that the standard MDI form has "hijacked" the shortcuts for its own menu line: http://forums.msdn.microsoft.com/en-US/csharpgeneral/thread/59a54884-d987-4a39-b9ab-97d3d9f3acf8/ /gustav From cfoust at infostatsystems.com Thu Aug 28 19:03:15 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 28 Aug 2008 17:03:15 -0700 Subject: [dba-VB] C#: When to Dispose In-Reply-To: References: Message-ID: That's the way I understand it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, August 27, 2008 12:42 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C#: When to Dispose Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Aug 29 04:46:23 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Aug 2008 11:46:23 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Charlotte And, as I noticed the other day, if you look up the .designer.cs code for any form created from the VS template, this is found (probably similar for VB.NET) which may tell the form to clean up its components: /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } So no magic, just handcraft. /gustav >>> cfoust at infostatsystems.com 29-08-2008 02:03 >>> That's the way I understand it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, August 27, 2008 12:42 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C#: When to Dispose Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From Gustav at cactus.dk Sat Aug 30 05:10:04 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 30 Aug 2008 12:10:04 +0200 Subject: [dba-VB] C#, mantissa, math fun Message-ID: Hi all (blush) ... if no decimals exist (number is an integer) that one-liner will fail. So check for zero decimals: double number = -1234.56789; int mantissa = 0; decimal fraction = (decimal)number % 1; if (fraction != 0) { mantissa = Convert.ToInt32(Math.Abs(fraction).ToString().Substring(2)); } /gustav >>> Gustav at cactus.dk 17-08-2008 17:13 >>> Hi all Delphi people know this as Fract, the decimal part of a decimal number. C# does not contain a direct method to extract that, so I thought of some smart math way to do so as I try too to avoid number handling by string conversion as it often turns into some "dirty" operation. By second thought you - as a human - easily can extract the mantissa but you do that by looking at the full number as a string. So why not ask the machine to do the same - and simple string handling is actually extremely fast for small strings like here, while raising a number to the power of something (which is a math method) is slower. So, inspired by this link: http://bytes.com/forum/thread563673.html I found this simple one-liner which handles both negative and positive numbers: double number = -1234.56789; int mantissa = Convert.ToInt32((Math.Abs((decimal)number) % 1).ToString().Substring(2)); mantissa -> 56789 Of course, if you expect to use it a lot, wrap it into a utility class. Still, I wonder if some clever byte manipulation method would exist. /gustav From dwaters at usinternet.com Tue Aug 5 20:36:58 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 5 Aug 2008 20:36:58 -0500 Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) Message-ID: I want to get a book on VS 2008 and a book on VB 2008. I am new to both, with significant Access experience. Does anyone have recommendations for or against? Thanks! Dan From dw-murphy at cox.net Wed Aug 6 13:50:47 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 6 Aug 2008 11:50:47 -0700 Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) In-Reply-To: References: Message-ID: <005a01c8f7f5$56a80800$0200a8c0@murphy3234aaf1> Hi Dan, I have found Murach's Visual Basic 2008 to be a good intro. I was at a Dot Net Developers Group meeting last night and won a copy of Deborah Kurata's "Doing Objects in Visual Basic 2005". I just skimmed through it and I look like a great resource for someone coming from a VB or VBA background. I have Deborah's "Doing Objects in VB6" which was a great book for VB developers 10 years ago. Her latest book is one version of Visual Studio behind but the concepts have not changed. As a side comment it is interesting to contrast the interest in Dot net development and Access development. I attend both user's groups meetings. There is a lot of energy and interest by head hunters at the Dot net meetings. Our Access Users Group hasn't seen a head hunter for quite some time. Have fun. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, August 05, 2008 6:37 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) I want to get a book on VS 2008 and a book on VB 2008. I am new to both, with significant Access experience. Does anyone have recommendations for or against? Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Sat Aug 9 11:54:46 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 09 Aug 2008 18:54:46 +0200 Subject: [dba-VB] C#: Validate e-mail address Message-ID: Hi all I needed to validate the format of user entered e-mail addresses and couldn't find a good method, except some RegEx at Microsoft. So I had to run my own, but wonder if anything better exists. MailAddress is used for first level validation as this later will be used to create the e-mails: using System.Net.Mail; private static bool IsMailAddress(string address, out string cleanedAddress) { cleanedAddress = String.Empty; try { MailAddress mailAddress = new MailAddress(address.Trim()); // MailAddress validated the address. // However, even one char only for Host will be accepted. // Extract user and host for further validation. bool isAddress = false; string displayName = mailAddress.DisplayName; // Strip internal spaces from user and host string. string user = mailAddress.User.Replace(" ", String.Empty); string host = mailAddress.Host.Replace(" ", String.Empty); // Build basic mail address. string baseAddress = (user + "@" + host).ToLower(); // Check that Host contains a domain too. // Expanding on the method described here: http://support.microsoft.com/kb/308252 System.Text.RegularExpressions.Regex mailRegex = new System.Text.RegularExpressions.Regex("(?[^@]+)@(?[^.]+).(?[^.]+)."); System.Text.RegularExpressions.Match match = mailRegex.Match(baseAddress); Console.WriteLine( match.Groups["user"].Value.ToString() + "@" + match.Groups["host"].Value.ToString() + "." + match.Groups["domain"].Value.ToString()); isAddress = match.Success; if (isAddress) { // Return formatted email address. if (displayName.Length == 0) { // Basic mail address only. cleanedAddress = baseAddress; } else { // Full address including Display Name. cleanedAddress = @"""" + displayName + @""" <" + baseAddress + @">"; } } return isAddress; } catch { return false; } } The trick is that MailAddress is somewhat flexible regarding accepted strings and will _clean_ these, thus you very easily can return the cleaned string. Of course, you can turn this into a small class if you like. Here's a basic method to use it with the ErrorProvider when validating a TextBox: private void textBoxEmailAddress_Validating(object sender, CancelEventArgs e) { TextBox textBox = (TextBox)sender; string errorDescription = String.Empty; string cleanedAddress = String.Empty; string address = textBox.Text; if (textBox.Text.Equals(String.Empty)) { errorDescription = "Please enter an e-mail address"; } else if (!IsMailAddress(address, out cleanedAddress)) { errorDescription = "The format of the address is not correct"; } else { if (!cleanedAddress.Equals(address)) { textBox.Text = cleanedAddress; } } errorProvider1.SetError(textBox, errorDescription); } /gustav From Gustav at cactus.dk Mon Aug 11 04:55:29 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 11 Aug 2008 11:55:29 +0200 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Message-ID: Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav From Gustav at cactus.dk Mon Aug 11 05:04:16 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 11 Aug 2008 12:04:16 +0200 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Message-ID: Oops. From another source: SP1 does not include ASP.NET MVC Framework but only one basic element for ASP.NET MVC: Routing. Routing allows for nice URLs in traditional ASP.NET WebForm applications as well as ASP.NET MVC when this will be released later this year. /gustav >>> Gustav at cactus.dk 11-08-2008 11:55 >>> Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav From shamil at smsconsulting.spb.ru Mon Aug 11 15:23:05 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 12 Aug 2008 00:23:05 +0400 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? In-Reply-To: Message-ID: <001801c8fbf0$11e19b60$6401a8c0@nant> Hi Gustav, I looked at MVC for ASP.NET and I decided for myself to avoid using it. When I will see/hear that somebody here uses it I might change my current decision... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, August 11, 2008 1:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Aug 16 16:48:44 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 16 Aug 2008 17:48:44 -0400 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? References: Message-ID: http://www.asp.net/mvc/ ...something else for my "to do" list ...current priority is zip :( William -------------------------------------------------- From: "Gustav Brock" Sent: Monday, August 11, 2008 5:55 AM To: Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? > Hi all > > Did you notice this: > > http://www.sdtimes.com/content/article.aspx?ArticleID=32687 > > and the link inside (near bottom) to the previous story. > > Now, to me the big question is: What is this MVC (Model-View-Controller) > pattern for ASP.NET? > Does it represent a new steep learning curve? > > /gustav > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Sun Aug 17 10:13:52 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 17 Aug 2008 17:13:52 +0200 Subject: [dba-VB] C#, mantissa, math fun Message-ID: Hi all Delphi people know this as Fract, the decimal part of a decimal number. C# does not contain a direct method to extract that, so I thought of some smart math way to do so as I try too to avoid number handling by string conversion as it often turns into some "dirty" operation. By second thought you - as a human - easily can extract the mantissa but you do that by looking at the full number as a string. So why not ask the machine to do the same - and simple string handling is actually extremely fast for small strings like here, while raising a number to the power of something (which is a math method) is slower. So, inspired by this link: http://bytes.com/forum/thread563673.html I found this simple one-liner which handles both negative and positive numbers: double number = -1234.56789; int mantissa = Convert.ToInt32((Math.Abs((decimal)number) % 1).ToString().Substring(2)); mantissa -> 56789 Of course, if you expect to use it a lot, wrap it into a utility class. Still, I wonder if some clever byte manipulation method would exist. /gustav From djkr at msn.com Mon Aug 18 03:49:36 2008 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 18 Aug 2008 09:49:36 +0100 Subject: [dba-VB] FortiGuard? In-Reply-To: Message-ID: Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John From accessd at shaw.ca Mon Aug 18 12:52:56 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Aug 2008 10:52:56 -0700 Subject: [dba-VB] FortiGuard? In-Reply-To: References: Message-ID: Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From djkr at msn.com Mon Aug 18 13:16:05 2008 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 18 Aug 2008 19:16:05 +0100 Subject: [dba-VB] FortiGuard? In-Reply-To: Message-ID: Thanks, Jim, especially since I posted in the wrong forum. A nasty zombie of your client's! But I think in this case it may have been the 500-year-old flesh-colored cobbles in yesterday's picture... And FortiGuard have re-categorized the site now. John -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 18 August 2008 18:53 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Mon Aug 18 14:52:23 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Aug 2008 12:52:23 -0700 Subject: [dba-VB] FortiGuard? In-Reply-To: References: Message-ID: <78EB589C8994444E90651EBB9511C449@creativesystemdesigns.com> Ha ha ha.... what can I say... reading fast, writing faster. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 11:16 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Thanks, Jim, especially since I posted in the wrong forum. A nasty zombie of your client's! But I think in this case it may have been the 500-year-old flesh-colored cobbles in yesterday's picture... And FortiGuard have re-categorized the site now. John -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 18 August 2008 18:53 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Aug 22 11:26:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Aug 2008 18:26:33 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From michael at ddisolutions.com.au Sat Aug 23 00:38:09 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 23 Aug 2008 15:38:09 +1000 Subject: [dba-VB] C#: When to Dispose References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF08@ddi-01.DDI.local> Hi Gustav, I rarely explicitly Dispose. I was aware that certain objects do require Disposing such as some Streams and some database objects. These days I use Using 'C#' not sure what the VB equivalent is. Browsing the article he makes it pretty clear that Dispose is mainly used for unmanaged objects, so in your example if you are using an unmanaged library then you should probably Dispose it. If you are writing an API that uses unmanaged objects then as the developer you should implement the IDispose Interface. If your app is leaking memory then you may be missing Dispose calls. cheers Michael M Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.6/1626 - Release Date: 8/21/2008 6:54 PM From Gustav at cactus.dk Sat Aug 23 03:25:34 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 23 Aug 2008 10:25:34 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Michael Thanks. I'll continue to follow those guidelines, indeed as I don't use any unmanaged libraries. /gustav >>> michael at ddisolutions.com.au 23-08-2008 07:38 >>> Hi Gustav, I rarely explicitly Dispose. I was aware that certain objects do require Disposing such as some Streams and some database objects. These days I use Using 'C#' not sure what the VB equivalent is. Browsing the article he makes it pretty clear that Dispose is mainly used for unmanaged objects, so in your example if you are using an unmanaged library then you should probably Dispose it. If you are writing an API that uses unmanaged objects then as the developer you should implement the IDispose Interface. If your app is leaking memory then you may be missing Dispose calls. cheers Michael M Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From michael at ddisolutions.com.au Sun Aug 24 18:39:42 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 25 Aug 2008 09:39:42 +1000 Subject: [dba-VB] Dev PC with Raid? References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local> Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M From DWUTKA at Marlow.com Sun Aug 24 19:43:16 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 24 Aug 2008 19:43:16 -0500 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local> Message-ID: I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From bill_patten at embarqmail.com Sun Aug 24 20:06:40 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Sun, 24 Aug 2008 18:06:40 -0700 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: References: Message-ID: <231A64CBB0AC49BBA9EEA405BE8F8B5F@BPCS> I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Aug 24 20:10:51 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 25 Aug 2008 11:10:51 +1000 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local>, Message-ID: <48B2069B.25512.43478540@stuart.lexacorp.com.pg> Raid 0 is "Striped" - Raid 1 is "Mirrored" Raid 0 doesn't give you any redundacy, it just improves access times. Raid 5 requires a minimum of 3 disks Raid 10 requires a minimum of 4 disks I agree with Drew - go with Mirrored (ie Raid 1) You can see the pros/cons of each Raid version and some nice action graphics at http://www.acnc.com/04_01_00.html On 24 Aug 2008 at 19:43, Drew Wutka wrote: > I would recommend going with a raid 0. It's a mirror, and you will lose > half of your space capacity (essentially you'll only have 1 500 gig > drive, instead of 2), but it'll run just fine, speed wise, in fact, > reading will go twice as fast, and you have the reliability of losing > either drive and the other will pick up live! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Sunday, August 24, 2008 6:40 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Dev PC with Raid? > > Hi Guys, > > Just got my new bits to build a new dev workstation. :-))) > > I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + > 10. I've never used raid on > a workstation before. I have a 1TB usb drive I use for backups already. > I have all my dev stuff including a lot of data fitting into about 200 > GB now. > > Any opinions? > > cheers > > Michael M > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Stuart Mclachlan From DWUTKA at Marlow.com Sun Aug 24 20:31:04 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 24 Aug 2008 20:31:04 -0500 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: <231A64CBB0AC49BBA9EEA405BE8F8B5F@BPCS> Message-ID: Ooops.... you're right, 1 is a mirror, and 0 is a stripe...my bad.... Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Sunday, August 24, 2008 8:07 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From michael at ddisolutions.com.au Mon Aug 25 00:38:27 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 25 Aug 2008 15:38:27 +1000 Subject: [dba-VB] Dev PC with Raid? References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> Thanks, I must suck... Need to have a floppy to install drivers with XP! So I borrowed 1 from an old box and followed the instructions, must have done something wrong as I tried 3 time but all I get is a BSOD during Windows install. Remove the RAID option from the bios and installation goes fine... Maybe next time... cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, 25 August 2008 11:31 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? Ooops.... you're right, 1 is a mirror, and 0 is a stripe...my bad.... Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Sunday, August 24, 2008 8:07 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.7/1631 - Release Date: 8/24/2008 12:15 PM From cfoust at infostatsystems.com Mon Aug 25 18:15:39 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Aug 2008 16:15:39 -0700 Subject: [dba-VB] C#: When to Dispose In-Reply-To: References: Message-ID: It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Mon Aug 25 20:34:01 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 11:34:01 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M From bill_patten at embarqmail.com Mon Aug 25 21:37:37 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 25 Aug 2008 19:37:37 -0700 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Message-ID: <4A8910858CA74E47B3A12A3D58A03F90@BPCS> Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Mon Aug 25 23:14:57 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 14:14:57 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> <4A8910858CA74E47B3A12A3D58A03F90@BPCS> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM From shamil at smsconsulting.spb.ru Tue Aug 26 00:35:48 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 26 Aug 2008 09:35:48 +0400 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Message-ID: <001001c9073d$9977bb10$6401a8c0@nant> Michael, I have Vista Ultimate edition on my notebook and I have VS2005 and VS2008 installed on it as well as VB6 and MS Office 2007... I have done VB6 and VS2005 development on it and it worked well, activeX dlls get registered etc. Maybe you have issues you mentioned because of Vista running as a Virtiual PC? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Tuesday, August 26, 2008 5:34 AM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bill_patten at embarqmail.com Tue Aug 26 01:00:06 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 25 Aug 2008 23:00:06 -0700 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local><4A8910858CA74E47B3A12A3D58A03F90@BPCS> <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> Message-ID: <98E7C22C36F644C1BB94A0C0F65E756F@BPCS> I really only have a few projects in each type so certainly not qualified to say no problem, but so far all the problems were because I didn't know what I was doing. You do not need special versions for 64 bit. I haven't written any AX's so can't help you there but I have not had any problems installing those provided by others. If it was awhile ago perhaps you were running into permission issues. I do every thing run as admin and everything seems to install ok. I have done some testing in a Vista 32 in a Virtual PC , mostly so I am able to see what my friends an clients see with threes and that seems to run fine as well, though It does not allow USB (except for the mouse and perhaps keyboard.) Sorry I can't be of more help, but in my opinion Vista is not what caused your problem, excluding the permissions thing. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 9:14 PM Subject: Re: [dba-VB] Dev PC OS Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Tue Aug 26 02:30:00 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 17:30:00 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local><4A8910858CA74E47B3A12A3D58A03F90@BPCS><59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> <98E7C22C36F644C1BB94A0C0F65E756F@BPCS> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF26@ddi-01.DDI.local> Thanks all, I'm installing Vista64 now. If I run into problem I'll either run virtual XP or keep a machine loaded with my legacy bits. cheers Michael M I really only have a few projects in each type so certainly not qualified to say no problem, but so far all the problems were because I didn't know what I was doing. You do not need special versions for 64 bit. I haven't written any AX's so can't help you there but I have not had any problems installing those provided by others. If it was awhile ago perhaps you were running into permission issues. I do every thing run as admin and everything seems to install ok. I have done some testing in a Vista 32 in a Virtual PC , mostly so I am able to see what my friends an clients see with threes and that seems to run fine as well, though It does not allow USB (except for the mouse and perhaps keyboard.) Sorry I can't be of more help, but in my opinion Vista is not what caused your problem, excluding the permissions thing. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 9:14 PM Subject: Re: [dba-VB] Dev PC OS Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM From Gustav at cactus.dk Wed Aug 27 02:41:56 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 27 Aug 2008 09:41:56 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From Gustav at cactus.dk Thu Aug 28 03:08:00 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 28 Aug 2008 10:08:00 +0200 Subject: [dba-VB] MDI Winforms, no keyboard copy, cut or paste Message-ID: Hi all It took me some research to figure this out ... Should you ever wonder why you have "lost" the keyboard shortcuts for copy and paste in your child forms while the popup menu still offer that functionality, the reason is that the standard MDI form has "hijacked" the shortcuts for its own menu line: http://forums.msdn.microsoft.com/en-US/csharpgeneral/thread/59a54884-d987-4a39-b9ab-97d3d9f3acf8/ /gustav From cfoust at infostatsystems.com Thu Aug 28 19:03:15 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 28 Aug 2008 17:03:15 -0700 Subject: [dba-VB] C#: When to Dispose In-Reply-To: References: Message-ID: That's the way I understand it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, August 27, 2008 12:42 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C#: When to Dispose Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Aug 29 04:46:23 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Aug 2008 11:46:23 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Charlotte And, as I noticed the other day, if you look up the .designer.cs code for any form created from the VS template, this is found (probably similar for VB.NET) which may tell the form to clean up its components: /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } So no magic, just handcraft. /gustav >>> cfoust at infostatsystems.com 29-08-2008 02:03 >>> That's the way I understand it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, August 27, 2008 12:42 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C#: When to Dispose Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From Gustav at cactus.dk Sat Aug 30 05:10:04 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 30 Aug 2008 12:10:04 +0200 Subject: [dba-VB] C#, mantissa, math fun Message-ID: Hi all (blush) ... if no decimals exist (number is an integer) that one-liner will fail. So check for zero decimals: double number = -1234.56789; int mantissa = 0; decimal fraction = (decimal)number % 1; if (fraction != 0) { mantissa = Convert.ToInt32(Math.Abs(fraction).ToString().Substring(2)); } /gustav >>> Gustav at cactus.dk 17-08-2008 17:13 >>> Hi all Delphi people know this as Fract, the decimal part of a decimal number. C# does not contain a direct method to extract that, so I thought of some smart math way to do so as I try too to avoid number handling by string conversion as it often turns into some "dirty" operation. By second thought you - as a human - easily can extract the mantissa but you do that by looking at the full number as a string. So why not ask the machine to do the same - and simple string handling is actually extremely fast for small strings like here, while raising a number to the power of something (which is a math method) is slower. So, inspired by this link: http://bytes.com/forum/thread563673.html I found this simple one-liner which handles both negative and positive numbers: double number = -1234.56789; int mantissa = Convert.ToInt32((Math.Abs((decimal)number) % 1).ToString().Substring(2)); mantissa -> 56789 Of course, if you expect to use it a lot, wrap it into a utility class. Still, I wonder if some clever byte manipulation method would exist. /gustav From dwaters at usinternet.com Tue Aug 5 20:36:58 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 5 Aug 2008 20:36:58 -0500 Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) Message-ID: I want to get a book on VS 2008 and a book on VB 2008. I am new to both, with significant Access experience. Does anyone have recommendations for or against? Thanks! Dan From dw-murphy at cox.net Wed Aug 6 13:50:47 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 6 Aug 2008 11:50:47 -0700 Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) In-Reply-To: References: Message-ID: <005a01c8f7f5$56a80800$0200a8c0@murphy3234aaf1> Hi Dan, I have found Murach's Visual Basic 2008 to be a good intro. I was at a Dot Net Developers Group meeting last night and won a copy of Deborah Kurata's "Doing Objects in Visual Basic 2005". I just skimmed through it and I look like a great resource for someone coming from a VB or VBA background. I have Deborah's "Doing Objects in VB6" which was a great book for VB developers 10 years ago. Her latest book is one version of Visual Studio behind but the concepts have not changed. As a side comment it is interesting to contrast the interest in Dot net development and Access development. I attend both user's groups meetings. There is a lot of energy and interest by head hunters at the Dot net meetings. Our Access Users Group hasn't seen a head hunter for quite some time. Have fun. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, August 05, 2008 6:37 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) I want to get a book on VS 2008 and a book on VB 2008. I am new to both, with significant Access experience. Does anyone have recommendations for or against? Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Sat Aug 9 11:54:46 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 09 Aug 2008 18:54:46 +0200 Subject: [dba-VB] C#: Validate e-mail address Message-ID: Hi all I needed to validate the format of user entered e-mail addresses and couldn't find a good method, except some RegEx at Microsoft. So I had to run my own, but wonder if anything better exists. MailAddress is used for first level validation as this later will be used to create the e-mails: using System.Net.Mail; private static bool IsMailAddress(string address, out string cleanedAddress) { cleanedAddress = String.Empty; try { MailAddress mailAddress = new MailAddress(address.Trim()); // MailAddress validated the address. // However, even one char only for Host will be accepted. // Extract user and host for further validation. bool isAddress = false; string displayName = mailAddress.DisplayName; // Strip internal spaces from user and host string. string user = mailAddress.User.Replace(" ", String.Empty); string host = mailAddress.Host.Replace(" ", String.Empty); // Build basic mail address. string baseAddress = (user + "@" + host).ToLower(); // Check that Host contains a domain too. // Expanding on the method described here: http://support.microsoft.com/kb/308252 System.Text.RegularExpressions.Regex mailRegex = new System.Text.RegularExpressions.Regex("(?[^@]+)@(?[^.]+).(?[^.]+)."); System.Text.RegularExpressions.Match match = mailRegex.Match(baseAddress); Console.WriteLine( match.Groups["user"].Value.ToString() + "@" + match.Groups["host"].Value.ToString() + "." + match.Groups["domain"].Value.ToString()); isAddress = match.Success; if (isAddress) { // Return formatted email address. if (displayName.Length == 0) { // Basic mail address only. cleanedAddress = baseAddress; } else { // Full address including Display Name. cleanedAddress = @"""" + displayName + @""" <" + baseAddress + @">"; } } return isAddress; } catch { return false; } } The trick is that MailAddress is somewhat flexible regarding accepted strings and will _clean_ these, thus you very easily can return the cleaned string. Of course, you can turn this into a small class if you like. Here's a basic method to use it with the ErrorProvider when validating a TextBox: private void textBoxEmailAddress_Validating(object sender, CancelEventArgs e) { TextBox textBox = (TextBox)sender; string errorDescription = String.Empty; string cleanedAddress = String.Empty; string address = textBox.Text; if (textBox.Text.Equals(String.Empty)) { errorDescription = "Please enter an e-mail address"; } else if (!IsMailAddress(address, out cleanedAddress)) { errorDescription = "The format of the address is not correct"; } else { if (!cleanedAddress.Equals(address)) { textBox.Text = cleanedAddress; } } errorProvider1.SetError(textBox, errorDescription); } /gustav From Gustav at cactus.dk Mon Aug 11 04:55:29 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 11 Aug 2008 11:55:29 +0200 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Message-ID: Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav From Gustav at cactus.dk Mon Aug 11 05:04:16 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 11 Aug 2008 12:04:16 +0200 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Message-ID: Oops. From another source: SP1 does not include ASP.NET MVC Framework but only one basic element for ASP.NET MVC: Routing. Routing allows for nice URLs in traditional ASP.NET WebForm applications as well as ASP.NET MVC when this will be released later this year. /gustav >>> Gustav at cactus.dk 11-08-2008 11:55 >>> Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav From shamil at smsconsulting.spb.ru Mon Aug 11 15:23:05 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 12 Aug 2008 00:23:05 +0400 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? In-Reply-To: Message-ID: <001801c8fbf0$11e19b60$6401a8c0@nant> Hi Gustav, I looked at MVC for ASP.NET and I decided for myself to avoid using it. When I will see/hear that somebody here uses it I might change my current decision... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, August 11, 2008 1:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Aug 16 16:48:44 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 16 Aug 2008 17:48:44 -0400 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? References: Message-ID: http://www.asp.net/mvc/ ...something else for my "to do" list ...current priority is zip :( William -------------------------------------------------- From: "Gustav Brock" Sent: Monday, August 11, 2008 5:55 AM To: Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? > Hi all > > Did you notice this: > > http://www.sdtimes.com/content/article.aspx?ArticleID=32687 > > and the link inside (near bottom) to the previous story. > > Now, to me the big question is: What is this MVC (Model-View-Controller) > pattern for ASP.NET? > Does it represent a new steep learning curve? > > /gustav > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Sun Aug 17 10:13:52 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 17 Aug 2008 17:13:52 +0200 Subject: [dba-VB] C#, mantissa, math fun Message-ID: Hi all Delphi people know this as Fract, the decimal part of a decimal number. C# does not contain a direct method to extract that, so I thought of some smart math way to do so as I try too to avoid number handling by string conversion as it often turns into some "dirty" operation. By second thought you - as a human - easily can extract the mantissa but you do that by looking at the full number as a string. So why not ask the machine to do the same - and simple string handling is actually extremely fast for small strings like here, while raising a number to the power of something (which is a math method) is slower. So, inspired by this link: http://bytes.com/forum/thread563673.html I found this simple one-liner which handles both negative and positive numbers: double number = -1234.56789; int mantissa = Convert.ToInt32((Math.Abs((decimal)number) % 1).ToString().Substring(2)); mantissa -> 56789 Of course, if you expect to use it a lot, wrap it into a utility class. Still, I wonder if some clever byte manipulation method would exist. /gustav From djkr at msn.com Mon Aug 18 03:49:36 2008 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 18 Aug 2008 09:49:36 +0100 Subject: [dba-VB] FortiGuard? In-Reply-To: Message-ID: Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John From accessd at shaw.ca Mon Aug 18 12:52:56 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Aug 2008 10:52:56 -0700 Subject: [dba-VB] FortiGuard? In-Reply-To: References: Message-ID: Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From djkr at msn.com Mon Aug 18 13:16:05 2008 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 18 Aug 2008 19:16:05 +0100 Subject: [dba-VB] FortiGuard? In-Reply-To: Message-ID: Thanks, Jim, especially since I posted in the wrong forum. A nasty zombie of your client's! But I think in this case it may have been the 500-year-old flesh-colored cobbles in yesterday's picture... And FortiGuard have re-categorized the site now. John -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 18 August 2008 18:53 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Mon Aug 18 14:52:23 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Aug 2008 12:52:23 -0700 Subject: [dba-VB] FortiGuard? In-Reply-To: References: Message-ID: <78EB589C8994444E90651EBB9511C449@creativesystemdesigns.com> Ha ha ha.... what can I say... reading fast, writing faster. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 11:16 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Thanks, Jim, especially since I posted in the wrong forum. A nasty zombie of your client's! But I think in this case it may have been the 500-year-old flesh-colored cobbles in yesterday's picture... And FortiGuard have re-categorized the site now. John -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 18 August 2008 18:53 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Aug 22 11:26:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Aug 2008 18:26:33 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From michael at ddisolutions.com.au Sat Aug 23 00:38:09 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 23 Aug 2008 15:38:09 +1000 Subject: [dba-VB] C#: When to Dispose References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF08@ddi-01.DDI.local> Hi Gustav, I rarely explicitly Dispose. I was aware that certain objects do require Disposing such as some Streams and some database objects. These days I use Using 'C#' not sure what the VB equivalent is. Browsing the article he makes it pretty clear that Dispose is mainly used for unmanaged objects, so in your example if you are using an unmanaged library then you should probably Dispose it. If you are writing an API that uses unmanaged objects then as the developer you should implement the IDispose Interface. If your app is leaking memory then you may be missing Dispose calls. cheers Michael M Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.6/1626 - Release Date: 8/21/2008 6:54 PM From Gustav at cactus.dk Sat Aug 23 03:25:34 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 23 Aug 2008 10:25:34 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Michael Thanks. I'll continue to follow those guidelines, indeed as I don't use any unmanaged libraries. /gustav >>> michael at ddisolutions.com.au 23-08-2008 07:38 >>> Hi Gustav, I rarely explicitly Dispose. I was aware that certain objects do require Disposing such as some Streams and some database objects. These days I use Using 'C#' not sure what the VB equivalent is. Browsing the article he makes it pretty clear that Dispose is mainly used for unmanaged objects, so in your example if you are using an unmanaged library then you should probably Dispose it. If you are writing an API that uses unmanaged objects then as the developer you should implement the IDispose Interface. If your app is leaking memory then you may be missing Dispose calls. cheers Michael M Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From michael at ddisolutions.com.au Sun Aug 24 18:39:42 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 25 Aug 2008 09:39:42 +1000 Subject: [dba-VB] Dev PC with Raid? References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local> Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M From DWUTKA at Marlow.com Sun Aug 24 19:43:16 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 24 Aug 2008 19:43:16 -0500 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local> Message-ID: I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From bill_patten at embarqmail.com Sun Aug 24 20:06:40 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Sun, 24 Aug 2008 18:06:40 -0700 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: References: Message-ID: <231A64CBB0AC49BBA9EEA405BE8F8B5F@BPCS> I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Aug 24 20:10:51 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 25 Aug 2008 11:10:51 +1000 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local>, Message-ID: <48B2069B.25512.43478540@stuart.lexacorp.com.pg> Raid 0 is "Striped" - Raid 1 is "Mirrored" Raid 0 doesn't give you any redundacy, it just improves access times. Raid 5 requires a minimum of 3 disks Raid 10 requires a minimum of 4 disks I agree with Drew - go with Mirrored (ie Raid 1) You can see the pros/cons of each Raid version and some nice action graphics at http://www.acnc.com/04_01_00.html On 24 Aug 2008 at 19:43, Drew Wutka wrote: > I would recommend going with a raid 0. It's a mirror, and you will lose > half of your space capacity (essentially you'll only have 1 500 gig > drive, instead of 2), but it'll run just fine, speed wise, in fact, > reading will go twice as fast, and you have the reliability of losing > either drive and the other will pick up live! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Sunday, August 24, 2008 6:40 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Dev PC with Raid? > > Hi Guys, > > Just got my new bits to build a new dev workstation. :-))) > > I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + > 10. I've never used raid on > a workstation before. I have a 1TB usb drive I use for backups already. > I have all my dev stuff including a lot of data fitting into about 200 > GB now. > > Any opinions? > > cheers > > Michael M > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Stuart Mclachlan From DWUTKA at Marlow.com Sun Aug 24 20:31:04 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 24 Aug 2008 20:31:04 -0500 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: <231A64CBB0AC49BBA9EEA405BE8F8B5F@BPCS> Message-ID: Ooops.... you're right, 1 is a mirror, and 0 is a stripe...my bad.... Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Sunday, August 24, 2008 8:07 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From michael at ddisolutions.com.au Mon Aug 25 00:38:27 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 25 Aug 2008 15:38:27 +1000 Subject: [dba-VB] Dev PC with Raid? References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> Thanks, I must suck... Need to have a floppy to install drivers with XP! So I borrowed 1 from an old box and followed the instructions, must have done something wrong as I tried 3 time but all I get is a BSOD during Windows install. Remove the RAID option from the bios and installation goes fine... Maybe next time... cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, 25 August 2008 11:31 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? Ooops.... you're right, 1 is a mirror, and 0 is a stripe...my bad.... Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Sunday, August 24, 2008 8:07 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.7/1631 - Release Date: 8/24/2008 12:15 PM From cfoust at infostatsystems.com Mon Aug 25 18:15:39 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Aug 2008 16:15:39 -0700 Subject: [dba-VB] C#: When to Dispose In-Reply-To: References: Message-ID: It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Mon Aug 25 20:34:01 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 11:34:01 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M From bill_patten at embarqmail.com Mon Aug 25 21:37:37 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 25 Aug 2008 19:37:37 -0700 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Message-ID: <4A8910858CA74E47B3A12A3D58A03F90@BPCS> Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Mon Aug 25 23:14:57 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 14:14:57 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> <4A8910858CA74E47B3A12A3D58A03F90@BPCS> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM From shamil at smsconsulting.spb.ru Tue Aug 26 00:35:48 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 26 Aug 2008 09:35:48 +0400 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Message-ID: <001001c9073d$9977bb10$6401a8c0@nant> Michael, I have Vista Ultimate edition on my notebook and I have VS2005 and VS2008 installed on it as well as VB6 and MS Office 2007... I have done VB6 and VS2005 development on it and it worked well, activeX dlls get registered etc. Maybe you have issues you mentioned because of Vista running as a Virtiual PC? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Tuesday, August 26, 2008 5:34 AM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bill_patten at embarqmail.com Tue Aug 26 01:00:06 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 25 Aug 2008 23:00:06 -0700 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local><4A8910858CA74E47B3A12A3D58A03F90@BPCS> <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> Message-ID: <98E7C22C36F644C1BB94A0C0F65E756F@BPCS> I really only have a few projects in each type so certainly not qualified to say no problem, but so far all the problems were because I didn't know what I was doing. You do not need special versions for 64 bit. I haven't written any AX's so can't help you there but I have not had any problems installing those provided by others. If it was awhile ago perhaps you were running into permission issues. I do every thing run as admin and everything seems to install ok. I have done some testing in a Vista 32 in a Virtual PC , mostly so I am able to see what my friends an clients see with threes and that seems to run fine as well, though It does not allow USB (except for the mouse and perhaps keyboard.) Sorry I can't be of more help, but in my opinion Vista is not what caused your problem, excluding the permissions thing. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 9:14 PM Subject: Re: [dba-VB] Dev PC OS Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Tue Aug 26 02:30:00 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 17:30:00 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local><4A8910858CA74E47B3A12A3D58A03F90@BPCS><59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> <98E7C22C36F644C1BB94A0C0F65E756F@BPCS> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF26@ddi-01.DDI.local> Thanks all, I'm installing Vista64 now. If I run into problem I'll either run virtual XP or keep a machine loaded with my legacy bits. cheers Michael M I really only have a few projects in each type so certainly not qualified to say no problem, but so far all the problems were because I didn't know what I was doing. You do not need special versions for 64 bit. I haven't written any AX's so can't help you there but I have not had any problems installing those provided by others. If it was awhile ago perhaps you were running into permission issues. I do every thing run as admin and everything seems to install ok. I have done some testing in a Vista 32 in a Virtual PC , mostly so I am able to see what my friends an clients see with threes and that seems to run fine as well, though It does not allow USB (except for the mouse and perhaps keyboard.) Sorry I can't be of more help, but in my opinion Vista is not what caused your problem, excluding the permissions thing. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 9:14 PM Subject: Re: [dba-VB] Dev PC OS Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM From Gustav at cactus.dk Wed Aug 27 02:41:56 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 27 Aug 2008 09:41:56 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From Gustav at cactus.dk Thu Aug 28 03:08:00 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 28 Aug 2008 10:08:00 +0200 Subject: [dba-VB] MDI Winforms, no keyboard copy, cut or paste Message-ID: Hi all It took me some research to figure this out ... Should you ever wonder why you have "lost" the keyboard shortcuts for copy and paste in your child forms while the popup menu still offer that functionality, the reason is that the standard MDI form has "hijacked" the shortcuts for its own menu line: http://forums.msdn.microsoft.com/en-US/csharpgeneral/thread/59a54884-d987-4a39-b9ab-97d3d9f3acf8/ /gustav From cfoust at infostatsystems.com Thu Aug 28 19:03:15 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 28 Aug 2008 17:03:15 -0700 Subject: [dba-VB] C#: When to Dispose In-Reply-To: References: Message-ID: That's the way I understand it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, August 27, 2008 12:42 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C#: When to Dispose Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Aug 29 04:46:23 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Aug 2008 11:46:23 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Charlotte And, as I noticed the other day, if you look up the .designer.cs code for any form created from the VS template, this is found (probably similar for VB.NET) which may tell the form to clean up its components: /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } So no magic, just handcraft. /gustav >>> cfoust at infostatsystems.com 29-08-2008 02:03 >>> That's the way I understand it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, August 27, 2008 12:42 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C#: When to Dispose Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From Gustav at cactus.dk Sat Aug 30 05:10:04 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 30 Aug 2008 12:10:04 +0200 Subject: [dba-VB] C#, mantissa, math fun Message-ID: Hi all (blush) ... if no decimals exist (number is an integer) that one-liner will fail. So check for zero decimals: double number = -1234.56789; int mantissa = 0; decimal fraction = (decimal)number % 1; if (fraction != 0) { mantissa = Convert.ToInt32(Math.Abs(fraction).ToString().Substring(2)); } /gustav >>> Gustav at cactus.dk 17-08-2008 17:13 >>> Hi all Delphi people know this as Fract, the decimal part of a decimal number. C# does not contain a direct method to extract that, so I thought of some smart math way to do so as I try too to avoid number handling by string conversion as it often turns into some "dirty" operation. By second thought you - as a human - easily can extract the mantissa but you do that by looking at the full number as a string. So why not ask the machine to do the same - and simple string handling is actually extremely fast for small strings like here, while raising a number to the power of something (which is a math method) is slower. So, inspired by this link: http://bytes.com/forum/thread563673.html I found this simple one-liner which handles both negative and positive numbers: double number = -1234.56789; int mantissa = Convert.ToInt32((Math.Abs((decimal)number) % 1).ToString().Substring(2)); mantissa -> 56789 Of course, if you expect to use it a lot, wrap it into a utility class. Still, I wonder if some clever byte manipulation method would exist. /gustav From dwaters at usinternet.com Tue Aug 5 20:36:58 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 5 Aug 2008 20:36:58 -0500 Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) Message-ID: I want to get a book on VS 2008 and a book on VB 2008. I am new to both, with significant Access experience. Does anyone have recommendations for or against? Thanks! Dan From dw-murphy at cox.net Wed Aug 6 13:50:47 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 6 Aug 2008 11:50:47 -0700 Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) In-Reply-To: References: Message-ID: <005a01c8f7f5$56a80800$0200a8c0@murphy3234aaf1> Hi Dan, I have found Murach's Visual Basic 2008 to be a good intro. I was at a Dot Net Developers Group meeting last night and won a copy of Deborah Kurata's "Doing Objects in Visual Basic 2005". I just skimmed through it and I look like a great resource for someone coming from a VB or VBA background. I have Deborah's "Doing Objects in VB6" which was a great book for VB developers 10 years ago. Her latest book is one version of Visual Studio behind but the concepts have not changed. As a side comment it is interesting to contrast the interest in Dot net development and Access development. I attend both user's groups meetings. There is a lot of energy and interest by head hunters at the Dot net meetings. Our Access Users Group hasn't seen a head hunter for quite some time. Have fun. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, August 05, 2008 6:37 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] Book Recommendation? (Cross-Posted VB + Access) I want to get a book on VS 2008 and a book on VB 2008. I am new to both, with significant Access experience. Does anyone have recommendations for or against? Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Sat Aug 9 11:54:46 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 09 Aug 2008 18:54:46 +0200 Subject: [dba-VB] C#: Validate e-mail address Message-ID: Hi all I needed to validate the format of user entered e-mail addresses and couldn't find a good method, except some RegEx at Microsoft. So I had to run my own, but wonder if anything better exists. MailAddress is used for first level validation as this later will be used to create the e-mails: using System.Net.Mail; private static bool IsMailAddress(string address, out string cleanedAddress) { cleanedAddress = String.Empty; try { MailAddress mailAddress = new MailAddress(address.Trim()); // MailAddress validated the address. // However, even one char only for Host will be accepted. // Extract user and host for further validation. bool isAddress = false; string displayName = mailAddress.DisplayName; // Strip internal spaces from user and host string. string user = mailAddress.User.Replace(" ", String.Empty); string host = mailAddress.Host.Replace(" ", String.Empty); // Build basic mail address. string baseAddress = (user + "@" + host).ToLower(); // Check that Host contains a domain too. // Expanding on the method described here: http://support.microsoft.com/kb/308252 System.Text.RegularExpressions.Regex mailRegex = new System.Text.RegularExpressions.Regex("(?[^@]+)@(?[^.]+).(?[^.]+)."); System.Text.RegularExpressions.Match match = mailRegex.Match(baseAddress); Console.WriteLine( match.Groups["user"].Value.ToString() + "@" + match.Groups["host"].Value.ToString() + "." + match.Groups["domain"].Value.ToString()); isAddress = match.Success; if (isAddress) { // Return formatted email address. if (displayName.Length == 0) { // Basic mail address only. cleanedAddress = baseAddress; } else { // Full address including Display Name. cleanedAddress = @"""" + displayName + @""" <" + baseAddress + @">"; } } return isAddress; } catch { return false; } } The trick is that MailAddress is somewhat flexible regarding accepted strings and will _clean_ these, thus you very easily can return the cleaned string. Of course, you can turn this into a small class if you like. Here's a basic method to use it with the ErrorProvider when validating a TextBox: private void textBoxEmailAddress_Validating(object sender, CancelEventArgs e) { TextBox textBox = (TextBox)sender; string errorDescription = String.Empty; string cleanedAddress = String.Empty; string address = textBox.Text; if (textBox.Text.Equals(String.Empty)) { errorDescription = "Please enter an e-mail address"; } else if (!IsMailAddress(address, out cleanedAddress)) { errorDescription = "The format of the address is not correct"; } else { if (!cleanedAddress.Equals(address)) { textBox.Text = cleanedAddress; } } errorProvider1.SetError(textBox, errorDescription); } /gustav From Gustav at cactus.dk Mon Aug 11 04:55:29 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 11 Aug 2008 11:55:29 +0200 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Message-ID: Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav From Gustav at cactus.dk Mon Aug 11 05:04:16 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 11 Aug 2008 12:04:16 +0200 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Message-ID: Oops. From another source: SP1 does not include ASP.NET MVC Framework but only one basic element for ASP.NET MVC: Routing. Routing allows for nice URLs in traditional ASP.NET WebForm applications as well as ASP.NET MVC when this will be released later this year. /gustav >>> Gustav at cactus.dk 11-08-2008 11:55 >>> Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav From shamil at smsconsulting.spb.ru Mon Aug 11 15:23:05 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 12 Aug 2008 00:23:05 +0400 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? In-Reply-To: Message-ID: <001801c8fbf0$11e19b60$6401a8c0@nant> Hi Gustav, I looked at MVC for ASP.NET and I decided for myself to avoid using it. When I will see/hear that somebody here uses it I might change my current decision... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, August 11, 2008 1:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? Hi all Did you notice this: http://www.sdtimes.com/content/article.aspx?ArticleID=32687 and the link inside (near bottom) to the previous story. Now, to me the big question is: What is this MVC (Model-View-Controller) pattern for ASP.NET? Does it represent a new steep learning curve? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Aug 16 16:48:44 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 16 Aug 2008 17:48:44 -0400 Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? References: Message-ID: http://www.asp.net/mvc/ ...something else for my "to do" list ...current priority is zip :( William -------------------------------------------------- From: "Gustav Brock" Sent: Monday, August 11, 2008 5:55 AM To: Subject: [dba-VB] .NET 3.5 SP1 to ship this summer. MVC? > Hi all > > Did you notice this: > > http://www.sdtimes.com/content/article.aspx?ArticleID=32687 > > and the link inside (near bottom) to the previous story. > > Now, to me the big question is: What is this MVC (Model-View-Controller) > pattern for ASP.NET? > Does it represent a new steep learning curve? > > /gustav > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Sun Aug 17 10:13:52 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 17 Aug 2008 17:13:52 +0200 Subject: [dba-VB] C#, mantissa, math fun Message-ID: Hi all Delphi people know this as Fract, the decimal part of a decimal number. C# does not contain a direct method to extract that, so I thought of some smart math way to do so as I try too to avoid number handling by string conversion as it often turns into some "dirty" operation. By second thought you - as a human - easily can extract the mantissa but you do that by looking at the full number as a string. So why not ask the machine to do the same - and simple string handling is actually extremely fast for small strings like here, while raising a number to the power of something (which is a math method) is slower. So, inspired by this link: http://bytes.com/forum/thread563673.html I found this simple one-liner which handles both negative and positive numbers: double number = -1234.56789; int mantissa = Convert.ToInt32((Math.Abs((decimal)number) % 1).ToString().Substring(2)); mantissa -> 56789 Of course, if you expect to use it a lot, wrap it into a utility class. Still, I wonder if some clever byte manipulation method would exist. /gustav From djkr at msn.com Mon Aug 18 03:49:36 2008 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 18 Aug 2008 09:49:36 +0100 Subject: [dba-VB] FortiGuard? In-Reply-To: Message-ID: Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John From accessd at shaw.ca Mon Aug 18 12:52:56 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Aug 2008 10:52:56 -0700 Subject: [dba-VB] FortiGuard? In-Reply-To: References: Message-ID: Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From djkr at msn.com Mon Aug 18 13:16:05 2008 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 18 Aug 2008 19:16:05 +0100 Subject: [dba-VB] FortiGuard? In-Reply-To: Message-ID: Thanks, Jim, especially since I posted in the wrong forum. A nasty zombie of your client's! But I think in this case it may have been the 500-year-old flesh-colored cobbles in yesterday's picture... And FortiGuard have re-categorized the site now. John -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 18 August 2008 18:53 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Mon Aug 18 14:52:23 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Aug 2008 12:52:23 -0700 Subject: [dba-VB] FortiGuard? In-Reply-To: References: Message-ID: <78EB589C8994444E90651EBB9511C449@creativesystemdesigns.com> Ha ha ha.... what can I say... reading fast, writing faster. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 11:16 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Thanks, Jim, especially since I posted in the wrong forum. A nasty zombie of your client's! But I think in this case it may have been the 500-year-old flesh-colored cobbles in yesterday's picture... And FortiGuard have re-categorized the site now. John -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 18 August 2008 18:53 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] FortiGuard? Hi John: Some sites have got Black-listed because other sites have been spoofing their web addresses. There is also some other reasons. Had a client a few weeks back that had a very sophisticated Zombie embedded in their site that was used to re-direct, publish and pipeline remote spam through it. It was not until their ISP started blocking them did they become aware something was wrong. The program actually erased all related log data so nothing was alerting them before. We subsequently discovered that this is a very common practice. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Monday, August 18, 2008 1:50 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] FortiGuard? Do any of you use FortiGuard's web filtering service? With what results? I ask because they have classified this web site as Pornography: http://www.littlemoretonsingers.org.uk/ Go on, take a look, unless the occasional bare ankle offends you! But be quick - I've already complained, and they may re-classify it. John _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Aug 22 11:26:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Aug 2008 18:26:33 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From michael at ddisolutions.com.au Sat Aug 23 00:38:09 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 23 Aug 2008 15:38:09 +1000 Subject: [dba-VB] C#: When to Dispose References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF08@ddi-01.DDI.local> Hi Gustav, I rarely explicitly Dispose. I was aware that certain objects do require Disposing such as some Streams and some database objects. These days I use Using 'C#' not sure what the VB equivalent is. Browsing the article he makes it pretty clear that Dispose is mainly used for unmanaged objects, so in your example if you are using an unmanaged library then you should probably Dispose it. If you are writing an API that uses unmanaged objects then as the developer you should implement the IDispose Interface. If your app is leaking memory then you may be missing Dispose calls. cheers Michael M Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.6/1626 - Release Date: 8/21/2008 6:54 PM From Gustav at cactus.dk Sat Aug 23 03:25:34 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 23 Aug 2008 10:25:34 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Michael Thanks. I'll continue to follow those guidelines, indeed as I don't use any unmanaged libraries. /gustav >>> michael at ddisolutions.com.au 23-08-2008 07:38 >>> Hi Gustav, I rarely explicitly Dispose. I was aware that certain objects do require Disposing such as some Streams and some database objects. These days I use Using 'C#' not sure what the VB equivalent is. Browsing the article he makes it pretty clear that Dispose is mainly used for unmanaged objects, so in your example if you are using an unmanaged library then you should probably Dispose it. If you are writing an API that uses unmanaged objects then as the developer you should implement the IDispose Interface. If your app is leaking memory then you may be missing Dispose calls. cheers Michael M Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From michael at ddisolutions.com.au Sun Aug 24 18:39:42 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 25 Aug 2008 09:39:42 +1000 Subject: [dba-VB] Dev PC with Raid? References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local> Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M From DWUTKA at Marlow.com Sun Aug 24 19:43:16 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 24 Aug 2008 19:43:16 -0500 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local> Message-ID: I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From bill_patten at embarqmail.com Sun Aug 24 20:06:40 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Sun, 24 Aug 2008 18:06:40 -0700 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: References: Message-ID: <231A64CBB0AC49BBA9EEA405BE8F8B5F@BPCS> I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Aug 24 20:10:51 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 25 Aug 2008 11:10:51 +1000 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF09@ddi-01.DDI.local>, Message-ID: <48B2069B.25512.43478540@stuart.lexacorp.com.pg> Raid 0 is "Striped" - Raid 1 is "Mirrored" Raid 0 doesn't give you any redundacy, it just improves access times. Raid 5 requires a minimum of 3 disks Raid 10 requires a minimum of 4 disks I agree with Drew - go with Mirrored (ie Raid 1) You can see the pros/cons of each Raid version and some nice action graphics at http://www.acnc.com/04_01_00.html On 24 Aug 2008 at 19:43, Drew Wutka wrote: > I would recommend going with a raid 0. It's a mirror, and you will lose > half of your space capacity (essentially you'll only have 1 500 gig > drive, instead of 2), but it'll run just fine, speed wise, in fact, > reading will go twice as fast, and you have the reliability of losing > either drive and the other will pick up live! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Sunday, August 24, 2008 6:40 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Dev PC with Raid? > > Hi Guys, > > Just got my new bits to build a new dev workstation. :-))) > > I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + > 10. I've never used raid on > a workstation before. I have a 1TB usb drive I use for backups already. > I have all my dev stuff including a lot of data fitting into about 200 > GB now. > > Any opinions? > > cheers > > Michael M > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Stuart Mclachlan From DWUTKA at Marlow.com Sun Aug 24 20:31:04 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 24 Aug 2008 20:31:04 -0500 Subject: [dba-VB] Dev PC with Raid? In-Reply-To: <231A64CBB0AC49BBA9EEA405BE8F8B5F@BPCS> Message-ID: Ooops.... you're right, 1 is a mirror, and 0 is a stripe...my bad.... Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Sunday, August 24, 2008 8:07 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From michael at ddisolutions.com.au Mon Aug 25 00:38:27 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 25 Aug 2008 15:38:27 +1000 Subject: [dba-VB] Dev PC with Raid? References: Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> Thanks, I must suck... Need to have a floppy to install drivers with XP! So I borrowed 1 from an old box and followed the instructions, must have done something wrong as I tried 3 time but all I get is a BSOD during Windows install. Remove the RAID option from the bios and installation goes fine... Maybe next time... cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, 25 August 2008 11:31 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? Ooops.... you're right, 1 is a mirror, and 0 is a stripe...my bad.... Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Sunday, August 24, 2008 8:07 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Dev PC with Raid? I don't think that what Drew said is correct. The reason that raid 0 is fast is because it stripes on both drives. If either fails your SOL. You do add the drives together so you would have 1TB of space. Raid 1 on the other hand is a mirror, is only 500G and if one fails the other will keep on going. Bill ----- Original Message ----- From: "Drew Wutka" To: "Discussion concerning Visual Basic and related programming issues." Sent: Sunday, August 24, 2008 5:43 PM Subject: Re: [dba-VB] Dev PC with Raid? I would recommend going with a raid 0. It's a mirror, and you will lose half of your space capacity (essentially you'll only have 1 500 gig drive, instead of 2), but it'll run just fine, speed wise, in fact, reading will go twice as fast, and you have the reliability of losing either drive and the other will pick up live! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Sunday, August 24, 2008 6:40 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC with Raid? Hi Guys, Just got my new bits to build a new dev workstation. :-))) I ordered 2 x 500 gb sata hdd's, the motherboard comes with raid 0,1,5 + 10. I've never used raid on a workstation before. I have a 1TB usb drive I use for backups already. I have all my dev stuff including a lot of data fitting into about 200 GB now. Any opinions? cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.7/1631 - Release Date: 8/24/2008 12:15 PM From cfoust at infostatsystems.com Mon Aug 25 18:15:39 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Aug 2008 16:15:39 -0700 Subject: [dba-VB] C#: When to Dispose In-Reply-To: References: Message-ID: It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Mon Aug 25 20:34:01 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 11:34:01 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M From bill_patten at embarqmail.com Mon Aug 25 21:37:37 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 25 Aug 2008 19:37:37 -0700 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local> <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Message-ID: <4A8910858CA74E47B3A12A3D58A03F90@BPCS> Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Mon Aug 25 23:14:57 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 14:14:57 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> <4A8910858CA74E47B3A12A3D58A03F90@BPCS> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM From shamil at smsconsulting.spb.ru Tue Aug 26 00:35:48 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 26 Aug 2008 09:35:48 +0400 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local> Message-ID: <001001c9073d$9977bb10$6401a8c0@nant> Michael, I have Vista Ultimate edition on my notebook and I have VS2005 and VS2008 installed on it as well as VB6 and MS Office 2007... I have done VB6 and VS2005 development on it and it worked well, activeX dlls get registered etc. Maybe you have issues you mentioned because of Vista running as a Virtiual PC? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Tuesday, August 26, 2008 5:34 AM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bill_patten at embarqmail.com Tue Aug 26 01:00:06 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 25 Aug 2008 23:00:06 -0700 Subject: [dba-VB] Dev PC OS In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local><4A8910858CA74E47B3A12A3D58A03F90@BPCS> <59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> Message-ID: <98E7C22C36F644C1BB94A0C0F65E756F@BPCS> I really only have a few projects in each type so certainly not qualified to say no problem, but so far all the problems were because I didn't know what I was doing. You do not need special versions for 64 bit. I haven't written any AX's so can't help you there but I have not had any problems installing those provided by others. If it was awhile ago perhaps you were running into permission issues. I do every thing run as admin and everything seems to install ok. I have done some testing in a Vista 32 in a Virtual PC , mostly so I am able to see what my friends an clients see with threes and that seems to run fine as well, though It does not allow USB (except for the mouse and perhaps keyboard.) Sorry I can't be of more help, but in my opinion Vista is not what caused your problem, excluding the permissions thing. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 9:14 PM Subject: Re: [dba-VB] Dev PC OS Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Tue Aug 26 02:30:00 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 26 Aug 2008 17:30:00 +1000 Subject: [dba-VB] Dev PC OS References: <59A61174B1F5B54B97FD4ADDE71E7D013BFF11@ddi-01.DDI.local><59A61174B1F5B54B97FD4ADDE71E7D013BFF1A@ddi-01.DDI.local><4A8910858CA74E47B3A12A3D58A03F90@BPCS><59A61174B1F5B54B97FD4ADDE71E7D013BFF1F@ddi-01.DDI.local> <98E7C22C36F644C1BB94A0C0F65E756F@BPCS> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013BFF26@ddi-01.DDI.local> Thanks all, I'm installing Vista64 now. If I run into problem I'll either run virtual XP or keep a machine loaded with my legacy bits. cheers Michael M I really only have a few projects in each type so certainly not qualified to say no problem, but so far all the problems were because I didn't know what I was doing. You do not need special versions for 64 bit. I haven't written any AX's so can't help you there but I have not had any problems installing those provided by others. If it was awhile ago perhaps you were running into permission issues. I do every thing run as admin and everything seems to install ok. I have done some testing in a Vista 32 in a Virtual PC , mostly so I am able to see what my friends an clients see with threes and that seems to run fine as well, though It does not allow USB (except for the mouse and perhaps keyboard.) Sorry I can't be of more help, but in my opinion Vista is not what caused your problem, excluding the permissions thing. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 9:14 PM Subject: Re: [dba-VB] Dev PC OS Hi Bill, Did you have any issues registering ax ddl's and ax controls? IIRC When I tried loading VB projects it would have missing refs and I couldn't work out how to register them. Maybe I was mistaken, it was a while ago! Most were files I'd created and maybe recompiling would have solved the issue, but I didn't take it any further. Didn't want to load and compile 10 projects just to get another project up and running when it all worked fine in XP. Are there any issues I need to be aware of with 64bit Vista? Do I need 64bit versions of VS or SQL tools etc? Any issues compiling for 32 bit? Problems with drivers? cheers Michael Michael, I am using vb6, VS 2005 and 2008 on a Vista 64 bit machine with no problems. I also have installed vb6 apps and they run fine as well. You might try uninstalling VB 6 and reinstalling, but generally if it will run on Vista 64 it will run on any Vista. Bill ----- Original Message ----- From: "Michael Maddison" To: "Discussion concerning Visual Basic and related programming issues." Sent: Monday, August 25, 2008 6:34 PM Subject: [dba-VB] Dev PC OS Me again... I have a Virtual PC with Vista installed on my old pc and found developing on it pretty annoying with VS2005. I also ran into big problems with my legacy VB6 apps that I still support. IIRC I could not find a way to regsvr32 controls and dll's which made VB6 dev impossible and I gave up. Has anything changed? Is Vista an option for Dev work or should I just stick with XP? Sorry if this is OT. cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.9/1634 - Release Date: 8/25/2008 8:48 PM From Gustav at cactus.dk Wed Aug 27 02:41:56 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 27 Aug 2008 09:41:56 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From Gustav at cactus.dk Thu Aug 28 03:08:00 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 28 Aug 2008 10:08:00 +0200 Subject: [dba-VB] MDI Winforms, no keyboard copy, cut or paste Message-ID: Hi all It took me some research to figure this out ... Should you ever wonder why you have "lost" the keyboard shortcuts for copy and paste in your child forms while the popup menu still offer that functionality, the reason is that the standard MDI form has "hijacked" the shortcuts for its own menu line: http://forums.msdn.microsoft.com/en-US/csharpgeneral/thread/59a54884-d987-4a39-b9ab-97d3d9f3acf8/ /gustav From cfoust at infostatsystems.com Thu Aug 28 19:03:15 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 28 Aug 2008 17:03:15 -0700 Subject: [dba-VB] C#: When to Dispose In-Reply-To: References: Message-ID: That's the way I understand it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, August 27, 2008 12:42 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C#: When to Dispose Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Aug 29 04:46:23 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Aug 2008 11:46:23 +0200 Subject: [dba-VB] C#: When to Dispose Message-ID: Hi Charlotte And, as I noticed the other day, if you look up the .designer.cs code for any form created from the VS template, this is found (probably similar for VB.NET) which may tell the form to clean up its components: /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } So no magic, just handcraft. /gustav >>> cfoust at infostatsystems.com 29-08-2008 02:03 >>> That's the way I understand it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, August 27, 2008 12:42 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C#: When to Dispose Hi Charlotte That makes sense. So, for example, all the common stuff used by a form is disposed automatically when the form is closed. And when I use the e-mail components I can manually dispose those when done to free VS to keep track of that. /gustav >>> cfoust at infostatsystems.com 26-08-2008 01:15 >>> It was more important in earlier version of VS because the garbage collection wasn't as good as the current versions. If you do dispose an object, make sure you aren't going to need it again in a minute, because it's gone! Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, August 22, 2008 9:27 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] C#: When to Dispose Hi all Came across this article on the subject: http://www.devx.com/dotnet/Article/33167 and realise that I don't dispose objects that much and yet the code runs - and most of the coding examples I see don't tell much about it. Right now I'm writing some code to send a series of e-mails and the code I found calls Dispose. That makes sense: Create the MailMessage object, send the message, dispose object. But what experience do you have? How keen are you about disposing objects? /gustav From Gustav at cactus.dk Sat Aug 30 05:10:04 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 30 Aug 2008 12:10:04 +0200 Subject: [dba-VB] C#, mantissa, math fun Message-ID: Hi all (blush) ... if no decimals exist (number is an integer) that one-liner will fail. So check for zero decimals: double number = -1234.56789; int mantissa = 0; decimal fraction = (decimal)number % 1; if (fraction != 0) { mantissa = Convert.ToInt32(Math.Abs(fraction).ToString().Substring(2)); } /gustav >>> Gustav at cactus.dk 17-08-2008 17:13 >>> Hi all Delphi people know this as Fract, the decimal part of a decimal number. C# does not contain a direct method to extract that, so I thought of some smart math way to do so as I try too to avoid number handling by string conversion as it often turns into some "dirty" operation. By second thought you - as a human - easily can extract the mantissa but you do that by looking at the full number as a string. So why not ask the machine to do the same - and simple string handling is actually extremely fast for small strings like here, while raising a number to the power of something (which is a math method) is slower. So, inspired by this link: http://bytes.com/forum/thread563673.html I found this simple one-liner which handles both negative and positive numbers: double number = -1234.56789; int mantissa = Convert.ToInt32((Math.Abs((decimal)number) % 1).ToString().Substring(2)); mantissa -> 56789 Of course, if you expect to use it a lot, wrap it into a utility class. Still, I wonder if some clever byte manipulation method would exist. /gustav