It is not my code, it is Berlin

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

It is not my code, it is Berlin

Postby theLizard » Sun Jul 10, 2016 6:57 pm

I hate chasing ghosts, especially those I have not created...

Seems that I have a real problem with Berlin, to determine the issue, I created a new project, uninstalled my packages.

Created a new package with one component derived from TCheckBox, here is code

Code: Select all
.CPP

#include <vcl.h>
#pragma hdrstop

#include "CheckBoxNoCode.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
// ValidCtrCheck is used to assure that the components created do not have
// any pure virtual functions.
//

static inline void ValidCtrCheck(CheckBoxNoCode *)
{
   new CheckBoxNoCode(NULL);
}
//---------------------------------------------------------------------------
__fastcall CheckBoxNoCode::CheckBoxNoCode(TComponent* Owner)
   : TCheckBox(Owner)
{
}
//---------------------------------------------------------------------------
namespace Checkboxnocode
{
   void __fastcall PACKAGE Register()
   {
      TComponentClass classes[1] = {__classid(CheckBoxNoCode)};
      RegisterComponents(L"Atest", classes, 0);
   }
}
//---------------------------------------------------------------------------


Code: Select all
.H

//---------------------------------------------------------------------------

#ifndef CheckBoxNoCodeH
#define CheckBoxNoCodeH
//---------------------------------------------------------------------------
#include <System.SysUtils.hpp>
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
//---------------------------------------------------------------------------
class PACKAGE CheckBoxNoCode : public TCheckBox
{
private:
protected:
public:
   __fastcall CheckBoxNoCode(TComponent* Owner);
__published:
};
//---------------------------------------------------------------------------
#endif


As you can see there is absolutely no code other than the auto generated code by the component wizard.

I installed the package and placed it's single component on a form and ran it, compiled and performed as expected.

Moved the component from one location on the form to another, ran and got this;

after_move_object.png
after_move_object.png (44.38 KiB) Viewed 1436 times


and this;
Debugger_Exception.png
Debugger_Exception.png (49.52 KiB) Viewed 1436 times


I decided to again uninstall Berlin and re install, on shutting down Berlin to go through the process of uninstalling I get this;
System_Error.png
System_Error.png (55.68 KiB) Viewed 1436 times


After re installing Berlin leaving everything up to the installer (not making any changes) I repeated my steps and confirmed that there is a problem (at least with my installation).

Link with Dynamic RTL TRUE
Link with runtime packages FALSE or TRUE
- if set to code runs but window does not show and exist

Link with Dynamic RTL False
Link with runtime packages FALSE
- if both set FALSE code runs but,
- make any change on form, just moving a Standard component causes an Access Violation.
- Right click on project Clean after a change does NOT cause an Access Violation and runs without any issue.

This is where the Access Violation occurs after simply moving an object, any object from the standard palette

006DE307 8B19 mov ebx,[ecx] <========== error here

What the hell is going on here.

