1. Win32lib Promblem

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

new topic     » topic index » view message » categorize

2. Re: Win32lib Promblem

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32lib Promblem

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Win32lib Promblem

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/

new topic     » goto parent     » topic index » view message » categorize

5. Re: Win32lib Promblem

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu