• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-1772
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Scouse Linden
Reporter: Siann Beck
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

Mono: Assigning a literal value to a key causes an exception

Created: 07/Mar/08 01:20 PM   Updated: 18/Mar/08 02:23 AM
Return to search
Component/s: Scripts
Affects Version/s: Mono Beta
Fix Version/s: Mono Beta

Issue Links:
Relates
 

Linden Lab Issue ID: DEV-11650
Linden Lab Internal Branch: mono-based-on-1-19-1-server-81640


 Description  « Hide
This script throws an exception:

key TheAnyKey;

default
{
state_entry() { TheAnyKey = NULL_KEY; llOwnerSay("Hello world!"); }
}

System.InvalidProgramException: Invalid IL code in LSL_2d835e04_fee6_b208_4a1e_e1549c71e776:defaultstate_entry (): IL_004a: stfld 0x04000001

at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]

This does not occur when assigning the value in a declare, or when assigning the value of a function or another variable. That is, this will run with no problem:

default
{
state_entry() { key TheAnyKey = NULL_KEY; key TheOtherKey = "34ffd167-9c28-4fb0-8f19-8b86294abf95"; TheAnyKey = llGetOwner(); TheAnyKey = TheOtherKey; llOwnerSay("Hello world!"); }
}



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.