This one was quite strange - the PPJoy installer would work when using the debug build of the DLL that registers the driver; when I used the release build the installer would fail to register the driver. Oh joy.
So then out comes windbg. Man's best friend for sure. As it turns out, there is one function in my DLL that requires a MULTI_SZ format string. Basically this means the string must end with two zero bytes; and the code was initialising it with only one zero, hence it failed. So why did the debug version work? I am speculating that the debug version includes extra variables that changes the packing in memory and the empty spots are probably filled with zeros... These zeros would make up for the one I forgot to add at the end of the string.
I really, really hope I don't other similar bugs lurking in there somewhere!!! The scary thing is that these bugs can lie dormant for years, just waiting for an innocent code change.
Friday, February 20, 2009
Sunday, February 8, 2009
Taking some time out
I've just finished putting together a small bench power supply so development on PPJoy has stalled a bit. And I'm busy with maintenance around the house - something that can suck up oodles of time too.
And then there is the day job too...
Point of all this is that there are many things competing for my attention, of which PPJoy is only one. I still hope to release a new PPJoy build in the next month or two. Unfortunately there won't be new functionality... just one or two small bug fixes. This would also be the first release built with VS 2008 and the Windows Vista/Server 2008 DDK. Though no 64 bit drivers yet.
I've got the Win7 beta and DDK that goes with it. Hopefully I can test PPJoy on it soon.
Subscribe to:
Posts (Atom)