Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
unknown exception
killerbot:
no idea if this might give any hints or not, but tiwag and I suffered also from a problem tht our debug toolbar was gone. The only way to get it back was deleting the <LAYOUT> ... crc ... thingy. This was on a windows NON unicode build.
Hope this is usefull information.
thomas:
Oh Yes!! And I think I know what is wrong. Look:
http://www.wxwidgets.org/manuals/2.6.2/wx_wxmeminputstream.html#wxmemoryinputstreamctor
It takes len chars, but wxString has len wchars in Unicode!
So we have to... umm... do without a wxString outside wxDockit. The base64 data is byte data, by definition. But... if we put it into a wxString, it is transformed to double-byte nevertheless. It does not matter normally, but here it does, because wxMemoryInputStream apparently does not understand Unicode...
So we have to allocate a char[] and copy the characters from the string in there.... or rewrite both Base64Decode and ConfigManager. I guess copying the characters to a char[] will be easier.
takeshimiya:
I don't understand this, in wx/mstream.h the ctor is defined as
--- Code: ---wxMemoryInputStream(const void *data, size_t length);
--- End code ---
and not as
--- Code: ---wxMemoryInputStream(const char *data, size_t length);
--- End code ---
280Z28:
If this builds, I have a patch for you. What. A.Pain. That. Was. :shock:
All the other patches I already posted on SF.
I keep switching between unicode and non to make sure both are working... not just one.
thomas:
--- Quote from: Takeshi Miya on December 17, 2005, 01:35:25 am ---I don't understand this, in wx/mstream.h the ctor is defined as
--- Code: ---wxMemoryInputStream(const void *data, size_t length);
--- End code ---
and not as
--- Code: ---wxMemoryInputStream(const char *data, size_t length);
--- End code ---
--- End quote ---
No...?
--- Quote from: http://www.wxwidgets.org/manuals/2.6.2/wx_wxmeminputstream.html#wxmeminputstream ---wxMemoryInputStream::wxMemoryInputStream
wxMemoryInputStream(const char * data, size_t len)
--- End quote ---
Apart from that, sizeof(void) == sizeof(char) so it would not matter anyway.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version