Variable Scope - Moving events

Bugs will be moved here once resolved.

Post » Mon Aug 22, 2011 9:18 pm

C2 r50; Windows XP SP3; FireFox 6.0; ATI Radeon HD 4800
^ not r51 yet ^^

When moving code from a level to another and that the code is concerning a local variable, so becomes out of scope, C2 crashes.

Ex:
Group
     Main event
          * Local var something
          Subevent something = true

Moving subevent to Main event level (with or without including Local var something in the selection) makes a crash
A microsoft VC++ runtime error window.Kyatric2011-08-22 21:20:37
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Thu Aug 25, 2011 5:10 pm

Hey, just got round to looking at this. I can't reproduce. I made some events along the lines you described (.capx) but I can't reproduce any crash in r51.2. Am I missing something?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Thu Aug 25, 2011 5:58 pm

I've just installed r51.2

In your capx:
Select the blank subevent under Variable1 definition.
Move it up either on top of the "every tick" event or on top of "Group" (top of the event list).
C2 crashes.

Now I have a window crash error (See the windows report)


On another note, the load fix seems to work. I haven't had any error window on loading a project yet. I'm crossing my fingers so that it keeps on.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Thu Aug 25, 2011 7:18 pm

Ah, I see, got it. Fixed for next build!
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Sun Aug 28, 2011 1:30 am

Can you check this is fixed in the new r52?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests