Weird BadImageFormatException
Late yesterday, my program spit me this error message:
An unhandled exception of type ‘System.BadImageFormatException’ occurred in SomeAwesome.dll
Additional information: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0×8007000B)
This is rather weird. The program loads properly, yet at some part, it tells me that I’m loading “a program with an incorrect format”? After quite some time searching the net, I found this blog entry explaining it.
I think this is the first time that I was really got bitten by a C# compiler bug. Seems like, in some weird occasion, if you put the constraint where T : class to your generics, some things won’t get compiled properly to IL.
I’m actually loading the class dynamically using the Activator, in a simple dependency injection container that I made. I thought that was the problem. But when I try to load it normally, the same error occurs, even after restarting the machine (yeah, you know, some times things magically work after a reboot). In the end, found out it’s not my fault… finally, something that isn’t.
Are You Happy?
Hi, how do you do? Are you happy? Yes? Good, glad to hear that.
Not In The Pink Anymore
I’m not feeling well… What a great timing! I’ve got lots and lots and tonnes and gazillions to be done, and yet this silly body chose this particular time to get sick. Being sick rendered me incapable of keeping my mind on my job. Thus, forcing me think about happier thoughts, like writing blogs. Well, once you’re hooked (to blogging), believe me, in every occurrence of event that even slightly matters to you, you’ll gonna think “Hey, this can be a good entry. Lemme try to compose the entry in my head while cleaning up this mess of a dog carcass that I just ran over”. Just an example, not that it happened.
I don’t usually rush to the doctor when I’m sick. Not that I’m scared, it’s just I’m too lazy to go to the clinic. It takes time, to wait and everything. Especially this one little clinic which is the nearest to my office that is taking so darn long to get you checked-up and medicated. They have about a hundred nurses and attendant’s there (okay, clear exaggeration), I don’t understand why it’s taking so long. There’s usually not much people anyway.
There’s this one day I got stomach ache (diarrhea) and had to go there. I waited like 3 hours to get done and get my MC and everything. Luckily, the rumblings were over at that time. If not, then it was a pretty sure thing that I’ll burst the content of my bowel right on the chair in the waiting room. Man, if that happened, who do you think gonna get embarrassed? It’s you, I tell you. Yeah, people will say, “Hey, I don’t know that you read that guy’s blog?! Yeah, that guy who crap his $h!t out in the clinic. Ewwww, you’re disgusting! We’re not friends anymore”. See? I’m struggling to save your water face back there.
On a second thought, maybe the waiting is part of the therapy. Man, I’m completely cured when I left. Didn’t even swallow a single pill. Anyway, the scene above, about your friend leaving you, might be a tad too ambitious, so don’t get sad yet. Maybe it wouldn’t even matter ‘coz people only believe the thing they’re being told in the Internet. Not the other way around. If I say I didn’t crap my pants back there, people must’ve believed, even if I did, which never happened, okay… The point is, people will believe if you say that you’re a handsome man, even in real-life you’re a cat. “In the Internet, nobody knows you’re a cat”.
Actually the saying goes like this, “In the Internet, nobody knows you’re a dog“. But, I’m more like a cat person. Not that I really really crazy in love with cats or anything (although they can be cute and cuddly sometimes), but I like cats better than dogs. If let’s say I’m driving this one night, and out of a sudden there’s this dog on my right and a stray cat on my left, completely blocking my way, and I have to choose either way as not go off the road into the dark and deep ravine on both sides of the road, I am quite sure that I’ll aim for the dog. No offense to dog lovers, again, it’s just an example. I just might have went at the center and knock-off both of them.
Whoa.. that’s a pretty long entry ain’t it? I do that when I’m feeling a bit high. But it has been quite a good read, don’t you think? Come on, spare me some self-confidence… I purposely didn’t take my fever pills (paracetamol 500mg) so that my brain’s temperature would go up to it’s boiling point (should be higher than water’s (pure H20) boiling point), enabling me to write something like that, for the sake of your entertainment. Yes, you. Come to think of it, I really did lots of things for you, and what did you ever do for me? You don’t even send a comment! Never mind, I’d like to think that you’re still a nice law abiding citizen even if you don’t comment.
Okay, I seriously think I need to take the aforementioned pills right now. I think there’s some gray liquid matters oozing out from my ears already. Okay, say your doa (prayer) for me yeah, so I can get healthy and get back to the old productive me. Thanks for your time…
I’m Always Alone
Haven’t you wondered? Why I’m always alone when you’re in my dreams?
Cabut Gigi
Lubang hidung aku kebas. Bius yg di suntik kat gusi tu rasa sampai bibir dan hidung. Aku baru balik dari cabut gigi sebenarnya. A perfectly good teeth has just been extracted from my mouth. Gigi ni sebenarnya elok, tapi dia tumbuh bukan di tempat yang sepatutnya. Aku dah hidup selama 20 tahun dengan gigi depan yang berlapis. Sayang juga sebab masih elok, tapi alternative lain, iaitu pakai braces, perlu sampai 2 tahun. Cabut je lah, doktor.
Aku sebenarnya datang untuk tampal gigi geraham aku, yang telah menyebabkan aku sengsara selama beberapa hari. Tapi doktor kata dah teruk sangat. Tinggal sama ada cabut atau buat rawatan akar (RCT - Root Canal Therapy). Nak cabut sayang pulak, susah aku nak makan nasi nanti. Buat RCT kena dlm RM500 pulak, menyebabkan aku cakap kat doktor tu, nanti dulu, aku pertimbangkan dulu.
Alang-alang datang klinik gigi ni, aku ingat nak cabut gigi aku yang berlapis tu sekali. Aku rasa gigi tu sedikit sebanyak menyebabkan pertuturan aku tercacat sedikit. Dah kurang sikit ruang utk lidah bergerak dgn bebas. Kita tengok lepas ni, sama ada aku dapat menyanyi lagu rap dengan lancar.
Gigi yang di cabut ni aku simpan. Aku ingat nak pasangkan tali, sangkut kat leher.

