BadImage Exception- But I've got a bug fix so it doesn't crash hard!

1 view
Skip to first unread message

Justin Bozonier

unread,
Mar 19, 2009, 7:52:27 PM3/19/09
to docu
Hey I noticed when I tried to run docu with our binary that it crashed
hard. For some reason the .NET assembly isn't what docu was
expecting.

I made a fix so that this doesn't crash hard and alerts the user via
command line message and just proceeds to load nothing. I also added
tests around my stuff as well as changes to your tests since they all
assume that loading no assembly is ok.

Here's my github info, lemme know if you can take my fix.
http://github.com/jcbozonier/docu/tree/master

Of course, I'm also curious why this happens in the first place :)

Justin Bozonier

unread,
Mar 19, 2009, 7:53:48 PM3/19/09
to docu
I should mention that the info below is to my forked copy. Hopefully that's easy to pull from.

James Gregory

unread,
Mar 20, 2009, 5:55:30 AM3/20/09
to docu-...@googlegroups.com
Hey Justin, I've applied your changes to my repos; thanks, this is really appreciated!

Any idea what's different about your assembly that Docu doesn't like?

Justin Bozonier

unread,
Mar 20, 2009, 12:21:12 PM3/20/09
to docu-...@googlegroups.com
Yeah my boss thinks it my be caused by us trying to get 32-bit docu to document 64-bit assemblies. Sounds reasonable to me so I'm gonna try to verify that. If I can verify that I'll update the error message to give a similar hint to the user.

James Gregory

unread,
Mar 20, 2009, 8:57:25 PM3/20/09
to docu-...@googlegroups.com
Certainly sounds plausable. Docu is compiled to be "Any CPU", so that shouldn't be an issue. Are you by any chance trying to generate docs for a 64bit assembly on a 32bit OS?
Reply all
Reply to author
Forward
0 new messages