[Fixed] [4.2.4] Calling String.Split() on a string CVar crashes.

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

[4.2.4] Calling String.Split() on a string CVar crashes.

Postby Cicero Pockstock » Fri Dec 27, 2019 3:09 pm

Example: https://drive.google.com/open?id=1QCoMR ... DBO1dIhu5e

Pretty much what says on the tin. Just start a new game to trigger. The code that doesn't crash is commented out under the crashy bit. CrashReport.zip inside the download.
Cicero Pockstock
 

Re: [4.2.4] Calling String.Split() on a string CVar crashes.

Postby _mental_ » Sun Jan 19, 2020 6:52 am

In this PR I managed to achieve identical code generated for the following two functions.

Code: Select allExpand view
int Implicit()
{
    return string_cvar.ToInt();
}

int Explicit()
{
    string temp = string_cvar;
    return temp.ToInt();
}

EDIT: Merged in a05a5a8.
_mental_
 
 
 
Joined: 07 Aug 2011


Return to Closed Bugs

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests