Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » AddColumn(0, ...) crashes
AddColumn(0, ...) crashes [message #41247] Mon, 18 November 2013 15:57 Go to previous message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Hello unodgs

Now calling GridCtrl::AddColumn(const char *name, int size, bool idx) with name = 0 will crash the program as it calls ToLower(name).

The reason is that AddColumn() calls ToLower(), that calls FromUtf8(), that calls utf8len(), that calls strlen, and strlen(NULL) raises an exception.

Could you prevent it?

It is added in Redmine here.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [BUG & FIX] [GridCtrl] Copy on GridCtrl with no selection will crash a program.
Next Topic: GridCtrl and background color of a row
Goto Forum:
  


Current Time: Mon Apr 12 19:01:03 CEST 2021

Total time taken to generate the page: 0.01290 seconds