Skip to content

Instantly share code, notes, and snippets.

View schani's full-sized avatar
⌨️
I just sit at my computer and curse a bit.

Mark Probst schani

⌨️
I just sit at my computer and curse a bit.
View GitHub Profile
<%@ Page Language="C#" %>
<html>
<script runat=server>
private static int _clicked = 0;
void Clicked (object o, EventArgs e)
{
uno.InnerText = String.Format ("Somebody pressed me {0} times.", ++_clicked);
}
private static int _txt_changed = 0;
diff --git a/mono/metadata/sgen-gc.c b/mono/metadata/sgen-gc.c
index d4f309b..ab9b1f9 100644
--- a/mono/metadata/sgen-gc.c
+++ b/mono/metadata/sgen-gc.c
@@ -6913,12 +6913,17 @@ mono_gc_make_root_descr_all_refs (int numbits)
{
gsize *gc_bitmap;
void *descr;
+ int num_bytes = numbits / 8;
diff --git a/mono/metadata/threads.c b/mono/metadata/threads.c
index 422dff8..a8dbcb7 100644
--- a/mono/metadata/threads.c
+++ b/mono/metadata/threads.c
@@ -651,7 +651,8 @@ gpointer mono_create_thread (WapiSecurityAttributes *security,
#ifdef HOST_WIN32
DWORD real_tid;
- res = CreateThread (security, stacksize, start, param, create, &real_tid);
+ g_print ("CreateThread is %p\n", mono_threads_CreateThread);
using System.Collections.Generic;
using System.Linq;
using ICSharpCode.NRefactory.Semantics;
using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.NRefactory.PatternMatching;
namespace ICSharpCode.NRefactory.CSharp.Refactoring
{
[IssueDescription("Any() should be used with predicate and Where() removed",
Description= "Detects redundant Where() with predicate calls followed by Any().",
cd main && make run
PATH="/Library/Frameworks/Mono.framework/Versions/Current/bin:/usr/local/bin:/usr/local/sbin:/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin" PKG_CONFIG_PATH="/Users/schani/Work/mono/monodevelop/monodevelop/local-config:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:" LD_LIBRARY_PATH="" DYLD_FALLBACK_LIBRARY_PATH="" MONO_GAC_PREFIX="/usr/local:" MONODEVELOP_LOCALE_PATH="/Users/schani/Work/mono/monodevelop/monodevelop/main/build/locale" MONO_ADDINS_REGISTRY="/Users/schani/Work/mono/monodevelop/monodevelop/main/build/bin" UBUNTU_MENUPROXY=0 exec -a "monodevelop" /Library/Frameworks/Mono.framework/Versions/Current/bin/mono --debug /Users/schani/Work/mono/monodevelop/monodevelop/main/build/bin/MonoDevelop.exe --no-redirect
ERROR [2012-08-20 13:52:35Z]: Error setting process name
System.DllNotFoundException: libc.dylib
at (wrapper managed-to-native) MonoDevelop.Core.Runtime:prctl (int,byte[],intptr,intptr,intptr)
at MonoDevelop.Core.Runtime.unix
using System.Collections.Generic;
using System.Linq;
using ICSharpCode.NRefactory.Semantics;
using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.NRefactory.PatternMatching;
namespace ICSharpCode.NRefactory.CSharp.Refactoring
{
[IssueDescription("Any() should be used with predicate and Where() removed",
Description= "Detects redundant Where() with predicate calls followed by Any().",
heusl
(gdb) bt
#0 0xb7f5903d in __futex_syscall4 ()
from /Users/schani/Work/mono/android/monodroid/dbg/system/lib/libc.so
#1 0xb7f508da in __futex_wait_ex ()
from /Users/schani/Work/mono/android/monodroid/dbg/system/lib/libc.so
#2 0xb7f50ff3 in pthread_mutex_lock ()
from /Users/schani/Work/mono/android/monodroid/dbg/system/lib/libc.so
#3 0xad42e244 in mono_gc_alloc_obj (vtable=0x8c5f130, size=12)
at /Users/schani/Work/mono/android/mono/mono/metadata/sgen-gc.c:4025
#4 0xad3e0d2a in mono_object_new_ptrfree_box (vtable=0x8c5f130)
W/dalvikvm( 1791): threadid=1: thread exiting with uncaught exception (group=0xb404c180)
E/AndroidRuntime( 1791): FATAL EXCEPTION: main
E/AndroidRuntime( 1791): java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_4!
E/AndroidRuntime( 1791): at android.app.ActivityThread.installProvider(ActivityThread.java:4240)
E/AndroidRuntime( 1791): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3992)
E/AndroidRuntime( 1791): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3946)
E/AndroidRuntime( 1791): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
E/AndroidRuntime( 1791): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
E/AndroidRuntime( 1791): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1791): at android.os.Looper.loop(Looper.java:137)