Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Compiler or syntax error?

Author
Message
Neuro Fuzzy
16
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 2nd Apr 2012 03:49
I have a vector2 type:

and these three functions:


When I call the functions like so:

It compiles and runs fine, and displays the correct results.

However, when I nest the commands like so:

The compiler runs for a bit, and then terminates with the error:
Quote: "Compiling: main.agc
Process terminated with status -1073741819 (0 minutes, 3 seconds)"



I'm not sure if this is a compiler error or a syntax issue, so I thought I'd ask here before sending a bug report.

Grumpy Jedi
14
Years of Service
User Offline
Joined: 16th Jan 2010
Location:
Posted: 2nd Apr 2012 04:38
This is an error with the compiler that is a known issue.

I personally don't know what causes it, but I can offer you some suggestions that may get you past the problem.

Try adding a comment line right before the line where you nest the commands and compile. If it then compiles without error you're done. If not, try the next step.

Remove the comment line you just made and place a line that assigns a random variable of your choosing a value of 1.

For instance, when I run into this problem I just add the line...
bugit = 1

Then compile.

One of those solutions usually always stops the compiler error for me. I have a number of bugit = 1 lines in my program right now.

Good Luck!
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 11th Apr 2012 02:08
This sounds like a great candidate for: http://code.google.com/p/agk/issues/list

I drink tea, and in my spare time I write software.

Login to post a reply

Server time is: 2024-05-08 14:21:39
Your offset time is: 2024-05-08 14:21:39