Hello, I created a dialog in wxFormBuilder that made wxCodeGen hang when generating the code due to wxBitmapButtons. The problem was in the "DoBitmap" method in code_gen.bmx because of an array index out of bounds. I just added a check for this and it seems to work ok now. [edit] but may not be generating the code properly. I thought maybe it was trying to load bitmaps for unused things like onFocus, but maybe not. Anyway too late to check further now, will check tomorrow!
Method DoBitmap:String(bm:String) Local text:String = "" Local bitmap:String[] = bm.Split(";") text:+ "wxBitmap.CreateFromFile(~q" + bitmap[0] + "~q, " If bitmap[0] Local kind:String = bitmap[0].Split(".")[1].ToUpper() Select kind Case "PNG" text:+ "wxBITMAP_TYPE_PNG" Default text:+ "wxBITMAP_TYPE_ANY" End Select text:+")" End If Return text End Method