User forums > Help

Windows Nighly Recent crash issue for Environment setting.

<< < (4/9) > >>

scarphin:

--- Quote from: stahta01 on June 09, 2015, 02:34:39 am ---Can a C++ expert explain how sel can hold the result of new EnvVariableListClientData(key, value)?

Edit: Or does the sequence operator "," do something different in C++ than I think it does?

--- End quote ---
I'm not a C++ expert but 'sel' has nothing to with 'new EnvVariableListClientData(key, value)':

--- Code: ---int  sel     = lstEnvVars->Append(key + _T(" = ") + value, new nsEnvVars::EnvVariableListClientData(key, value));
--- End code ---
invokes the overloaded 'Append' function with 2 arguments, there is no sequencing here. Sorry if I misunderstood you and you were talking about something else.

CB crashes at line 479 in 'envvars_common.cpp', I don't think 'Append' is the problematic part.

stahta01:

--- Quote from: scarphin on June 09, 2015, 03:05:07 am ---
--- Quote from: stahta01 on June 09, 2015, 02:34:39 am ---Can a C++ expert explain how sel can hold the result of new EnvVariableListClientData(key, value)?

Edit: Or does the sequence operator "," do something different in C++ than I think it does?

--- End quote ---
I'm not a C++ expert but 'sel' has nothing to with 'new EnvVariableListClientData(key, value)':

--- Code: ---int  sel     = lstEnvVars->Append(key + _T(" = ") + value, new nsEnvVars::EnvVariableListClientData(key, value));
--- End code ---
invokes the overloaded 'Append' function with 2 arguments, there is no sequencing here. Sorry if I misunderstood you and you were talking about something else.

CB crashes at line 479 in 'envvars_common.cpp', I don't think 'Append' is the problematic part.

--- End quote ---

I disagree please look at the line I changed in the patch. Is it not line 479 or 478?

In C.

A = B, C;

Assigns the value of C to A.

OK, I see what you mean now.

Tim S.

stahta01:
So, I have decided to stop for this night maybe someone will figure it out.
I just am too tired to think of anything other than wxWidgets is NOT likely something in the code.

Edit: I have decided next time to see if the problem exists under wxWidgets 3.0 because it has better asserts in it.

Tim S.

oBFusCATed:
I'm calling the Append method that takes two parameters a string and a wxClientData object.
I have no idea why this fails.
To see the real cause of the problem you'll need to rebuild wxwidgets in debug mode.

oBFusCATed:
Also what is the value of sel when it crashes?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version