trouble with wxWindow
- Posted by Greg Haberek <ghaberek at gmail.com> Nov 14, 2005
- 426 views
I just starting using wxEuphoria, and I'm trying to create a wxWindow, but I keep getting an error. The parameters for creating a wxWindow are: - atom parent - atom id - sequence title - integer x [ = -1] - integer y [ = -1] - integer cx [ = -1] - integer cy [ = -1] - atom style [ = 0] Here's some test code:
include wxEuphoria.e without warning constant MainWin = create(wxFrame, {0,-1,"wxWindow Error Demo",-1,-1,640,480} ) constant Panel = create(wxPanel, {MainWin}) -- uncomment the following line to cause a crash: --constant Win01 = create(wxWindow, {Panel,-1,""}) wxMain( MainWin )
Here's the crash: C:\EUPHORIA\wxEuphoria\wxEuphoria.e:7009 in function new_wxWindow() slice ends past end of sequence (4 > 3) params = {9072648,-1,{}} window = {9072648,-1,18749451,18749443,0,18348988} len = 3 ... called from C:\EUPHORIA\wxEuphoria\wxEuphoria.e:6165 in function create() class_ = 30 params = {9072648,-1,{}} rid = 5 ... called from C:\EUPHORIA\PROJECTS\DateManager\window_error.exw:8