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 2,091 other followers

Archive for August, 2014

Funny: Windows 7 BSOD and repair giving an “Unknown Bugcheck 50”

Posted by jpluimers on 2014/08/29

Had a funny error on one of my Windows 7 development VMs today: “Unknown Bugcheck: Bugcheck 50

I hadn’t used the VM for about 2 months, and left it in a suspended state. After resuming it got into a BSOD, booting would hang at the Windows logo, and a second boot would get into the Windows Startup Repair.

Startup Repair indicated it could not resolve the issue, offered a “Restore” (which I declined) then told me something like

Root cause found:
Unknown Bugcheck: Bugcheck 50. Parameters = 0xfffff880009aafb8, 0x0, 0xfffff8000347bc60, 0x0.

The solution was very simple: Read the rest of this entry »

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

Git: how to resolve merge conflicts | softwarecave

Posted by jpluimers on 2014/08/28

Often the git command-line is easier to than merge a combination of changes, moves and deletions using SourceTree.

If you know how to read the git status output, and to act accordingly.

This tells you how: Git: how to resolve merge conflicts | softwarecave.

–jeroen

Posted in Development, DVCS - Distributed Version Control, git, Power User, Source Code Management | Leave a Comment »

Delphi: always watch the compiler Warnings

Posted by jpluimers on 2014/08/28

Quiz questions:

  1. Does the below unit test succeed or fail?
  2. Why?
procedure TestHResult.Test_EOleException;
var
  OleException: EOleException;
  IResult: LongInt; // == HResult
  UResult: Cardinal; // == DWord
begin
  IResult := $800A11FD;
  UResult := $800A11FD;
  try
    OleException := EOleException.Create('message', $800A11FD, 'source', 'helpfile', -1);
    raise OleException;
  except
    on E: EOleException do
    begin
      if E.ErrorCode = $800A11FD then
        Exit;
      Self.CheckEquals(E.ErrorCode, $800A11FD, 'E.ErrorCode should equal $800A11FD');
    end; // E: EOleException
  end;
end;

Read the rest of this entry »

Posted in Conference Topics, Conferences, Delphi, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, Event, Software Development | 2 Comments »

Funny: 2300+ hits and counting…

Posted by jpluimers on 2014/08/27

Not sure why, but this article that I write 4 years ago suddenly got 2300 hits from Google Search in a few hours time: Solution for “Error Code: 0x80246002″ on Microsoft Update when installing “Microsoft .NET Framework 4 for Windows Server 2003 x86 KB982671”.

Microsoft just got some 300 extra .NET 4.0 installer downlaods through it too (:

–jeroen

Posted in About, Personal | 5 Comments »

A way for a VCL TFrame to be notified when it is actually shown (via G+)

Posted by jpluimers on 2014/08/27

Interesting, as I didn’t think this was possible. Thanks Oliver Funcke!

Notification when a `TFrame` becomes visible.

TMyCommonFrame = class(TFrame)
  private
    FOnShow: TNotifyEvent;
    procedure CMShowingChanged(var M: TMessage); message CM_SHOWINGCHANGED;
  public
    property OnShow : TNotifyEvent read FOnShow write FOnShow;
  end;
...
procedure TMyCommonFrame.CMShowingChanged(var M: TMessage);
begin
  inherited;
  if Showing and Assigned(FOnShow) then
    FOnShow(Self);
end;

–jeroen

via Is there any way for a VCL TFrame to be notified when it is actually shown to….

Posted in Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, Software Development | Leave a Comment »

 
%d bloggers like this: