[Mono-bugs] [Bug 531006] New: Order of field declarations in a class crashes my application

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 13 16:19:56 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=531006


           Summary: Order of field declarations in a class crashes my
                    application
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: chris at foundation42.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: Beta-Customer


Created an attachment (id=312797)
 --> (http://bugzilla.novell.com/attachment.cgi?id=312797)
Sample reproducing the problem

Description of Problem:
=======================

My application crashes depending on the order in which I declare the fields in
my main class.

It runs for a short while and the exits.  I'm guessing that the crash occurs at
the first invocation of the garbage collector?

This is a problem for me because the sample is actually a small portion of my
game that I intend to ship.  


Steps to reproduce the problem:
===============================
1. Extract my sample (attached)
2. Open the solution in MonoDevelop
3. Build the solution for iPhone (Debug or Release)
4. Deploy the solution a device
5. Note that the application runs fine
6. Open Main.cs and read the comment at line 17
7. Change the conditional to "true"
8. Build and deploy again
9. Note that the application crashes after a few seconds


Actual Results:
===============

Application runs for a few seconds and then prematurely exits with no error.

Expected Results:
=================

Application continues to run.

How often does this happen? 
===========================

Every time.

Additional Information:
=======================

I am running on the current SDK drop from the 2nd week of august.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list