Kategorien

Ich im Web

New Tag Cloud 1

acid2 (1) active sync (1) adobe air (1) alterskontrolle (1) amerika (1) apache (3) aplle (1) arcor (4) ask.com (1) atari (1) axxium (2) backtrack (3) backup (1) be-quiet (1) besichtigungstermin (1) bilder (2) bill gates (1) blasc (1) blender (1) bliss (2) blog (1) bookmarks (1) bootloader (1) british telecom (1) buffed (1) bundeskanzler (1) bundesregierung (1) c++ (1) c64 (1) capi (1) cisco (1) commodre (1) cooling (2) css (1) datenbank (1) datenschutz (1) dbox (1) death adder (1) del.icio.us (1) desktop search (1) die bahn (1) domain controller (1) dsl (2) eier (1) ekg (1) enterasys (1) erotik (1) essen (2) evag (1) facebook (2) feedburner (1) feeds (1) finanzamt (1) firebug (1) firefox (6) flash (1) flickr (2) foxmarks (1) frankfurt (1) freakiest.de (1) fritzbox (1) fun (2) games (1) gesundheit (2) google (2) google analytics (10) google calendar (1) google desktop (1) google earth (4) google mail (4) google reader (6) google reader notifier (1) gpo (1) gpt (1) gruga (1) grundgesetzt (1) h.323 (1) heimnetzgruppe (1) heißluftballon (1) hipath (5) ibm (1) ifilter (1) iis (2) internet explorer (6) ipx (1) isa (1) isdn (1) ista (12) jaiku (1) jeff dunham (1) k770i (1) k850i (1) karnvel (1) kommentar (1) köln (1) küche (1) kühlschrank (1) kündigung (1) lightning (2) logitech (1) logo (1) mail (1) maildrop (1) markler (1) mbr (1) mcdonalds (1) media player (1) meinvz (3) messe essen (1) microblogging (3) microsoft (6) mieten (1) minimizetotray (1) monitoring (1) montgolfiade (1) mpe (3) ms office (1) mssql (1) münster (2) n6600gt (2) nasa (1) navision (1) nes (1) netcraft (1) netzteil (1) new tag cloud (17) next4u.de (3) nintendo (1) nostalgie (1) npd (1) nvidia (1) nürnberg (1) o'reilly (1) openid (1) openoffice (1) opensearch (1) opensuse (1) panoramio (1) parlament (1) pc (1) petition (1) photosynth (2) php (1) picasa (2) plugin (6) politik (4) post (1) postfix (1) powershell (3) pownce (4) preis (1) premiere (1) quickcam (1) razor (1) rdp (1) re:publica (1) readware (1) recensio.org (1) regierung (1) rss (2) saturn (1) second life (3) security (2) sensorlock (2) server (1) servicepack (1) siemens (6) sim (7) simulator (1) snes (1) snmp (2) society (1) sony ericsson (4) sp2 (1) spam (2) speed (1) spülmaschine (1) ssl (4) stayfriends (1) steve ballmer (1) streik (2) t3n (1) tacra 8100 (1) tagging (2) teamspeak (1) tecra (4) tecra 8100 (1) telekom (2) templates (2) terminal server (1) tf3d (1) themes (2) thunderbird (4) tobi.elements (1) tor (1) torte (1) touchscreen (1) trackback (1) trait (1) triplehead2go (1) tsqlib (1) twitter (2) typo3 (1) u4us (1) umzug (8) update (1) urlaub (1) verdi (1) video (2) virtual pc 2007 (1) virtual server (1) vista (2) vmware (1) vodafone (2) voip (2) vorratsdatenspeicherung (2) voxfax (1) voxtron (1) wallpaper (1) weave (3) web (1) web2.0 (1) webslice (1) werbung (1) wiimote (3) window xp mode (1) windows 7 (11) windows server (2) windows vista (1) windows xp (2) winmote (3) wlan (2) wohung (1) wordpress (20) wotlk (1) wow (7) yac (9) yodm3d (1) youtube (6) zalman (2) zensur (3) 2008 (1)

Some facts about Winmote and the crashing bug

Von FunnyDingo | 18. Mai 2008, 21:50

On the Wiimote project page I wrote about the small bug in the Winamp plugin Winmote: if a Wiimote is connect and you close Winamp, it crashes. My first idea: the Wiimote isn't disconnected properly. The Winamp API defines a "quit" function. This is a function provided by the plugin and called by Winamp if it should close. In this function I placed this code (I know, not nice, but for testing it's ok):

C++:
  1. void quit()
  2. {
  3. while (wiimoteHandler->IsConnected())
  4. {
  5. wiimoteHandler->Disconnect();
  6. }
  7. }

WInamp close but crashes also. So, the Wiimote is disconnected. Here my next test (I know, very stupid, but testing...):

C++:
  1. void quit()
  2. {
  3. wiimote->Disconnect();
  4. MessageBox(NULL, "Wiimote disconnected", PLUGIN_NAME, MB_OK);
  5. }

This works. After click OK in the message box, Winamp closes normaly. But what is the problem? I checked out the code of the library and saw, that a method of it is threaded. My idea: closing Winamp and stoping the thread wich reads the data from the Wiimote conflicts in some way. If you use the MessageBox() the system has enough time to end thread.

Maybe someone has another idea?

PS: Sorry for bad code formating, but the plugin is new to me and I think there are some problems with wordpress for saving nbsp's. Also the plugin has a problem with some chars like >...

Keine Kommentare | Keine Trackbacks