wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
6.11k stars 1.76k forks source link

Assert Error while deleting first group with no freeline #20569

Closed wxtrac closed 16 years ago

wxtrac commented 21 years ago

Issue migrated from trac ticket # 1204

component: GUI-all | priority: normal | resolution: fixed | keywords: wxFileConfig

2003-09-02 13:28:38: domi089 created the issue


If I want to delete the first group in a config file, where the first line of the file is not a free line, the following error occurs and the group will not be deleted:


../src/common/fileconf.cpp(1660): assert "!pNewLast || m_pLine == 0" failed: how comes it has the same line as we? [in child thread]

The Error occurs in 2.4.1 and also in Version 2.5 [CVS Date 1.Sep.2003]

Platform: SUN Solaris 8 Compiler: Sun WorkShop 6 update 2 C 5.3 2001/05/15

It doesn't work if the file looks like this:


[test] test1=123 test2=456

It works only if there is a freeline in the first line:


[test] test1=123 test2=456

The config file is created and filled by wxWindows fileconf

wxtrac commented 20 years ago

2004-09-23 07:46:42: tzi commented


Same problem happening here too, alas, with CVS from

  1. Obviously no fixes yet, otherwise this bug would be closed.

I'm looking through the wx source to see if I can fix it, but it's quite complicated, by the look of it. Still, I'll see what I can do.

wxtrac commented 16 years ago

2008-05-19 23:45:26: @wojdyr changed component from * to GUI-all*

wxtrac commented 16 years ago

2008-06-21 01:59:44: @wojdyr changed status from new to infoneeded_new

2008-06-21 01:59:44: @wojdyr commented

Do you know if this is still the case in wx 2.8 or 2.9?

wxtrac commented 16 years ago

2008-06-21 02:01:37: @vadz changed status from infoneeded_new to closed

2008-06-21 02:01:37: @vadz changed resolution from * to fixed*

2008-06-21 02:01:37: @vadz commented

I think this was fixed some time ago.