Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent hang in EVEmon. #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

antihax
Copy link

@antihax antihax commented Feb 26, 2018

EVEMon hangs if it somehow gets a negative width value into this function.
How the negative got there would be the next logical question but I cannot practically replicate. :(

@@ -706,7 +706,11 @@ private string AbbreviationFormat(decimal value, float width)
int suffixIndex = 0;
float newWidth;

do
if (width <= 0.0f) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably normalize your indentation

@dresdor
Copy link

dresdor commented Apr 21, 2018

Likely the negative is caused around line 410 in the same file, where the character name width is wider than the available screen width. You should breakpoint it, if you experience the error, and see what the values are to determine if there are any other weird issues around that.

NevarrTivianne pushed a commit to NevarrTivianne/evemon that referenced this pull request Apr 3, 2021
Active/alpha skill level and better alpha/omega detection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants