1. Win32lib Promblem
- Posted by Andy <videogamefreak101 at hotmail.com> Aug 27, 2004
- 436 views
I tried to make a tab control however i got this error when I tried to run the program. C:\EUPHORIA\include\win32lib.ew:15773 in function NewControl() subscript value 193 is out of bounds, reading from a sequence of length 52
2. Re: Win32lib Promblem
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 29, 2004
- 436 views
- Last edited Aug 30, 2004
Andy wrote: > > I tried to make a tab control however i got this error when I tried to run > the program. > C:\EUPHORIA\include\win32lib.ew:15773 in function NewControl() > subscript value 193 is out of bounds, reading from a sequence of length 52 Can I see the lines of code in YOUR application that has triggered this message? There is not information in your post to work out what might be the problem. -- Derek Parnell Melbourne, Australia
3. Re: Win32lib Promblem
- Posted by Andy <videogamefreak101 at hotmail.com> Aug 30, 2004
- 434 views
- Last edited Aug 31, 2004
Derek Parnell wrote: > > Andy wrote: > > > > I tried to make a tab control however i got this error when I tried to run > > the program. > > C:\EUPHORIA\include\win32lib.ew:15773 in function NewControl() > > subscript value 193 is out of bounds, reading from a sequence of length 52 > > Can I see the lines of code in YOUR application that has triggered this > message? There is not information in your post to work out what might be > the problem. > > -- > Derek Parnell > Melbourne, Australia > constant Tabber3 = createEx(TabControl,"",EDWin,10,10,100,25,0,0), TabHero = createEx(TabItem,"Heroes",Tabber3,0,0,0,0,0,0), TabEnemy = createEx(TabItem,"Enemies",Tabber3,0,0,0,0,0,0), TabBoss = createEx(TabItem,"Bosses",Tabber3,0,0,0,0,0,0), TabRig = createEx(TabItem,"Rigs",Tabber3,0,0,0,0,0,0), TabItem = createEx(TabItem,"Items",Tabber3,0,0,0,0,0,0), TabElement = createEx(TabItem,"Elements",Tabber3,0,0,0,0,0,0) The error comes up with the "TabElement", if I get rid of the tab element then i won't get the error. Please help
4. Re: Win32lib Promblem
- Posted by cklester <cklester at yahoo.com> Aug 30, 2004
- 424 views
- Last edited Aug 31, 2004
I ran the code below and it generated no errors. You'll probably have to supply a little bit more code. --my test code include win32lib.ew constant EDWin = create(Window,"Mine",0,0,0,0,0,0) constant Tabber3 = createEx(TabControl,"",EDWin,10,10,100,25,0,0), TabHero = createEx(TabItem,"Heroes",Tabber3,0,0,0,0,0,0), TabEnemy = createEx(TabItem,"Enemies",Tabber3,0,0,0,0,0,0), TabBoss = createEx(TabItem,"Bosses",Tabber3,0,0,0,0,0,0), TabRig = createEx(TabItem,"Rigs",Tabber3,0,0,0,0,0,0), TabItem = createEx(TabItem,"Items",Tabber3,0,0,0,0,0,0), TabElement = createEx(TabItem,"Elements",Tabber3,0,0,0,0,0,0) --end test code -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
5. Re: Win32lib Promblem
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 30, 2004
- 446 views
- Last edited Aug 31, 2004
Andy wrote: > > Derek Parnell wrote: > > > > Andy wrote: > > > > > > I tried to make a tab control however i got this error when I tried to run > > > the program. > > > C:\EUPHORIA\include\win32lib.ew:15773 in function NewControl() > > > subscript value 193 is out of bounds, reading from a sequence of length 52 > > > > Can I see the lines of code in YOUR application that has triggered this > > message? There is not information in your post to work out what might be > > the problem. > > > > -- > > Derek Parnell > > Melbourne, Australia > > > constant Tabber3 = createEx(TabControl,"",EDWin,10,10,100,25,0,0), > TabHero = createEx(TabItem,"Heroes",Tabber3,0,0,0,0,0,0), > TabEnemy = createEx(TabItem,"Enemies",Tabber3,0,0,0,0,0,0), > TabBoss = createEx(TabItem,"Bosses",Tabber3,0,0,0,0,0,0), > TabRig = createEx(TabItem,"Rigs",Tabber3,0,0,0,0,0,0), > TabItem = createEx(TabItem,"Items",Tabber3,0,0,0,0,0,0), > TabElement = createEx(TabItem,"Elements",Tabber3,0,0,0,0,0,0) > > The error comes up with the "TabElement", if I get rid of the tab element > then i won't get the error. Please help I'd love to help, but you've got work with me. The code above is an odd way of doing things but it doesn't crash. Why don't you take a copy of your program and chip away at it by slowly removing stuff until you get the smallest program that still has the the problem. Then email me the (small) source code so I can inspect it. Often, by doing this process, a programmer finds the problem themselves. You confidentiality is guaranteed. -- Derek Parnell Melbourne, Australia