RE: Splash Screen..thread safe

2010-03-05 Thread Greg Keogh
splashThread.Abort(); Don't do that. The Thread must be told to terminate gracefully. Greg

RE: vb.net switching between debug and release in VS2008

2010-03-05 Thread Greg Keogh
Kirsten, in a VB.NET project in VS2008 I can see the Configuration combo at the top of the Compile sheet in project properties (Debug|Release). I also have a Build Configuration Manager menu. I can also right-click the solution node and get the Configuration Manager menu. From what I recall, none

RE: [OT] Code camp oz

2010-03-09 Thread Greg Keogh
At the Vic.NET SIG tonight we heard that the Code Camp OZ in Wagga has been postponed. The exact meaning remains unclear. Apparently there is going to be a Melbourne event titled something like Develop Develop Develop, but I don't think it directly competes with Wagga. I also look forward to

Parsing repeated keyword+value pairs

2010-03-09 Thread Greg Keogh
Folks, one thing I find I have to do more often lately is parse repeated keywork+value pairs, and I can't figure out how to craft the right regex pattern for this sort of thing (assuming regex can do it). I have something like this sample: %KEY1, value1 %KEY2,value2 %KEY3, %NOTE,This is a

RE: Developer apathy...

2010-03-19 Thread Greg Keogh
Perhaps the marketing for Visual Studio 2010 hasn't been targeted correctly, or isn't loudly enough. The last time I was excited about a software release is was (1) The upgrade from Windows 3.1 to 95 (2) The release of .NET Framework 2.0 (3) The arrival of LINQ. Since then every release of

RE: Dispose surprise