Code: Select all
006DE28E 8945BC           mov [ebp-$44],eax
006DE291 8B4618           mov eax,[esi+$18]
006DE294 50               push eax
006DE295 E8E2020000       call $006de57c
006DE29A 59               pop ecx
006DE29B 8945C0           mov [ebp-$40],eax
006DE29E 8B561C           mov edx,[esi+$1c]
006DE2A1 8D7D84           lea edi,[ebp-$7c]
006DE2A4 8955C4           mov [ebp-$3c],edx
006DE2A7 56               push esi
006DE2A8 BE502F6F00       mov esi,$006f2f50
006DE2AD B909000000       mov ecx,$00000009
006DE2B2 F3A5             rep movsd
006DE2B4 5E               pop esi
006DE2B5 897588           mov [ebp-$78],esi
006DE2B8 8B450C           mov eax,[ebp+$0c]
006DE2BB 89458C           mov [ebp-$74],eax
006DE2BE 8B55AC           mov edx,[ebp-$54]
006DE2C1 895590           mov [ebp-$70],edx
006DE2C4 F645A801         test byte ptr [ebp-$58],$01
006DE2C8 7532             jnz $006de2fc
006DE2CA 8B0D742F6F00     mov ecx,[$006f2f74]
006DE2D0 894DD4           mov [ebp-$2c],ecx
006DE2D3 8D4584           lea eax,[ebp-$7c]
006DE2D6 8945D4           mov [ebp-$2c],eax
006DE2D9 8D55D4           lea edx,[ebp-$2c]
006DE2DC 52               push edx
006DE2DD 6A01             push $01
006DE2DF 6A00             push $00
006DE2E1 6857006DC0       push $c06d0057
006DE2E6 E8295C0000       call $006e3f14
006DE2EB 33C0             xor eax,eax
006DE2ED 8B55D8           mov edx,[ebp-$28]
006DE2F0 64891500000000   mov fs:[$00000000],edx
006DE2F7 E930020000       jmp $006de52c
006DE2FC 8B4DB0           mov ecx,[ebp-$50]
006DE2FF 8B450C           mov eax,[ebp+$0c]
006DE302 2B45B4           sub eax,[ebp-$4c]
006DE305 85C0             test eax,eax
[b][color=#BF0000][size=150]006DE307 8B19             mov ebx,[ecx]   <========== error here   [/size][/color][/b]
006DE309 7903             jns $006de30e
006DE30B 83C003           add eax,$03
006DE30E C1F802           sar eax,$02
006DE311 8945D0           mov [ebp-$30],eax
theLizard
BCBJ Master
BCBJ Master
 
Posts: 439
Joined: Wed Mar 18, 2009 2:14 pm

Re: It is not my code, it is Berlin

Postby HsiaLin » Sun Jul 10, 2016 7:36 pm

My berlin locks up nearly everytime i click the upper right X to close it out.
I also noticed that most of the bugs from like 5 years ago are still present
in the IDE. Most are just irritants but still suck. It`d be nice of they would
take one week and just go thru and fix the little KNOWN bugs thats been
in there for years.
HsiaLin
BCBJ Master
BCBJ Master
 
Posts: 277
Joined: Sun Jul 08, 2007 6:29 pm

Re: It is not my code, it is Berlin

Postby theLizard » Sun Jul 10, 2016 8:22 pm

HsiaLin wrote:My berlin locks up nearly everytime i click the upper right X to close it out.

Its done that to me as well.

HsiaLin wrote:I also noticed that most of the bugs from like 5 years ago are still present
in the IDE. Most are just irritants but still suck.

For me, what I am getting here is way beyond irritating, it is holding me up from moving forward, it has wasted 3 - 4 days of my time chasing bugs that were not there to begin with. I do like some of it's features though.

HsiaLin wrote: It`d be nice of they would
take one week and just go thru and fix the little KNOWN bugs thats been
in there for years.


That would be nice :roll: but not holding my breath just yet.

Is 10.1 still in Beta testing?

Cheers
theLizard
BCBJ Master
BCBJ Master
 
Posts: 439
Joined: Wed Mar 18, 2009 2:14 pm

Re: It is not my code, it is Berlin

Postby rlebeau » Sun Jul 10, 2016 9:12 pm

theLizard wrote:Is 10.1 still in Beta testing?


No, since it has already been released. There is an Update being worked on, though. So make sure any issues you are having have been reported to Quality Portal.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1371
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA

Re: It is not my code, it is Berlin

Postby theLizard » Sun Jul 10, 2016 9:41 pm

rlebeau wrote:No, since it has already been released. There is an Update being worked on, though. So make sure any issues you are having have been reported to Quality Portal.


Yes, I have created a case, re installation issues, would it get to QA this way?
theLizard
BCBJ Master
BCBJ Master
 
Posts: 439
Joined: Wed Mar 18, 2009 2:14 pm


Return to Technical

Who is online

Users browsing this forum: Bing [Bot] and 5 guests

cron