Ive been busy updating your work to the latest wow build.
I can get it running the gui up and loaded.
Compiling scripts however.
Code:
lock ( SyncRoot ) {
foreach ( Type type in types ) {
if ( !type.IsClass || !type.IsSubclassOf( typeof( Script ) ) ) {
Log.WriteLine( "\tIgnoring '" + type.FullName + "'" );
continue;
}
toRegister.Enqueue( type );
}
}
// WTF, If we never Dequeue the items itll always hang?
while (toRegister.Count > 0)
Thread.Sleep(0);
Log.WriteLine();
Log.WriteLine( "Finished" );
mainly
// WTF, If we never Dequeue the items itll always hang?
while (toRegister.Count > 0)
Thread.Sleep(0);
doesnt make any sense. Itll always just hang there sleeping the thread.
I tried to loop over the Enqueued results and called the Register(Type T) func on the exposed types. But thats a client crash.. Any ideas?
---------- Post added at 07:52 PM ---------- Previous post was at 07:43 PM ----------
Okay.. Seems the scripts are compiling fine. I can click back to the Gui and see them, and the gui is still responsive. Just wow throws up its usuall report error box and locks out.
---------- Post added at 07:54 PM ---------- Previous post was at 07:52 PM ----------
Current Code im trying.
Code:
lock ( SyncRoot ) {
foreach ( Type type in types ) {
if ( !type.IsClass || !type.IsSubclassOf( typeof( Script ) ) ) {
Log.WriteLine( "\tIgnoring '" + type.FullName + "'" );
continue;
}
//toRegister.Enqueue( type );
Register(type);
}
}