2010-04-13 Thread Greg Keogh
If so, Dispose() should be calling GC.SuppressFinalize(this) to prevent finalization. D'OH! I forgot. I've got disposable class all over the place, and for some stupid reason I forgot to SuppressFinalize in this class. The symptom is obvious now that I look at it again (I should have started

FxCop custom dictionaries

2010-04-22 Thread Greg Keogh
Searches on this subject are completely confusing. I cannot yet find a definitive and clear description of how to create FxCop custom dictionary files. My solution has dozens of project files, grouped by subsystem of the app. I have an FxCop file for each subsystem and I want a custom

RE: LINQ GroupBy compile error (this works)

2010-04-28 Thread Greg Keogh
var groups = from itemrow in itemset.tblUnavailableItems.AsEnumerable() group itemrow by itemrow.Model into modelGroup select new { modelGroup.Key, modelGroup }; Now I just have to figure out why this works and the original clone of some samples doesn't - Greg

RE: What makes C# awesome?

2010-04-28 Thread Greg Keogh
For me it's all about the framework. Yep, it's the underlying framework, the overall consistency, the powerful well organised base class library, the large developer community and the encouragement you get to write well structured modular apps. .NET is the most productive development

RE: Cheapest way to get VS2010 Professional?

2010-05-06 Thread Greg Keogh
Good timing on this subject, as I was at a meeting this morning where we discussed how to manage multiple databases that are slowly diverging from each other and we have to stop this happening in a reliable way. We don't have a dedicated DBA, just 3 developers all doing mixed tasks. We

RE: Managing application and database version dependencies

2010-05-06 Thread Greg Keogh
Matt, I like to put two magic numbers in a special database table: The change number, The compatibility number. The first increments whenever the schema changes. The second increments only when a breaking change is made. The app startup code can use these numbers to determine if it can run

RE: Can't add SQL CE reference

2010-05-08 Thread Greg Keogh
Not that I would expect that the .NET assemblies should 'behave' differently, but why use CE v3.1 - why not v3.5 ? Sorry, dyslexic typo, I have both 3.5.0 and 3.5.1 in the GAC, and I'm referencing 3.5.1. I haven't bothered any tedious reinstall yet, I just edited the csproj file and added

Could not find schema information

2010-05-12 Thread Greg Keogh
Folks, if I build a solution and have at least one error and I have an XML file open such as a config file, then every line in the config file generates a build Message that it Could not find schema information. If I fix the compile error then all of the Messages disappear. I've lived with

RE: [OT] Toner hell

2010-05-13 Thread Greg Keogh
http://www.inkman.com.au/search-results.asp He's offered us $189 each for a high yield set of 3 colours. That's the best I've seen so far, but it's still a whopping total price. I guess we'll have to take it. Thanks for the tip on that. Greg

Detecting process type

2010-05-17 Thread Greg Keogh
Folks, I have a library that is called from WinForms apps and from ASP.NET apps and it has to have slightly different behaviour in each case. What is the simplest and most robust way that the library can determine what sort of process it's in? Greg

RE: Detecting process type

2010-05-17 Thread Greg Keogh
But I would HIGHLY avoid to have different behaviour, depending from the environment where your library lives in. I eventually decided that it was not really the decision of the (rather general purpose) library to change its behaviour. I will strive to keep the library blind to how it's being

RE: How To do something every so often

2010-05-20 Thread Greg Keogh
You are crazy. Please stop feeding the tactless socially retarded troll. Greg

SQL CE table metadata

2010-05-21 Thread Greg Keogh
Folks, the SQL Server Compact documentation does not hint that it is possible to add metadata comments to a table during a CREATE. However, when you run: SELECT * FROM INFORMATION_SCHEMA.TABLES; You can see a DESCRIPTION column. Is there are reliable way of putting something in that column

RDLC keep-together

2010-05-29 Thread Greg Keogh
I've got an RDLC report with a List at the detail item, which then contains a child Table so I get a simple master-detail report. It's all working nicely, but I notice that it tries to keep all items on the child Table together, so I get stupid page breaks that waste space. I've been all

Source control of DB scripts

2010-05-30 Thread Greg Keogh
Folks, I'm sure we've all had problems where multiple developers change SQL Server scripts and they get out of whack and waste time with stupid errors. I'm starting a fresh app and I thought I'd experiment with keeping scripts in SVN. It just means that we have to remember to always save a

RE: Ignoring excpetions in catch

2010-05-31 Thread Greg Keogh
I wouldn't take that sample code seriously, I guess it's old. As the others said, in that case a cast as or try would be more appropriate. The Framework Design Guidelines http://msdn.microsoft.com/en-us/library/ms229042.aspx (BOOK

Installer serial number validation

2010-06-04 Thread Greg Keogh
Folks, I added a Customer Information dialog to my VS2008 installer project. I expected the serial number the user enters to be present in the Context collection that my Custom Action could validate, but it's not there. All of the data entered in other dialogs is in the Context collection. Has

RE: Vb.net Modules or classes

2010-06-06 Thread Greg Keogh
Hi Tom, is it quiet in here or is my email on the fritz? Modules were weird and unclear abstractions in the old VB days that irritated and confused me. They still do, so whenever I make a new VB project I delete the Module and I create classes. I'm probably biased here because I come from a

RE: Vb.net Modules or classes

2010-06-06 Thread Greg Keogh
Chaps, I think we've answered Tom's question in a way, eventually, I hope. He was suspicious of using Modules, and you've confirmed my suspicions that Modules are aliases for static classes that don't need to be qualified. No other .NET compliant language I know of hides what's going on underneath

Manipulating MYOB/CTree files

2010-06-09 Thread Greg Keogh
Folks, I need to update a MYOB V19 database file and change some dates and names. I believe the file format is CTree (which I last used in 1993). I just downloaded their 20MB ODBC driver along with the 494 page User Guide. From a quick read it looks like a heavyweight process, as the driver seems

RE: Custom exception?

2010-06-09 Thread Greg Keogh
Bec, you seem to own the code that makes the report and it's a part of your project, it doesn't sound like a reusable black box library. I'd treat each of these cases differently. The Framework Design Guidelines book explains all of this clearly, and I highly recommend everyone in here keep a copy

WCF behaviours

2010-06-12 Thread Greg Keogh
Folks, I'm revisiting a topic I raised about a year ago on how to simulate SOAP Headers in WCF. Back then I had a problem where dozens of methods in my WCF service all needed the same argument passed in every call, and it was crazy to manually add the argument to dozens of methods. In the Web

RE: WCF behaviours

2010-06-12 Thread Greg Keogh
Well, I've printed off and read 2 of the blog articles on WCF, behaviors, headers and message inspectors. Then I read them again, and again and again. Every single line of code that touches WCF is like an impenetrable and cruel puzzle to torture your mind. There are so many seemingly uncorrelated

Method Invoke problem

2010-06-18 Thread Greg Keogh
Folks, the following skeleton code dies on the Invoke with a TargetParameterCountException. The code is all in the same class. MethodInfo mi = this.GetType().GetMethod(TestMethod, BindingFlags.Instance|BindingFlags.NonPublic); object[] objs = new object[] { Hi, 123, DateTime.Now };

T4 templates

2010-06-18 Thread Greg Keogh
Folks, I've been experimenting with T4 http://www.olegsych.com/2007/12/text-template-transformation-toolkit/ templates and the T4 Toolkit and I'm reasonably impressed. I never knew this tool existed until David K mentioned it a few months ago. If anyone else in here needs basic file generation

[OT] markzware online payment

2010-06-25 Thread Greg Keogh
Folks, my wife wants to buy some Mac conversion software from markzware.com but the payment process seems a little weird. The site has a certificate and a green address bar, and as you proceed it seems to use a Wespac gateway for payment. The payment entry fields appear in a mock dialog area in

Icon image contents

2010-06-26 Thread Greg Keogh
Folks, I can't find a managed way of determining what images an Icon contains. An icon can contain one or more images, traditionally 16x16, 32x32 and 48x48, but now of various sizes and colour depths can be within. I can easily load an Icon class from a file, but I just can't see how to find which

FW: Icon image contents (FOUND?)

2010-06-26 Thread Greg Keogh
Sheesh! I found the answer buried in the fine print of the Icon constructor, sort of. If a version cannot be found that exactly matches the size, the closest match is used It's true, for example if I ask for a 48x48 which isn't there I get a 32x32 instead as a fallback when I inspect the

[OT] Loading file into a row

2010-06-26 Thread Greg Keogh
Who's working on Sunday? ... I'm trying some sample code that is supposed to bulk load a file into a varbinary column of a table. My statement is this: UPDATE TestTable set [Icon] = (SELECT * FROM OPENROWSET(BULK 'E:\icons\SM\accicons04.ico', SINGLE_BLOB) AS x ) WHERE [Name]='Foo' But I

RE: [OT] Loading file into a row

2010-06-26 Thread Greg Keogh
If SQL Server then the path is relative to the server and the permissions will depend on who the statement is executing as. OH NO! ... I forgot that I was using the SQL Server instance on my file server, so it was looking for the file on the wrong machine. Now it works! Thanks Greg

[OT] 2560x1600 widescreen LCDs

2010-07-02 Thread Greg Keogh
Folks, one of my older 19 LCD monitors is going shimmery and randomly goes blank for a few minutes. I'm thinking of having Christmas in July and buying a BIG screen like 2560x1600 resolution. I've seen one in action and I was instantly seduced by the gigantic workspace and I can imagine it would

RE: [OT] 2560x1600 widescreen LCDs

2010-07-03 Thread Greg Keogh
I never found bigger screens to increase productivity, they just give me a larger code window. I prefer 2 or more screens when writing code. I'm currently sat looking at 5 screens. I have a gut feeling that one large screen has certain ergonomic (and human perception) advantages over

RE: MDI Form

2010-07-06 Thread Greg Keogh
Hi Anthony, I find that setting the Focus() in Load doesn't work because it's too early, so I usually do it in the first Activate event. I often have code like this: If (++activateCount == 1) { Thing.Focus(); // Other stuff for the first time everything is visible } You may have

Entity Framework 2

2010-07-10 Thread Greg Keogh
Folks, last year I experimented with the Entity Frame 1 and after therapy to recover I decided that it was too immature to use in a production app. The vote http://efvote.wufoo.com/forms/ado-net-entity-framework-vote-of-no-confidenc e/ of no confidence it received back then was based on more

RE: Advice for Data Access - Hibernate/Linq/Fluent/etc

2010-07-13 Thread Greg Keogh
Get a hold of LinqPAD (www.linqpad.net) and you won't look back. Great for learning LINQ and for experimenting. Having spent a lot of yesterday trying to get a .nettiers project compiling, I'm so thankful for LINQ. I have enjoyed the way the netTiers generated classes are binary

[OT] XP STOP 0x0000007B

2010-07-16 Thread Greg Keogh
Folks, a friend's PC gave him some kind of CPU Fan fault error when it was booting, from then on Windows dies at the blue screen with STOP code 0x007B. Lord knows how these two things are related, or if it's just a coincidence, but in any case I was searching for way of coaxing Windows into

RE: [OT] XP STOP 0x0000007B

2010-07-16 Thread Greg Keogh
[Friday OT] Install W7 ? I have the Win7 disc ready and poised to insert! But first I have to take the HDD out and put it in a spare machine, copy off all of the user's files (which may be all over the place) and make a backup. I've already told the owner to find all of the install discs he

RE: [OT] XP STOP 0x0000007B

2010-07-16 Thread Greg Keogh
David, Ken, none of the links seem to help. I tried to get to the XP recovery console to CHKDSK but I have no idea what the administrator password is and after 3 failures I just have to start all over again and waste more time guessing. The funny thing is that I originally installed this XP for my

RE: [OT] XP STOP 0x0000007B

2010-07-16 Thread Greg Keogh
Folks, I've given up. My plan to copy all of the files over from a different machine and burn them to a DVD backup has worked. I've got the owner's documents, photos and pst files. Now I'll try to install Win7 on a freshly formatted disk. I'd like to reset the BIOS but it just doesn't seem to have

Unable to diagnose a crash

2010-07-21 Thread Greg Keogh
Folks, we have a random crash in our new release of a server class. The class is actually a wrapper around a database that exposes functionality over Remoting. The server class can be hosted in a Forms App or in a Windows Service. The server is randomly crashing and leaving no diagnostic

RE: Unable to diagnose a crash

2010-07-21 Thread Greg Keogh
Corneliu, Nick, I use windbg a few times a year to find elusive problems. I was hesitant to attach windbg to a live server process that gets a fair bit of traffic. The crash only occurs at daily intervals, so it's not feasible for someone to sit 24x7 and keep typing 'g' and watching for the guilty

RE: OT - Mathematical computing

2010-08-01 Thread Greg Keogh
I've been spending a bit of time playing with the questions at Project Euler http://www.projecteuler.net/ That thing is murder on the brain. I solved the first 4 in F# as a learning exercise several months ago and I burnt out and haven't had the hobby time to return.

Extensible Storage Engine

2010-08-07 Thread Greg Keogh
Folks, a couple of years ago I asked in here for recommendations about what lightweight in-process database I could use easily from .NET apps. I eventually settled upon SQL Server Compact Edition due to familiarity with its big brother and the footprint was quite small, just a single MSI install

RE: Extensible Storage Engine

2010-08-07 Thread Greg Keogh
Aha! I just went back to the page again ... I was tricked yesterday when I quickly read the ManagedEsent http://managedesent.codeplex.com/ page. I downloaded the DLL of interop and I see it has a sample console app which seems to perform some quite complex work. It looks like they've

RE: Extensible Storage Engine

2010-08-08 Thread Greg Keogh
I wanted to do a tech.ed talk on ESE but it was rejectedah, what might have been. Ah! The pillocks. Anyway, I've read the samples, some of the source code and some of the documentation and I think they CodePlex team have done a really neat job on wrapping esent.dll in a friendly way

RE: Remote debugging outside of domain

2010-08-08 Thread Greg Keogh
Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor names 'x'. The Visual Studio Remote Debugger on the target computer cannot connect back to this computer. Authentication failed. Please see Help for assistance. Hi Michael, my condolences. I spent many solid hours of

[OT] MYOB and SQL Server security

2010-08-14 Thread Greg Keogh
Howdy on Sunday. Who's working? I was working last week on a machine that had a preview release of MYOB Huxley on it. I think this is part of their long overdue second attempt at using .NET. But I also think it's only the backend that uses .NET (anyone know how their .NET development is going

RE: [OT] MYOB and SQL Server security

2010-08-14 Thread Greg Keogh
Just stop the service, copy the mdf and ldf files to another place and reattach them to another instance where you are admin. Hmmm! I'll give that a bash next week when I'm back on the machine where it's installed. Someone in the group here several weeks ago pointed out that this security

[OT] Adobe reader replacement

2010-08-20 Thread Greg Keogh
I take pride in running a clean machine. Using autoruns.exe I find and stop or remove any useless processes. After installing things like Nero, Adobe Reader and various device drivers it can take hours to get rid the mind boggling amount of utter garbage they install. Well, Adobe Reader

RE: [OT] Adobe reader replacement

2010-08-21 Thread Greg Keogh
Thanks everyone for the suggestions. Too much choice. I think I'll try Bill's pointer to free Foxit first and see how it goes. I'll let you know if I find anything newsworthy -- Greg

RE: [OT] Adobe reader replacement

2010-08-22 Thread Greg Keogh
OK - PDF Exchange it is. I've installed the free version (minus another one of those damned toolbar offers) and after removing all the clutter of toolbars it seems to be working simply and quite well. I just want to view PDF files, not edit them or annotate them or whatever, so PDF Exchange suits

Non-admin developing

2010-08-22 Thread Greg Keogh
My copy of the book The .NET Developers Guide to Windows Security by Keith Brown was delivered this morning. Inspired by his tips on how to develop as a non-admin I thought I'd have another bash at it. I was going well until I tried to open a VS2010 solution with an ASP.NET project and I got the

RE: Non-admin developing

2010-08-23 Thread Greg Keogh
Scott Guthrie blogged about IIS Express recently http://weblogs.asp.net/scottgu/archive/2010/06/28/introducing-iis-express.as px I see it was released last July. http://blogs.iis.net/bills/archive/2010/07/06/announcing-webmatrix-a-small-s imple-and-seamless-stack-for-web-developers.aspx

RE: Properties

2010-08-24 Thread Greg Keogh
Fields don't scale well. You can't decide to add validation or special behaviour to them later. Proxy code generators usually ignore them. You can't convert one into a dependency property later. They won't appear in the PropertyGrid control. They have different serialization behaviour. You can't

RE: ASP.NET / SQLCE

2010-08-26 Thread Greg Keogh
Hi Matt, that warning about not for ASP.NET development is rather scary when you first see it. I get the feeling that there was going to be some artificial political restraints on how SQL CE could be used, but they changed their mind and that workaround was made public (or vice versa). I've

ASP.NET designer errors gotcha

2010-08-26 Thread Greg Keogh
Just a heads-up ... I found that many of my aspx pages would not open in the VS2010 designer due to all child controls appearing as red blocks with object reference not set null errors. It seems that VS2010 is calling the Init method when in the designer, this might be a bug, but it seems to be

RE: Charting with WPF and Linq

2010-09-03 Thread Greg Keogh
Try these WPF Silverlight chart controls.. http://www.visifire.com/ I've been using Visifire for a year now and an SL3 app and it worked very well. You just feed it arrays of data series and points and it produces impressive charts with little effort. We even drilled down and adjusted the

[no subject]

2010-09-06 Thread Greg Keogh
AANLk tinjkcunilv9kuu_odjrcodocx=bgwgmrq_fr...@mail.gmail.com 9a72862d036f35478b540b8422c5b922090f7...@kjserver4.kjhome.local aanlktikrvxlnico01aex0kjxjxr3trjs+ckzwybbz...@mail.gmail.com In-Reply-To: aanlktikrvxlnico01aex0kjxjxr3trjs+ckzwybbz...@mail.gmail.com Subject: RE: verdict

DataGridView CheckBoxColumn problem

2010-09-07 Thread Greg Keogh
Folks, I've been using the DataGridView control for years in anger and I thought I'd seen it all, but I've got a problem that's been unsolvable for over a year. Clicking a CheckBox cell in the top row of the grid does not change the value. In the screenshot you can see the selected cell that

RE: DataGridView CheckBoxColumn problem

2010-09-08 Thread Greg Keogh
Hi Ian, Man oh man, I searched for an hour but only found vaguely related issues with a few hints that didn't work related to calling EndEdit() manually. The event you mention I think is only used by controls hosted inside a grid cell, which I've mercifully never needed to do. However,

RE: argument style, was Re: Access Database Replication

2010-09-09 Thread Greg Keogh
splort hundreds? influential? worldwide? (apologies for all those questionmarks, to whomever was commenting on them t'other day It pleases me to imagine this is true – Greg

XML doc editor background colours

2010-09-11 Thread Greg Keogh
Folks, I just noted that Visual Studio 2010 has changed the way C# XML doc comments are coloured in the editor window. In VS2008 the XML doc background colour filled all the way to the right. In VS2010 it now fits to the foreground text (first sample). I much preferred the old way, as I would set

RE: WinForm will not load..in vs 2008 or vs 2010

2010-09-21 Thread Greg Keogh
Then start debugging and that will load the IDE again; in that IDE load the project and attempt to open the form. Can you do that with a single IDE? I usually attach a second IDE to debug the first one. Anthony, does the guilty Form have a base class derived from Form? That's when I

RE: WinForm will not load..in vs 2008 or vs 2010

2010-09-21 Thread Greg Keogh
Thanks Greg...this is what i am doing..this technique is new to me... Opened 2 instances of vs2008 Open instance 1 with Solution open I then tried opening the form in question..now what...how do step through the loading of the form from here? I've never stepped through, I just want to know where

RE: Is Silverlight dead ?

2010-09-22 Thread Greg Keogh
David with glasses? the one who falls asleep allot after 1x beer? aren't you a tester or something? Urrh, can this stuff be kept offlist please? -- Greg

[OT] Anti-Football League lunch tomorrow (Melbourne)

2010-09-23 Thread Greg Keogh
?Activity_Id=23436siteref=myrddin siteref=myrddin It's also registered as an event in Facebook somewhere. Cheers, Greg Keogh

RE: [OT] Anti-Football League lunch tomorrow (Melbourne)

2010-09-24 Thread Greg Keogh
Sounds good - will the game be playing? ;) No, this is one of the few pubs in Melbourne without a 50 inch plasma screen blasting out sports 24x7. I'll look for your parachute over Fitzroy around 2pm as you leap out of the supersonic jet from Seattle - Greg

Script testing a COM server

2010-10-01 Thread Greg Keogh
Folks, I wrote a ComVisible library for our VB6 client to consume. I thought it might be a good idea to write a .vbs script to test drive it. To register the assembly I do this: regasm bin\Debug\FooApp.ComClient.dll /codebase /nologo /verbose /tlb:comclient.tlb In the .vbs script I create

[OT] Time sync on my domain

2010-10-03 Thread Greg Keogh
Folks, I just noticed that the time on all of the machines in my domain are drifting forward. I've never configured any time services on the domain, it's the default behaviour. I *thought* that the Win3K domain controller automatically became the time server in a domain and all of the other

RE: [OT] Time sync on my domain

2010-10-04 Thread Greg Keogh
Chaps, I eventually stumbled upon instructions that led me to issue this command: w32tm /config /manualpeerlist:ntp1.tpg.com.au /syncfromflags:manual /reliable:yes /update I picked the tpg timer server because I saw lots of people complaining that time.windows.com had stopped working. I

RE: [OT] Sites inaccessible with Win7 and IE8

2010-10-09 Thread Greg Keogh
Have you trying clicking the compatibility mode icon in the address bar when this happens? No , I don’t recall any such icon, but I do recall being asked questions about compatibility during installation (or first use). Everything must be defaulting. I just played with some compatibility

RE: [OT] Sites inaccessible with Win7 and IE8

2010-10-09 Thread Greg Keogh
Not sure if you have tried this already as well but completely resetting IE 8 has helped me with similar issues. Internet Options -- Advanced Tab -- Reset I hadn't noticed the big fat Reset button before. I tried it a few times, but it didn't make any difference. Then I did another Reset and

Use of GCHandle.Alloc and Free

2010-10-12 Thread Greg Keogh
Folks, we had a shocking problem today where C# code was listening for events from a VB6 component. The COM classes exposed by the VB6 app are nested and a bit complicated to describe, but a nested class which exposed events was randomly producing the dreaded COM object that has been separated

object must implement ICOnvertible

2010-10-18 Thread Greg Keogh
I have a classic case of a problem that is sucking all of the enjoyment out of this profession. No it doesn't just suck, it's giving me the stinking shits. We failed to make a release tonight because of incomprehensible crashes and behaviour with our 7 year old well-tested app when deployed to

RE: object must implement ICOnvertible

2010-10-18 Thread Greg Keogh
Ian, likewise, the only matches I could find were SQL related, but this crash is happening inside the start of some Remoting code long before the database is touched. I will start this new day with a fresh mind trying to find out what's going on, then I'll try to reassure myself that the fix is a

RE: AsEnumerable unpredictable

2010-10-19 Thread Greg Keogh
I have one universal answer that always seems to fit problems like these: magic :) Magic can be used for both good and evil. The problem has become worse in the last hour. I thought adding the System.Data.Entity reference and refreshing everything would fix all machine builds, but no.

RE: AsEnumerable unpredictable

2010-10-19 Thread Greg Keogh
Now to find the software equivalent. AN uninitialised variable? Well, there's no code involved, so I'm now carefully comparing the environments. I notice that SDK 6.1, 7.0A and 7.1 are on my dev machine. The other machine only has 7.0A. Suspicious I think, as each contains xsd.exe which is

MSDataSetGenerator and SDKs

2010-10-19 Thread Greg Keogh
After installing Windows SDK 7.1 alongside 7.0A and restarting Visual Studio 2010 there was no change in the MSDataSetGenerator output from the XSD file. I went out into the garden for 15 minutes and pulled out some weeds, came back, deleted all output files (again!) and did a 'Run Custom Tool' on

Help authoring

2010-10-29 Thread Greg Keogh
What are people using these days for writing application help? (someone writes help don't they?) Over the years I've had HDK for old HLP files, then RoboHelp for CHM files, then I used FrontPage and the hc.exe for CHM files. Sometimes I've just written a Word document and converted it to one

RE: Help authoring

2010-10-29 Thread Greg Keogh
Oh drats! It's as bad as my expectations. We seem to be in help limbo. I have so many SDKs installed that if I put another one in just to fiddle with some new beta help format I think my hard drive will collapse into a black hole. And lord knows how much more of my time another kit will waste.

RE: Help authoring

2010-10-29 Thread Greg Keogh
The greatest authority in the world says: In 2002, Microsoft announced some security risks associated with the .CHM format, as well as some security bulletins and patches.[4] http://en.wikipedia.org/wiki/Microsoft_Compiled_HTML_Help#cite_note-3 They have since announced their intentions not to

RE: Help authoring

2010-10-29 Thread Greg Keogh
Here is the real authority (not that faux Wikipedia source) [cut] Indeed, that's a nice summary and it makes it clear that in my case that I should stick with CHM files. I just have to find the right tools for the job. I've never used Visual Studio or Expression Web simply for writing HTML

FW: Use of GCHandle.Alloc and Free

2010-10-31 Thread Greg Keogh
You may recall two weeks ago I had to use code like this to stop a COM object from being collected: GCHandle cursorHandle = GCHandle.Alloc(feature.Cursor, GCHandleType.Normal); A few people suggested that it was overkill and simply making a local variable reference to feature.Cursor would

Canonical ASCII string roundtrip

2010-11-05 Thread Greg Keogh
Folks, I have a pair of utility methods that I wrote in Framework 1.0 that escapes and unescapes non-ASCII strings so I can roundtrip them via ASCII. So the string ABC123ΑΒΓ (last 3 chars are Greek) becomes ABC123\u0391\u0392\u0393 and I can later reverse it. This ancient manual code must be

RE: Canonical ASCII string roundtrip

2010-11-05 Thread Greg Keogh
Using Reflector to search string constants containing \u finds That's a nifty idea I forgot about. System.Web.HttpUtility.JavaScriptStringEncode in System.Web.dll and Drats! It's a one way process and it produces rather weird encoding. I did revisit HttpUtility HtmlEncode and UrlEncode, which

RE: Passing a Form as owner to System.Windows.MessageBox.Show()

2010-11-06 Thread Greg Keogh
Sorry for the late reply, I've had to popup MessageBox displays from various WPF components and stumbled across a similar problem. You can ask for: Window.GetWindow(DependencyObject foo); So the argument can be a UserControl. Otherwise I use this property:

ComVisible and Access client

2010-11-06 Thread Greg Keogh
I have to write a ComVisible DLL for an Access developer. My DLL will send and receive messages over a Socket on behalf of the Access client. I certainly know that VB6 clients can consume my ComVisible code, but Access is unknown territory. So before I start any code I though it prudent to ask

VB refactor

2010-11-09 Thread Greg Keogh
Have I got domestic blindness, or does Visual Studio 2010 Pro not have any Refactor menu or context menus in VB? I've just started coding my first VB since I installed VS2010 and I created an Interface, then a class which Implements it, but I can't find the command for quickly creating the

RE: Access and .NET COM events

2010-11-11 Thread Greg Keogh
Ian, Thomas, The Access developer has successfully registered, referenced and called my Comvisible DLL (that was never in doubt), and has advised me that Access has a WithEvents feature that she has not used with ActiveX components before. However, the fact that it exists hints that it will be

Azure DB performance

2010-11-23 Thread Greg Keogh
Folks, after an hour of suffering weird errors I managed to create my first Azure database and a small console app to copy rows from a local table into the Azure one. I got a bit of a fright when it took about 5 minutes to insert the 1177 rows into the Azure table. Luckily however, it only takes

RE: Azure DB performance

2010-11-23 Thread Greg Keogh
I claim my estimates of 5 minutes for insert of 1177 rows vs 2 seconds the select * is in the correct range. I have ADSL2 via Exetel. The insert calls were inside a DataReader loop and I had prepared the DataCommand parameters outside of the loop, setting the values inside the loop. I’m sure

[OT] VBScript return string runtime error

2010-11-27 Thread Greg Keogh
Folks, I'm using some VBSCript to drive a COM visible library and check it's working. But in the line in red below I get a runtime error. I'm just trying to get a string id back from the SendRequest call. If I remove the id = before the call then it works. What's crazy is that the previous

RE: [OT] VBScript return string runtime error

2010-11-27 Thread Greg Keogh
Does this mean you are sending back an object? request.Comment = Mock comment request.Body = This is a mock body text If it does is the object returned visible and compliant? No, 'request' is a COM object argument that I fill and send in the SendRequest method. The method returns a string.

RE: [OT] VBScript return string runtime error

2010-11-27 Thread Greg Keogh
I've been running experiments for almost two hours solid now, making mock functions and passing different arguments and return types in all combinations I can think of. I've cleaned my environment, registered, unregistered, etc. Everything works perfectly in unit tests, only in the VBS file I find

RE: [OT] VBScript return string runtime error

2010-11-29 Thread Greg Keogh
I've replicated your problem with a simple VB6 class. I'm not sure of the actual cause but your fix is: id = client.SendRequest((request)) (cut) Mark, pardon my French, but holy shit! That works. Putting (()) around the object argument sends it and gives me a string reply, which previously

  1   2   3   4   5   6   7   8   9   10   >