Cuberite Forum
Random Chitchat 2017 - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Off Topic (https://forum.cuberite.org/forum-9.html)
+--- Forum: Off Topic Discussion (https://forum.cuberite.org/forum-10.html)
+--- Thread: Random Chitchat 2017 (/thread-2727.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


RE: Random Chitchat 2017 - xoft - 03-14-2017

(03-08-2017, 03:26 AM)NiLSPACE Wrote: Visual Studio 2017 was just released.

And our CoreDev guys have already reported some 8 issues about it. So far, this VisualStudio is unusable for us.


RE: Random Chitchat 2017 - Seadragon91 - 03-14-2017

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
not match with the value MD_DynamicRelease in CriticalSection.obj
No clue what to do   Rolleyes


RE: Random Chitchat 2017 - xoft - 03-15-2017

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).


RE: Random Chitchat 2017 - NiLSPACE - 03-15-2017

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?


RE: Random Chitchat 2017 - xoft - 03-15-2017

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.


RE: Random Chitchat 2017 - xoft - 03-15-2017

What I can tell you for sure is that it's a hell of a pain to work withTongue


RE: Random Chitchat 2017 - Seadragon91 - 03-15-2017

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


RE: Random Chitchat 2017 - xoft - 03-15-2017

The Create() function calls the Clear() function, so there should be no leak.


RE: Random Chitchat 2017 - Seadragon91 - 03-16-2017

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.


RE: Random Chitchat 2017 - NiLSPACE - 03-16-2017

Probably when it gets garbage collected. You can check this by using the collectgarbage function after you've finished using the blockarea.