Unhandled exception error in Visual Studio 2012 vi

Discussion and feedback on Construct 2

Post » Mon Mar 04, 2013 6:34 am

My Construct2 apps are giving me errors after I port them to VS2012, and create app packages.

None of my apps pass the Wind 8 preliminary tests, and this was not the case a week ago.

Any ideas on what this error could be?

This is the error..

'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/1.0)'.
Exception was thrown at line 3, column 24970 in ms-appx://13023myappdevname.myappname/jquery-1.7.1.min.js
0x800a139e - JavaScript runtime error: SyntaxError
The program '[3140> WWAHost.exe' has exited with code -1 (0xffffffff).

simpleStudentLA2013-03-04 06:35:05
B
4
Posts: 7
Reputation: 565

Post » Mon Mar 04, 2013 8:21 am

Forgot to mention..this error code happens in Visual Studio 2012, but it is a result of Construct 2 games.

B
4
Posts: 7
Reputation: 565

Post » Mon Mar 04, 2013 1:25 pm

Are you using any third party plugins? If not, sharing your .capx would help us resolve this.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Mar 04, 2013 4:20 pm

I am not using any third party plugins.

Here is my .capx file....

http://ge.tt/1U7Fk0a/v/0?c

I tested out the default Space Blaster game to see if I would encounter the problem with it, and I did encounter the problem.

I still haven't found an answer.

However, I think the problem arises when I try to use the touch feature along with the mouse to control the player sprite movement and the left-click button to fire.

I don't define a mouse object when I use touch, so I am using the mouse without it being defined, and I am clicking on the left-mouse button to fire without it being defined, too.

This is really a bad programming practice, and I don't know why I didn't think about this earlier.

I'm going to try to bypass this problem by only using the mouse to control the sprite, but not use it also for firing bullet sprites, and I'm going to explicitly define a mouse object, too.


I really think this is the reason I am getting this error, but I will look into it further today when I return from school.

There might be a problem with the touch automatically detecting mouse activity or something.


Thank you for responding to me.

B
4
Posts: 7
Reputation: 565

Post » Tue Mar 05, 2013 7:38 am

This problem went away after separating the functions away from the mouse. So now I only use the mouse to control player objects, and I only use the keyboard to shoot.

I'm going to see if my solution is valid by testing it out with a default construct2 game such as Space Shooter, and then I'm going to make one of my own for verification purposes.

Thank you.
B
4
Posts: 7
Reputation: 565

Post » Sun May 26, 2013 4:50 am

Ive got the same error with one of my creation using 132

'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/1.0)'.
Exception was thrown at line 4, column 12067 in ms-appx://55a59d10-7177-49bc-aa59-cf58638e6674/jquery-2.0.0.min.js
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 4, column 12277 in ms-appx://55a59d10-7177-49bc-aa59-cf58638e6674/jquery-2.0.0.min.js
0x800a139e - JavaScript runtime error: SyntaxError

Ive got no idea whats the issue. Works ok with another program I have created.

Did you ever find a solution the error??
B
12
G
1
Posts: 18
Reputation: 1,388

Post » Sun May 26, 2013 1:38 pm

Share a .capx if you want us to help.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Construct 2 General

Who is online

Users browsing this forum: spacedoubt, Unconnected and 1 guest