03-14-2017, 09:42 PM
Random Chitchat 2017
|
03-14-2017, 11:30 PM
(This post was last modified: 03-14-2017, 11:37 PM by Seadragon91.)
Compiling cuberite from clean git clone works fine, had to change the value 1900 to 1910 in Leakfinder.
Compiling the upgraded cuberite fails. Get this error(translated): Code: Conflict found in RuntimeLibrary: The value MT_StaticRelease does
03-15-2017, 12:39 AM
Either you simply need to rebuild the whole upgraded solution, or the upgrade has failed for some reason. Basically it means that one project (library) is using dynamic C++ runtime libs, while another is using static C++ runtime libs.
As for the VS problems, I meant the guys here at work, they do wonders with VS (such as compile raw binary code that runs on both Windows and Linux).
03-15-2017, 12:41 AM
xoft Wrote:As for the VS problems, I meant the guys here at work, they do wonders with VS (such as compile raw binary code that runs on both Windows and Linux).That sounds interesting, do you have more information about that?
03-15-2017, 03:16 AM
What exactly do you mean, the raw binary? I'm afraid I cannot say much more, since I have no idea how much of that is a company secret and I don't want to risk it. Sorry.
The VS problems were just regular crashes when compiling, or misbehaving projects in some special circumstances. Nothing spectacular.
03-15-2017, 03:18 AM
What I can tell you for sure is that it's a hell of a pain to work with
03-15-2017, 07:57 PM
(This post was last modified: 03-15-2017, 09:39 PM by Seadragon91.)
Is there a memory leak in cBlockArea? If I use Create again, I think the last allocated memory should be released and this doesn't happen.
Edit: Running command reload will release the allocated memory. Edit 2: I didn't saw the function Clear
The Create() function calls the Clear() function, so there should be no leak.
03-16-2017, 12:10 AM
When does a destructor of a c++ object in lua code gets called? Added a local cBlockArea in a function and thought that the destructor (added a log message) would be called at end of function.
03-16-2017, 12:16 AM
Probably when it gets garbage collected. You can check this by using the collectgarbage function after you've finished using the blockarea.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 24 Guest(s)