The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Posts Tagged ‘stack overflow’

.NET 4.5 versus 4.0 and C# 5 versus C# 4, or the funny way how StackOverflow closes good answers

Posted by jpluimers on 2014/02/27

I’m more and more amazed (actually I’m not, this is how life on forum-like communities when moderatorss take over) about which StackOverflow questsions get closed, and which ones stay alive.

It seems the best way is to ask longer questions way beyond what most moderatorss can grasp.

Closed:

Still open:

A great point in the comments of the first question is that

you can technically can write .NET 4.0 / C# 4 applications on a .NET 4.5 / C#5 equiped machine and deploy them on machines that only have .NET 4.0 and C# support.

Don’t. I learned that in the .NET 3.0/3.5 and C# 3.0/2.0 era that combining is bad as the version matrix allows for subtle combinations that are hard to test.

.NET 3.0 with C# 2.0 applications written on a system that had .NET 3.5 and C# 3.0 installed would occasionally fail on systems that only had .NET 3.0 and C# 2.0 installed.

–jeroen

Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 4.0, C# 5.0, Development, Software Development | Tagged: | Leave a Comment »

Where to watch for StackOverflow / StackExchange downtime status: @StackStatus, @TechCrunch, @HNTweets

Posted by jpluimers on 2014/02/17

Basically, stackstatus.net is not actively updated when severe things like DDoS happen. So the best way to be kept up to date is watch these links:

–jeroen

Posted in Pingback, SocialMedia, Stackoverflow | Tagged: , | Leave a Comment »

XSD/XML Schemas: resolving `Namespace ” is not available to be referenced in this schema` (via: StackOverflow)

Posted by jpluimers on 2013/09/01

While working on my Delphi: First try on an XSD for .groupproj files, I bumped into an error `Namespace ” is not available to be referenced in this schema`.

I added a targetNamespace attribute to the GroupProj.xsd so the .grouproj files would use the right namespace.

That resulted into two funny errors:

  1. Namespace ” is not available to be referenced in this schema.
    Visual Studio (which I normally use for editing XSD) would only throw this error on these elements:
    <xsd:element ...>
    So it would not throw them on nodes using the empty namespace.
    That was really confusing!
  2. When validating .grouproj files using this GroupProj.xsd, I would get this error for all .groupproj files:
    System.Xml.Schema.XmlSchemaValidationException: Type ‘<type>’ is not declared. (in this case for ‘<type>’  ‘ProjectType’).
    That was odd too: the ‘ProjectType’ was indeed declared, and should be valid.

I could hardly find any information about the latter error, but the former gave a few useful hits.

Thanks User weston – Stack Overflow. for answering this: it made me smack to my head (like usual, a case of EBCAK). Read the rest of this entry »

Posted in Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, Software Development, XML/XSD, XSD | Tagged: , , | 2 Comments »

When your Delphi XE Browsing Path has been destroyed Ken White to the rescue (via: Stack Overflow)

Posted by jpluimers on 2013/08/11

Something overwrote the Browsing Path of my Delphi XE installation.

Symptoms:

  • When debugging a project in “use debug DCUs” mode, the IDE cannot find RTL, VCL and Indy units.
  • When you type `System` in a source file, then press `Ctrl+Enter`, the IDE cannot find the source code to the `System.pas` unit.

It was faster to examine the Delphi XE Library registry settings from Ken White than comparing them with a backup or a fresh Delphi XE install.

Now it works fine…

–jeroen

via: Delphi can’t find System.dcu; what should the default path settings be? – Stack Overflow.

Posted in About, Delphi, Delphi XE, Development, Software Development | Tagged: , , | 2 Comments »

Map WebDAV Drive tool: works in Windows 8 and Windows 7

Posted by jpluimers on 2013/02/15

Wow, I wish I had found this tool a lot earlier: Map WebDAV Drive.

–jeroen

via: windows – Mapping a Network Drive with Delphi WITHOUT WNetAddConnection2 – Stack Overflow.

Posted in Power User, Windows, Windows 7, Windows 8 | Tagged: , , , , | Leave a Comment »

Some notes on multi-touch and Windows

Posted by jpluimers on 2012/10/06

While fooling around with Microsoft Surface, you are astonished with the number of fingers it supports: 10 is no problem on the Samsung SUR40 which can also do full HD resolution (more specs here).

Not so with the standard Windows 7 touch support: that has only 2.

As I want to increase that to better mimic the development environment to the actual environment a few notes:

–jeroen

Posted in .NET, Development, Microsoft Surface, Microsoft Surface on Windows 7, Software Development, Windows 7, Windows 8 | Tagged: , , , , , , , , , , , , | 1 Comment »

Delphi: path names both in .dpr and .dproj, why? (refactoring – How to reorganize the folder structure of my units in Delphi? – Stack Overflow)

Posted by jpluimers on 2012/09/27

Cool: learned something new here:

About the path names of files being in the .dproj as well as in the .dpr:

@Jeroen – Looks like msbuild might need those entries, otherwise they’re possibly redundant, AFAICT… In any case, there is not much editing involved, just delete ‘dccreference’ entries and then a ‘save all’ in the IDE regenerates them. – Sertac Akyuz

–jeroen

via: refactoring – How to reorganize the folder structure of my units in Delphi? – Stack Overflow.

Posted in Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Development, Software Development | Tagged: , , , , , , | 14 Comments »

Delphi, solutions for `while debugging with Environment Variable “The program can’t start because ….dll is missing”‘

Posted by jpluimers on 2012/09/14

Two days ago I ran into the bug below while porting some code from Delphi 2006 to Delphi XE2, posted on StackOverflow, and got solutions in very little time.

Thanks Andreas HausladenDavid Heffernan, Ken WhiteSertac Akyuz, Rudy Velthuis, for answering, providing solutions and verifying!

Note that this worked up until Delphi XE, and has been fixed in Delphi XE3 (which for this project I can’t use as the client upgraded to XE2 without SA).

Problem

  • I get the error mentioned further on error when debugging an executable in Delphi XE2 update 4 under these circumstances:
  • that depends on mqic.dll from WebShpere that is in C:\Program Files \IBM\WebSphere MQ\bin\mqic.dll and C:\Program Files\IBM\WebSphere MQ\bin is on the system path (not on the user path).
  • is being debugged with an override environment variable in the Run -> Parameters -> Debugger -> Environment Block -> User overrides
  • Including System Variables on the same property page is checked

This is the error (it’s a Windows DLL load error marked “System Error”).

The program can’t start because mqic.dll is missing from your computer. Try reinstalling the program to fix this problem.

Solutions

–jeroen

via delphi – while debugging with Environment Variable “The program can’t start because ….dll is missing” – Stack Overflow.

Posted in Delphi, Delphi 2006, Delphi 2007, Delphi XE, Delphi XE2, Delphi XE3, Development, Software Development | Tagged: , , , | Leave a Comment »

Crap: VersionInfo handling broken as of Delphi XE2

Posted by jpluimers on 2012/09/11

Today I found out the hard way that you really need a build integration system for managing VersionInfo in Delphi applications: as of Delphi XE2 it is broken in the IDE.

See these links:

This is the only workable workaround so far:

–jeroen

Posted in Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 5, Delphi 6, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Development, Software Development | Tagged: , , , , , , , , | 14 Comments »

Link clearance on the recent Delphi XE3 and WinRT stir

Posted by jpluimers on 2012/08/25

Just for my own record, a link clearance of WinRT in relation to Delphi.

I amended this a couple of time already, will try to do so over time: Read the rest of this entry »

Posted in Delphi, Development, Software Development, WinRT-with-Delphi | Tagged: , , , , , | 3 Comments »