splashThread.Abort();
Don't do that. The Thread must be told to terminate gracefully.
Greg
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
You are crazy.
Please stop feeding the tactless socially retarded troll.
Greg
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
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
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
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
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
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
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
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
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
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
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
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 };
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
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
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
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
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
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
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
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
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
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
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
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
[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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
?Activity_Id=23436siteref=myrddin
siteref=myrddin
It's also registered as an event in Facebook somewhere.
Cheers,
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
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
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
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
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
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
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
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
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
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.
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
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
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
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.
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
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
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
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
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
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:
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
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
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
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
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
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
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.
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
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 - 100 of 1582 matches
Mail list logo