• 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-1831
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Major Major
Assignee: Unassigned
Reporter: Ralph Doctorow
Votes: 0
Watchers: 0
Operations

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

Implicit integer to float conversion in conditional causes Invalid IL code exception

Created: 13/Mar/08 06:49 PM   Updated: 18/Mar/08 10:44 AM
Return to search
Component/s: Scripts
Affects Version/s: Mono Beta
Fix Version/s: None

Environment:
Second Life 1.18.6 (77968) Jan 29 2008 20:06:25 (Second Life Release)

You are at 255378.9, 255203.2, 21.4 in Sandbox Wanderton MONO located at sim3000.aditi.lindenlab.com (8.2.33.226:13005)
Mono 1.19.1.82025

CPU: Intel Pentium 4 (Unknown model) (3192 MHz)
Memory: 3071 MB
OS Version: Microsoft Windows XP Service Pack 2 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 6800/PCI/SSE2
OpenGL Version: 2.1.1
LLMozLib Version: 1.1.0 (Mozilla GRE:1.8.0.12_0000000000)
Packets Lost: 16/54672 (0.0%)
Viewer Digest: 3bb91f71-43e8-7bd9-be82-8ffb1b7bdf10
Issue Links:
Duplicate
 
Relates
 


 Description  « Hide
The following script causes an Invalid IL code exception when it's object is touched, changing the (ff == 0) to (ff == 0.) works:

default {
state_entry() { }

touch_start(integer num) {
float ff;
if (ff == 0) { // if(ff == 0.) { llOwnerSay("Implicit conversion worked"); }
}
}

[18:41] Burled Gold Frame: Script run-time error
[18:41] Burled Gold Frame: System.InvalidProgramException: Invalid IL code in LSL_d87753bd_6364_1fd0_b217_57c6a9cec978:defaulttouch_start (int): IL_0066: ceq

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]



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