From: Markus Kolb on
Hello,

what's the problem with an XPM file if there is such a failed assert?
What can you do that it doesn't fail?

Thanks a lot
Markus


16:27:53: ../src/common/rgncmn.cpp(111): assert "image.HasMask()"
failed: wxBitmap::ConvertToImage doesn't preserve mask?

Call stack:
[05] wxStackWalker::Walk(unsigned int)
[06] 0xb792f510
[07] 0xb792f69a
[08] wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t
const*)
[09] wxApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[10] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[11] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)
[12] wxRegion::Union(wxBitmap const&)
[13] wxTaskBarIconArea::SetTrayIcon(wxBitmap const&)
[14] wxTaskBarIconArea::wxTaskBarIconArea(wxTaskBarIcon*, wxBitmap const&)
[15] wxTaskBarIcon::SetIcon(wxIcon const&, wxString const&)
[16] Icons::switchOnline() ../src/Icons.cpp:36
[17] OnlineManager::goOnline() ../src/OnlineManager.cpp:55
[18] App1984::OnInit() ../src/main.cpp:97
[19] wxAppConsole::CallOnInit()
/usr/include/wx-2.6/wx/app.h:87


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: Vadim Zeitlin on
On Thu, 19 Oct 2006 16:34:29 +0200 Markus Kolb <usenet-092006(a)tower-net.de> wrote:

MK> what's the problem with an XPM file if there is such a failed assert?

It seems that there is a bug in wxBitmap to wxImage conversion in the
<<<insert-unspecified-port-you-use-here>>>

MK> What can you do that it doesn't fail?

The only thing to do is to fix the code which results in loss of the mask
during conversion I'm afraid.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: "Vinicius Lobosco" on
See it the bitmap file is on the right place (according to the given path).

/Vinicius

2006/10/19, Markus Kolb <usenet-092006(a)tower-net.de>:
>
> Hello,
>
> what's the problem with an XPM file if there is such a failed assert?
> What can you do that it doesn't fail?
>
> Thanks a lot
> Markus
>
>
> 16:27:53: ../src/common/rgncmn.cpp(111): assert "image.HasMask()"
> failed: wxBitmap::ConvertToImage doesn't preserve mask?
>
> Call stack:
> [05] wxStackWalker::Walk(unsigned int)
> [06] 0xb792f510
> [07] 0xb792f69a
> [08] wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t
> const*)
> [09] wxApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
> [10] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
> [11] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)
> [12] wxRegion::Union(wxBitmap const&)
> [13] wxTaskBarIconArea::SetTrayIcon(wxBitmap const&)
> [14] wxTaskBarIconArea::wxTaskBarIconArea(wxTaskBarIcon*, wxBitmap const&)
> [15] wxTaskBarIcon::SetIcon(wxIcon const&, wxString const&)
> [16] Icons::switchOnline() ../src/Icons.cpp:36
> [17]
> OnlineManager::goOnline() ../src/OnlineManager.cpp:55
> [18] App1984::OnInit() ../src/main.cpp:97
> [19] wxAppConsole::CallOnInit()
> /usr/include/wx-2.6/wx/app.h:87
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
>
>


--
---------------------------------
Vinicius Lobosco, PhD
www.paperplat.com

Svärdlångsvägen 39
SE-120 60 Stockholm
+46 73 925 8476
From: Markus Kolb on
Vinicius Lobosco wrote on 19.10.2006 17:48:
> See it the bitmap file is on the right place (according to the given path).
>

It is part of an XRC compiled in executable. The image is placed right
at the systray. So I can't see any problem and don't know if I should do
anything against and what.

> /Vinicius
>
> 2006/10/19, Markus Kolb <usenet-092006(a)tower-net.de>:
>>
>> Hello,
>>
>> what's the problem with an XPM file if there is such a failed assert?
>> What can you do that it doesn't fail?
>>
>> Thanks a lot
>> Markus
>>
>>
>> 16:27:53: ../src/common/rgncmn.cpp(111): assert "image.HasMask()"
>> failed: wxBitmap::ConvertToImage doesn't preserve mask?
>>
>> Call stack:
>> [05] wxStackWalker::Walk(unsigned int)
>> [06] 0xb792f510
>> [07] 0xb792f69a
>> [08] wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t
>> const*)
>> [09] wxApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
>> [10] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
>> [11] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)
>> [12] wxRegion::Union(wxBitmap const&)
>> [13] wxTaskBarIconArea::SetTrayIcon(wxBitmap const&)
>> [14] wxTaskBarIconArea::wxTaskBarIconArea(wxTaskBarIcon*, wxBitmap
>> const&)
>> [15] wxTaskBarIcon::SetIcon(wxIcon const&, wxString const&)
>> [16] Icons::switchOnline() ../src/Icons.cpp:36
>> [17]
>> OnlineManager::goOnline() ../src/OnlineManager.cpp:55
>> [18] App1984::OnInit() ../src/main.cpp:97
>> [19] wxAppConsole::CallOnInit()
>> /usr/include/wx-2.6/wx/app.h:87


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: "Vinicius Lobosco" on
And when you're not calling, for instance from a debug directory? In this
case, we can rule out this possibility. :-(

2006/10/19, Markus Kolb <usenet-092006(a)tower-net.de>:
>
> Vinicius Lobosco wrote on 19.10.2006 17:48:
> > See it the bitmap file is on the right place (according to the given
> path).
> >
>
> It is part of an XRC compiled in executable. The image is placed right
> at the systray. So I can't see any problem and don't know if I should do
> anything against and what.
>
> > /Vinicius
> >
> > 2006/10/19, Markus Kolb <usenet-092006(a)tower-net.de>:
> >>
> >> Hello,
> >>
> >> what's the problem with an XPM file if there is such a failed assert?
> >> What can you do that it doesn't fail?
> >>
> >> Thanks a lot
> >> Markus
> >>
> >>
> >> 16:27:53: ../src/common/rgncmn.cpp(111): assert "image.HasMask()"
> >> failed: wxBitmap::ConvertToImage doesn't preserve mask?
> >>
> >> Call stack:
> >> [05] wxStackWalker::Walk(unsigned int)
> >> [06] 0xb792f510
> >> [07] 0xb792f69a
> >> [08] wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*,
> wchar_t
> >> const*)
> >> [09] wxApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t
> const*)
> >> [10] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
> >> [11] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)
> >> [12] wxRegion::Union(wxBitmap const&)
> >> [13] wxTaskBarIconArea::SetTrayIcon(wxBitmap const&)
> >> [14] wxTaskBarIconArea::wxTaskBarIconArea(wxTaskBarIcon*, wxBitmap
> >> const&)
> >> [15] wxTaskBarIcon::SetIcon(wxIcon const&, wxString const&)
> >> [16] Icons::switchOnline() ../src/Icons.cpp:36
> >> [17]
> >> OnlineManager::goOnline() ../src/OnlineManager.cpp:55
> >> [18] App1984::OnInit() ../src/main.cpp:97
> >> [19] wxAppConsole::CallOnInit()
> >> /usr/include/wx-2.6/wx/app.h:87
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
>
>


--
---------------------------------
Vinicius Lobosco, PhD
www.paperplat.com

Svärdlångsvägen 39
SE-120 60 Stockholm
+46 73 925 8476