IonicWind Software

IWBasic => General Questions => Topic started by: yujinwunz on January 13, 2009, 03:32:05 AM

Title: compiler stopped working
Post by: yujinwunz on January 13, 2009, 03:32:05 AM
i was compiling my program when all of a sudden windows vista said the emergence basic compiler stopped working. it never happened before. the emergence basic shell window was normal, responsive and still has the message:

compiling...
a0.0.8.eba

and after a second it said (-edit- that was after i clicked "cancel" and "close" to the error report things"

"Error(s) in compiling "C:\Users\user\Desktop\Yujin Wu's Games DO NOT DELETE\a0.0.8.eba"

i tried it again and it did the same thing.

i tried one of my older programs and it worked.
the program i am compiling is awfully long, but the problem happened after i made a subroutine named "limit(num as float, max as float),float"

im using EB 1.58

any ideas as to why its happening?
anyone having the same problem?
ive read in update anouncements about this memory leak bug found and fixed, so
should i upgrade?

any response is appreciated, because ive been on about it for 45 hours >:( (-edit- 45 minutes)

a subquestion i would also like to know, is it possible in emergence basic, using some kind of dll or something, to compile programs for mac? ive got something my friend would really like to see on his new unlaggy mac.

Title: Re: compiler stopped working
Post by: mrainey on January 13, 2009, 07:19:13 AM
Quoteshould i upgrade?


Yes.
Title: Re: compiler stopped working
Post by: Ionic Wind Support Team on January 13, 2009, 09:10:36 AM
Considering your using a 2 year old unsupported version, yes you should.
Title: Re: compiler stopped working
Post by: yujinwunz on January 13, 2009, 02:50:58 PM
oh dear, it's two years old
Title: Re: compiler stopped working
Post by: yujinwunz on January 13, 2009, 03:18:55 PM
it doesnt work. ive downloaded 1.69 demo and the compiler still stops working. :-\ its probably my program, i will look into it further. the only time i used "limit(num,max)" was as a parameter in an RGB function.
Title: Re: compiler stopped working
Post by: yujinwunz on January 13, 2009, 03:24:15 PM
ive just taken limit out of the rgb function and replaces it with "0" and it compiles, with the decleration of limit and it's definition still intact.

here is the function:

SUB limit(num as float, max as float)

DEF num1 as float
num1 = num
IF num1 < 0 THEN num = 0
IF num1> max THEN num = max

RETURN num

ENDSUB


and here is the declare

DECLARE limit(num as float, max as float), float


and the only place ive used it

DRAWRECT mag*(ex[i]+panx-0.5*eb[i]), mag*(ey[i]+pany-0.5*eb[i]), mag*eb[i],mag*eb[i],RGB(100+(ee[i]/2),ee[i],limit(6*(ee[i]-200,240))
Title: Re: compiler stopped working
Post by: yujinwunz on January 13, 2009, 03:32:53 PM
 :(

omg. i feel so bad for wasting people's time.

ive put a parenthesis in the wrong place.

sorry those who tried to help me