swax / CodePerspective

Visualize the code behind .Net applications in real-time
https://youtu.be/s3Y06R4d3F8
MIT License
65 stars 9 forks source link

Crash if XRay.dat is not compatible with current version #4

Closed somewhatabstract closed 12 years ago

somewhatabstract commented 12 years ago

I installed from the CodePerspective2.0.zip and ran the existing XRay.OldFashionedFun.exe then clicked one of the methods in the treemap and the Details tab. It crashed saying it couldn't find the XRay.dat even though it was there. If I recompiled, it all worked.

somewhatabstract commented 12 years ago

Note, I did Unblock the zip before extracting.

somewhatabstract commented 12 years ago

I've taken a fork; I might take a look at this one myself as a way to get familiar with some of the code.

swax commented 12 years ago

The dat path is compiled into the exe, but if it's not found then it looks in the root path of the application and sets the path to that in the Init function. The bug was where the XRay::Init function sets the DatPath before the check to see if the Init function had already been run. Thanks for reporting this :) I updated the site to the new version.