Segfault on IDE start


<h3><details><summary>Original Reporter info from Mantis: <small>Almindor</small></summary><small>

- **Reporter name:** Ales Katona
</small></details></h3>

## Description:

Error:<br/>
./lazarus <br/>
TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32<br/>
Segmentation fault (core dumped)

GDB:

```
0x0814f3cb in TWINCONTROL__GETCLIENTRECT (this=0xb75c9bd0, result=
        {LEFT = -1208511136, TOP = 341, RIGHT = -1085173664, BOTTOM = 135657582, TOPLEFT = {X = -1208511136, Y = 341}, BOTTOMRIGHT = {X = -1085173664, Y = 135657582}}) at wincontrol.inc:2348
```

Backtrace:

Too long, cutting off:

```
#0  0x0814f3cb in TWINCONTROL__GETCLIENTRECT (this=0xb7611bd0, result=
        {LEFT = -1208216224, TOP = 341, RIGHT = -1088769952, BOTTOM = 135657582, TOPLEFT = {X = -1208216224, Y = 341}, BOTTOMRIGHT = {X = -1088769952, Y = 135657582}}) at wincontrol.inc:2348
#1  0x0815956a in TCONTROL__GETCLIENTWIDTH (this=0xb7611bd0)
    at control.inc:1217
#2  0x081561a6 in FIXATESIDE (SIDE=AKRIGHT, parentfp=0xbf1ab0c8)
    at wincontrol.inc:5892
#3  0x08156100 in TWINCONTROL__GETCHILDBOUNDS (CHILDBOUNDS=
        {LEFT = 0, TOP = 0, RIGHT = 429, BOTTOM = 341, TOPLEFT = {X = 0, Y = 0}, BOTTOMRIGHT = {X = 429, Y = 341}}, WITHBORDERSPACE=true, this=0xb7611bd0)
    at wincontrol.inc:5938
#4  0x0814e492 in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1890
#5  0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#6  0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#7  0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#8  0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#9  0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#10 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
---Type <return> to continue, or q <return> to quit---
    at wincontrol.inc:1961
#11 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#12 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#13 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#14 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#15 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#16 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#17 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#18 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#19 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#20 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#21 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#22 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#23 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#24 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
---Type <return> to continue, or q <return> to quit---
    at control.inc:4099
#25 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#26 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#27 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#28 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#29 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#30 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#31 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#32 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#33 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#34 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#35 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#36 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#37 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
---Type <return> to continue, or q <return> to quit---
#38 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#39 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#40 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#41 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#42 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#43 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#44 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#45 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#46 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#47 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#48 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
#49 0x0814e74c in TWINCONTROL__DOAUTOSIZE (this=0xb7611bd0)
    at wincontrol.inc:1961
#50 0x08156dcb in TCONTROL__ADJUSTSIZE (this=0xb7611bd0) at control.inc:49
#51 0x0815fa26 in TCONTROL__ENABLEAUTOSIZING (this=0xb7611bd0)
    at control.inc:4099
...
```

## Additional information:

Also with gtk2

## Mantis conversion info:

- **Mantis ID:** 9372
- **OS:** Linux
- **OS Build:** 2.6
- **Platform:** x86_32
- **Version:** 0.9.23 (SVN)
- **Fixed in version:** 0.9.23 (SVN)
- **Target version:** 0.9.24

Story points: 100.0