Re: Visual D doesn't work, now Visual Studio Code / D doesn't work!!!! ....

2022-10-03 Thread Rainer Schuetze via Digitalmars-d-learn
On 02/10/2022 13:00, Daniel Donnell wrote: Visual D doesn't work - it just ate my app.obj file and can't find it anymore no matter if I clean or re-order the executable paths in settings. Can you be more specific what you are doing and what is going wrong? On 02/10/2022 23:28, rikki catterm

Re: Visual D showing weird errors

2021-04-27 Thread Rainer Schuetze via Digitalmars-d-learn
On 26/04/2021 20:22, Imperatorn wrote: > On Monday, 26 April 2021 at 17:37:26 UTC, Rainer Schuetze wrote: >> >> On 26/04/2021 10:00, Raimondo Mancino wrote: >>> [...] >> >> The problem is that the semantic engine used by Visual D is working >> with the

Re: Visual D showing weird errors

2021-04-26 Thread Rainer Schuetze via Digitalmars-d-learn
On 26/04/2021 10:00, Raimondo Mancino wrote: > Hello, I'm new to the language; I just started learning it a few months > ago. I'm doing okay with it, I find it very versatile and fast to learn. > I come from Java and C/C++ and I think D solves tons of problems I had > with these. > > I was tryin

Re: DMD 2.090.1: SIGILL, Illegal instruction on (ahem) intel Pentium III

2020-02-27 Thread Rainer Schuetze via Digitalmars-d-learn
On 27/02/2020 11:30, kdevel wrote: > On Thursday, 27 February 2020 at 07:44:57 UTC, Seb wrote: >> On Thursday, 27 February 2020 at 00:36:49 UTC, kdevel wrote: > > [...] > >>> Program received signal SIGILL, Illegal instruction. > > [...] > >>> Does this exception relate to [1] and shall I fi

Re: can't run D app on VS 2019

2020-02-27 Thread Rainer Schuetze via Digitalmars-d-learn
On 27/02/2020 12:29, Greatsam4aure wrote: > I have install Vs 2019 and install the C++ package together with > Visual-D bundle with DMD and LDC. But by project refuse to run > > -- Build started: Project: DLangOne, Configuration: Debug Win32 -- > Building Win32\Debug\DLangOne.exe... > L

Re: can't run D project on Visual studio

2020-02-14 Thread Rainer Schuetze via Digitalmars-d-learn
On 13/02/2020 15:54, Akomire Samson wrote: > I am having this error on running D project using Visual studio 2019 and > Visual D > > > Build Log > > Building Win32\Debug\LearningD.exe > > Command Line > > set PATH=C:\D\ldc2-1.19.0-windows-multilib\bin;C:\Program Files > (x86)\Microsoft Visu

Re: D create many thread

2020-02-08 Thread Rainer Schuetze via Digitalmars-d-learn
On 07/02/2020 16:52, Steven Schveighoffer wrote: > But I still maintain, a hello world program should not need this to > avoid spawning 6 threads to scan itself. I agree, see https://issues.dlang.org/show_bug.cgi?id=20567 and https://github.com/dlang/druntime/pull/2933

Re: format with floating points GC allocating in DMD 2.090

2020-02-07 Thread Rainer Schuetze via Digitalmars-d-learn
On 31/01/2020 09:45, bauss wrote: > On Friday, 31 January 2020 at 07:20:17 UTC, cc wrote: >> char[4096] buf; >> writeln(GC.stats.usedSize); >> foreach (i; 0 .. 10) { >>     sformat(buf, "%f", 1.234f); >>     writeln(GC.stats.usedSize); >> } >> >> Output with DMD32 D Compi

Re: GC.collect inflating memory usage?

2019-12-08 Thread Rainer Schuetze via Digitalmars-d-learn
On 07/12/2019 21:05, Rainer Schuetze wrote: > > On 07/12/2019 12:20, cc wrote: >> Given the following program: > [...] >> >> Using DMD32 D Compiler v2.089.0-dirty >> > > Seems like a bug introduced in dmd 2.086, I've created a bugzilla issue: >

Re: GC.collect inflating memory usage?

2019-12-07 Thread Rainer Schuetze via Digitalmars-d-learn
On 07/12/2019 12:20, cc wrote: > Given the following program: [...] > But when both FREE and COLLECT are enabled, things seem to spiral out of > control: > // FREE, COLLECT > Stats(16, 1048560, 16) >     848 4096 > 40960832  40964096 > 81920832  81924096 > 122880832  1

Re: Exceptions on Windows being "swallowed"

2019-11-26 Thread Rainer Schuetze via Digitalmars-d-learn
On 27/11/2019 06:55, cartland wrote: > On Wednesday, 27 November 2019 at 05:43:33 UTC, Mike Parker wrote: >> On Wednesday, 27 November 2019 at 05:15:10 UTC, cartland wrote: >> *snip* >> >> dmd -m32mscoff -debug -g x.d >> >> And see what happens. > > No difference between "dmd -m32mscoff -debug

Re: want to know precise GC benchmarks

2019-10-01 Thread Rainer Schuetze via Digitalmars-d-learn
On 01/10/2019 18:24, a11e99z wrote: > On Tuesday, 1 October 2019 at 16:12:18 UTC, a11e99z wrote: >> does anybody some kind of benchmark to test conservative and precise GC? >> precise GC is better or not? is STW improving? Without false pointers the precise GC is usually a bit slower (by a few

Re: Newbie linker errors - still missing _fltused _tls_index _tls_used localtime tzset mainCRTStartup

2019-09-08 Thread Rainer Schuetze via Digitalmars-d-learn
On 08/09/2019 00:30, malpropism wrote: > I just ported my Java application to D, got it to compile, but not to link. > > I'm using Windows 10 64 bit, DMD 2.088.0 , Visual D 0.50.1.  This would > be a C/C++ project in Visual Studio with only D code. > > With my first attempt, I'm missing 65 ext

Re: precise GC

2019-03-05 Thread Rainer Schuetze via Digitalmars-d-learn
On 05/03/2019 22:30, H. S. Teoh wrote: > On Tue, Mar 05, 2019 at 09:50:34PM +0100, Rainer Schuetze via > Digitalmars-d-learn wrote: >> On 04/03/2019 12:12, KnightMare wrote: > [...] >>> 3) closures: do the closures have any internal types that helps to >>> GC

Re: precise GC

2019-03-05 Thread Rainer Schuetze via Digitalmars-d-learn
On 04/03/2019 12:12, KnightMare wrote: > For example, we have some rooted memory block as > auto rooted = new long[1_000_000]; > 1) conservative-GC will scan it for false pointers every GC-cycle. is it > true? > 2) precise-GC will NOT scan it at all. is it true? As Adam pointed out, this memory

Re: Bug in shifting

2018-12-18 Thread Rainer Schuetze via Digitalmars-d-learn
On 14/12/2018 02:56, Steven Schveighoffer wrote: > On 12/13/18 7:16 PM, Michelle Long wrote: >> byte x = 0xF; >> ulong y = x >> 60; > > Surely you meant x << 60? As x >> 60 is going to be 0, even with a ulong. It doesn't work as intuitive as you'd expect: void main() { int x = 256;

Re: Performance of GC.collect() for single block of `byte`s

2018-10-03 Thread Rainer Schuetze via Digitalmars-d-learn
On 01/10/2018 15:51, Steven Schveighoffer wrote: On 10/1/18 3:21 AM, Rainer Schuetze wrote: A profiler reveals that most of the time is spent in "sweeping" the memory, i.e. looking for allocations no longer referenced. The existing implementation checks every page which cause

Re: Performance of GC.collect() for single block of `byte`s

2018-10-01 Thread Rainer Schuetze via Digitalmars-d-learn
On 28/09/2018 14:21, Per Nordlöw wrote: On Monday, 24 September 2018 at 14:31:45 UTC, Steven Schveighoffer wrote: It's not scanning the blocks. But it is scanning the stack. Each time you are increasing the space it must search for a given *target*. It also must *collect* any previous items

Re: How to use LLD linker?

2018-07-06 Thread Rainer Schuetze via Digitalmars-d-learn
On 06/07/2018 05:48, SrMordred wrote: On Saturday, 30 June 2018 at 10:48:49 UTC, Suliman wrote: Correct me if I am wrong, but I have read news that dmd now can be used without C++ Build Tools. I trying to build simple project. And getting Error: Warning: no Visual C++ installation detected

Re: Visual D 0.47.0 released

2018-06-27 Thread Rainer Schuetze via Digitalmars-d-learn
On 27/06/2018 12:37, Robert M. Münch wrote: On 2018-06-27 06:22:19 +, Rainer Schuetze said: - Windows-10, 64bit, running in a Parallels VM on OSX 10.13.5 - VS-2017 latest patch applied If you try to debug 64-bit-builds, mago starts another monitoring process. Maybe there are issues

Re: Visual D 0.47.0 released

2018-06-26 Thread Rainer Schuetze via Digitalmars-d-learn
On 26/06/2018 16:25, Robert M. Münch wrote: On 2018-06-24 13:08:53 +, Rainer Schuetze said: a new release of Visual D has just been uploaded. Major changes are * improved Visual C++ project integration: better dependencies,    automatic libraries, name demangling * new project wizard

Re: "Start a Minimal web server" example do not work.

2018-05-09 Thread Rainer Schuetze via Digitalmars-d-learn
On 08/05/2018 21:36, BoQsc wrote: On Tuesday, 8 May 2018 at 19:19:26 UTC, Seb wrote: On Tuesday, 8 May 2018 at 18:40:34 UTC, BoQsc wrote: On Tuesday, 8 May 2018 at 18:38:10 UTC, BoQsc wrote: On Tuesday, 8 May 2018 at 17:35:13 UTC, Jesse Phillips wrote: [...] Tested with these versions so

Re: How to compile for Win64 with Visual D? Optlink error?

2017-09-19 Thread Rainer Schuetze via Digitalmars-d-learn
On 19.09.2017 13:47, Timothy Foster wrote: I'm trying to compile my project as a Win64 application but this is happening: Building C:\Users\me\test\test.exe... OPTLINK (R) for Win32  Release 8.00.17 Copyright (C) Digital Mars 1989-2013  All rights reserved. http://www.digitalmars.com/ctg/optl

Re: Profiling Windows App and DLL

2017-07-23 Thread Rainer Schuetze via Digitalmars-d-learn
On 17.07.2017 22:36, Igor wrote: Is there a known limitation in profiling these or am I doing something wrong? When I try to run my application from VisualD (x64 build) with -profile switch I just get Access Violation reported on WinMain function (actual declaration, it doesn't enter its bo

Re: Finding source of typeid use

2017-07-08 Thread Rainer Schuetze via Digitalmars-d-learn
On 08.07.2017 07:55, Nicholas Wilson wrote: On Saturday, 8 July 2017 at 05:36:49 UTC, rikki cattermole wrote: On 08/07/2017 2:35 AM, Nicholas Wilson wrote: On Friday, 7 July 2017 at 08:49:58 UTC, Nicholas Wilson wrote: My library is generating a typeid from somewhere. e.g. typeid(const(Point

Re: Getting DUB to work with VS 2017

2017-05-21 Thread Rainer Schuetze via Digitalmars-d-learn
On 22.05.2017 03:54, Enjoys Math wrote: [...] C:\Users\Gabe\AppData\Roaming\dub\packages\pyd-0.9.9\pyd\\infrastructure\windows\python27_digitalmars.lib+ user32.lib+ kernel32.lib/NOMAP/CO/NOI/DELEXE LINK : fatal error LNK1181: cannot open input file 'obj\debug\dummy\dummy\dummy\dummy\dummy\du

Re: How to setup DLL and EXE projects in one VS solution

2017-05-18 Thread Rainer Schuetze via Digitalmars-d-learn
On 18.05.2017 09:53, Igor wrote: On Thursday, 18 May 2017 at 07:10:54 UTC, Rainer Schuetze wrote: You have to add an import path to the folder with dllproj inside to the project configuration of the exeproject. If you want to limit the imported code to the declarations, you can enable

Re: How to setup DLL and EXE projects in one VS solution

2017-05-18 Thread Rainer Schuetze via Digitalmars-d-learn
On 17.05.2017 18:56, Igor wrote: At the moment I have: EXEProject: app.d - it does loadlibrary of dllproj and uses data structures defined in dllproj.d (it imports dllproj). On the file system this file is under /platform/win32/ and is defined as module win32.app; DLLProject dllproj.d - e

Re: TLS

2017-03-13 Thread Rainer Schuetze via Digitalmars-d-learn
On 13.03.2017 14:35, M-exe wrote: On Friday, 10 March 2017 at 21:32:05 UTC, sarn wrote: On Friday, 10 March 2017 at 19:24:29 UTC, bauss wrote: Mark your variables with __gshared. I would say shred, but it has some restrictions to it, where __gshared is the equivalent to global variables in C.

Re: Adding linker paths with spaces using dmd and msvc toolchain

2016-12-30 Thread Rainer Schuetze via Digitalmars-d-learn
On 30.12.2016 19:24, Jeremy DeHaan wrote: On Friday, 30 December 2016 at 04:56:59 UTC, Jerry wrote: On Friday, 30 December 2016 at 03:51:13 UTC, Jeremy DeHaan wrote: How does one correctly add a linker path that has spaces? The quotes get consumed by the command line. The way DMD spawns the

Re: VisualD core.exception.RangeError@pipedmd(286): Range violation

2016-09-08 Thread Rainer Schuetze via Digitalmars-d-learn
On 08.09.2016 20:15, Rainer Schuetze wrote: On 08.09.2016 19:35, Tofu Ninja wrote: On Thursday, 8 September 2016 at 07:45:56 UTC, Rainer Schuetze wrote: Fixed it again. You can find a prebuilt binary of pipedmd.exe here: https://ci.appveyor.com/project/rainers/visuald/build/1.0.75/job

Re: VisualD core.exception.RangeError@pipedmd(286): Range violation

2016-09-08 Thread Rainer Schuetze via Digitalmars-d-learn
On 08.09.2016 19:35, Tofu Ninja wrote: On Thursday, 8 September 2016 at 07:45:56 UTC, Rainer Schuetze wrote: Fixed it again. You can find a prebuilt binary of pipedmd.exe here: https://ci.appveyor.com/project/rainers/visuald/build/1.0.75/job/n9tf67jxcir6kpmg/artifacts Thanks for the

Re: VisualD core.exception.RangeError@pipedmd(286): Range violation

2016-09-08 Thread Rainer Schuetze via Digitalmars-d-learn
On 07.09.2016 22:10, Rainer Schuetze wrote: On 07.09.2016 19:28, Rainer Schuetze wrote: On 06.09.2016 06:38, Tofu Ninja wrote: I get "core.exception.RangeError@pipedmd(286): Range violation" whenever I try to build from visual D. Is there any workaround for this? It was

Re: VisualD core.exception.RangeError@pipedmd(286): Range violation

2016-09-07 Thread Rainer Schuetze via Digitalmars-d-learn
On 07.09.2016 19:28, Rainer Schuetze wrote: On 06.09.2016 06:38, Tofu Ninja wrote: I get "core.exception.RangeError@pipedmd(286): Range violation" whenever I try to build from visual D. Is there any workaround for this? It was reported[1] almost 9 months ago, does not seem like

Re: VisualD core.exception.RangeError@pipedmd(286): Range violation

2016-09-07 Thread Rainer Schuetze via Digitalmars-d-learn
On 06.09.2016 06:38, Tofu Ninja wrote: I get "core.exception.RangeError@pipedmd(286): Range violation" whenever I try to build from visual D. Is there any workaround for this? It was reported[1] almost 9 months ago, does not seem like it's going to be fixed anytime soon. Visual D is completely

Re: Easier way to add libraries to visual d?

2016-05-26 Thread Rainer Schuetze via Digitalmars-d-learn
On 26.05.2016 17:11, TheDGuy wrote: Hi, i use Visual D as a plugin for visual studio to create D applications. But what bothers me a bit is that i have to tell visual D the exact link to the .lib file for every lib i want to use in the project (!). So these are the steps i have to make to get a

Re: Debugging D DLL from C# app with C linkage for native Unity 5 plugin

2016-03-29 Thread Rainer Schuetze via Digitalmars-d-learn
On 30.03.2016 01:41, Thalamus wrote: Apologies if this has been discussed before, but I wasn't able to find anything similar on the forums or web. I can't seem to figure out how to debug a D DLL from a C# EXE. (My actual purpose here is to use D to build native plugins for Unity 5, but Unity an

Re: ldc application unable to start

2016-02-21 Thread Rainer Schuetze via Digitalmars-d-learn
On 21.02.2016 18:11, jmh530 wrote: The application was unable to start correctly (0xc7b). Click OK to close the application. This error code is often caused by a DLL being compiled for the wrong architecture, so I guess that you have some 32-bit DLL in your original folder that is found

Re: Get memory usage report from GC

2016-02-21 Thread Rainer Schuetze via Digitalmars-d-learn
On 20.02.2016 07:22, tcak wrote: On Saturday, 20 February 2016 at 05:55:26 UTC, Jon D wrote: On Saturday, 20 February 2016 at 05:34:01 UTC, tcak wrote: On Saturday, 20 February 2016 at 05:33:00 UTC, tcak wrote: Is there any way (I checked core.memory already) to collect report about memory u

Re: GC configuration docs

2016-01-04 Thread Rainer Schuetze via Digitalmars-d-learn
On 05.01.2016 01:39, Dan Olson wrote: I haven't played with any of the new GC configuration options introduced in 2.067, but now need to. An application on watchOS currently has about 30 MB of RAM. Is there any more documentation than the web page https://dlang.org/spec/garbage.html or should

Re: Can't find windows' CreateThread function / concurrency.spawn crashes host application

2016-01-04 Thread Rainer Schuetze via Digitalmars-d-learn
On 02.01.2016 18:41, alkololl wrote: On Saturday, 2 January 2016 at 16:42:46 UTC, Rainer Schuetze wrote: On 02.01.2016 16:34, alkololl wrote: On Saturday, 2 January 2016 at 01:44:46 UTC, Adam D. Ruppe wrote: [...] Thanks for your reply. I replaced my switch statement with the one behind

Re: Can't find windows' CreateThread function / concurrency.spawn crashes host application

2016-01-02 Thread Rainer Schuetze via Digitalmars-d-learn
On 02.01.2016 16:34, alkololl wrote: On Saturday, 2 January 2016 at 01:44:46 UTC, Adam D. Ruppe wrote: On Saturday, 2 January 2016 at 00:32:20 UTC, alkololl wrote: Why is that? I'm not sure, but in the switch you posted, you didn't handle the DLL_THREAD_ATTACH and DLL_THREAD_DETACH cases,

Re: What's wrong with my debugger?

2015-12-27 Thread Rainer Schuetze via Digitalmars-d-learn
On 24.12.2015 14:57, Chris wrote: On Thursday, 24 December 2015 at 09:30:24 UTC, Rainer Schuetze wrote: In the locals window, mago displays all instances of variables, but with the same value (which might be some uninitialized value of a different declaration than expected). The Visual Studio

Re: What's wrong with my debugger?

2015-12-24 Thread Rainer Schuetze via Digitalmars-d-learn
On 24.12.2015 03:14, Chris wrote: Please see the linked screenshot: http://i.imgur.com/SpkXu5m.png As you can see, the inside, outside and collision arrays don't seem to work with the debugger. They show a bogus lenght and a bogus memory address. Extracting the lenghts to separate variables ou

Re: VisualD building with GDC setting library path

2015-07-18 Thread Rainer Schuetze via Digitalmars-d-learn
On 18.07.2015 15:07, kerdemdemir wrote: Hi, I am tring to build Cristi Cobzarenco's fork of Scid which has LAPACK,BLAS dependency. I add all modules of Scid to my project and I am tring to build it within my project. I add LibraryFiles: liblapack.a libblas.a libtmglib.a libgfortran.a etc.. v

Re: DMD phobos built with contracts check for win?

2015-05-09 Thread Rainer Schuetze via Digitalmars-d-learn
On 05.05.2015 02:03, Dzugaru wrote: I have to compile it myself from sources or is it available somewhere? Was playing with fibers using VisualD + DMD and lack of contract checking (for example call() on fiber in state TERM) leads to bizarre crashes :( The latest (beta) version of Visual D co

Re: Unittest in a windows app

2014-12-20 Thread Rainer Schuetze via Digitalmars-d-learn
On 19.12.2014 22:39, Dan Nestor wrote: Hello everybody, this is my first post on this forum. I have a question about unit testing a Windows application. I have slightly modified Visual D's default Windows application stub to the following: [...] try { Runtime.initialize()

Re: COFF on Win32 how to try?

2014-10-13 Thread Rainer Schuetze via Digitalmars-d-learn
On 13.10.2014 10:12, Szymon Gatner wrote: On Saturday, 11 October 2014 at 13:35:55 UTC, Rainer Schuetze wrote: Yes, DMD git HEAD is required. Getting this when trying to build all with Digger: std\uri.d(872): Deprecation: alias object.clear is deprecated - Please use destroy instead. std

Re: COFF on Win32 how to try?

2014-10-11 Thread Rainer Schuetze via Digitalmars-d-learn
On 11.10.2014 12:12, Szymon Gatner wrote: On Saturday, 11 October 2014 at 09:21:18 UTC, Rainer Schuetze wrote: On 10.10.2014 20:44, Szymon Gatner wrote: Hi, thanks for all the information. I got Digger (pretty nice tool btw) and it pulled all neccessary repos from GitHub. As my

Re: COFF on Win32 how to try?

2014-10-11 Thread Rainer Schuetze via Digitalmars-d-learn
On 10.10.2014 20:44, Szymon Gatner wrote: Hi, thanks for all the information. I got Digger (pretty nice tool btw) and it pulled all neccessary repos from GitHub. As my understanding is that I should not be doing "Build" with Diggger I just opened Windows console, entered druntime dir and typed

Re: COFF on Win32 how to try?

2014-10-10 Thread Rainer Schuetze via Digitalmars-d-learn
On 10.10.2014 10:37, Szymon Gatner wrote: I would like to try recently merged COFF support on Win32 for a hybrid D/C++ application. Until now I tried that (hybridizing) only with DMD from the official installer and in x64 mode. My question is: how to try the same in 32 bits? You need a rece

Re: Trouble linking to static library with Visual D

2014-08-02 Thread Rainer Schuetze via Digitalmars-d-learn
On 02.08.2014 04:43, quakkels wrote: Hello D'ers, I've been really impressed with Visual D and I've decided to undertake my first D project using Visual D in Visual Studio 2012. However, I've had trouble trying to figure out how to link a static library. I've outlined my situation in this Sta

Re: Help to find crash in simple stack type?

2014-07-12 Thread Rainer Schuetze via Digitalmars-d-learn
On 12.07.2014 19:05, Rainer Schuetze wrote: Thanks for the reduction. GC.realloc seems broken for reallocations to sizes larger than the current GC pool. Please file a bug report. Actually done that myself: https://issues.dlang.org/show_bug.cgi?id=13111

Re: Help to find crash in simple stack type?

2014-07-12 Thread Rainer Schuetze via Digitalmars-d-learn
On 12.07.2014 16:24, anonymous wrote: No explanation or solution, but a reduction: import core.memory; void main() { alias T = ubyte; enum size1 = 2_049; /* > 2_048 = 2^^11 */ enum size2 = 1_048_577; /* > 1_048_576 = 2^^20 */ T* _data; _data = cast(T*)GC.calloc(

Re: Visual D: Settings to Improve compil and link process

2014-07-07 Thread Rainer Schuetze via Digitalmars-d-learn
On 07.07.2014 12:46, ParticlePeter wrote: On Sunday, 6 July 2014 at 19:27:38 UTC, Rainer Schuetze wrote: These object files are in the library ;-) That means manual selection, though, as incremental builds to multiple object files don't work with dmd, and single file compilation is pain

Re: Visual D: Settings to Improve compil and link process

2014-07-06 Thread Rainer Schuetze via Digitalmars-d-learn
On 06.07.2014 19:51, ParticlePeter wrote: On Sunday, 6 July 2014 at 08:09:07 UTC, Rainer Schuetze wrote: On 05.07.2014 16:05, ParticlePeter wrote: ... It is possible to remove the template methods from my classes, create free functions instead and use them in a UFCS way. Unfortunately I

Re: Visual D: Settings to Improve compil and link process

2014-07-06 Thread Rainer Schuetze via Digitalmars-d-learn
On 05.07.2014 16:05, ParticlePeter wrote: Hello Community, I thought there's a separate forum for VisualD. It did exist when VisualD was on DSource, so why not add it here as well? Or am I to blind to see? The forum digitalmars.D.ide is probably the best fit. Anyway, this thread is an add

Re: Is GC.setAttr(p, GC.BlkAttr.NO_MOVE) guaranteed to work?

2014-07-01 Thread Rainer Schuetze via Digitalmars-d-learn
On 02.07.2014 08:17, Ali Çehreli wrote: There is an example in GC.addRoot() documentation where the programmer is trying to mark a memory block as NO_MOVE: http://dlang.org/phobos/core_memory.html#.GC.addRoot auto context = new Object; GC.addRoot(cast(void*)context); GC.setA

Re: Down the VisualD0.3.38-1.exe ,found virus!

2014-05-12 Thread Rainer Schuetze via Digitalmars-d-learn
On 12.05.2014 08:36, FrankLike wrote: There are some quotes missing when building the Debug configuration. I have committed a fix and also added the missing file reported in your other message (IIRC it is not needed by every VS SDK). Sorry,Rainer Schuetze, Here is some error when compile the

Re: Down the VisualD0.3.38-1.exe ,found virus!

2014-05-12 Thread Rainer Schuetze via Digitalmars-d-learn
). Sorry,Rainer Schuetze, And there is a little error in sdk.bat '(echo unexpected Visual Studio SDK installation at %VSISDKINC% && exit /B 1)' %VSISDKINC% should be "%VSISDKINC%" I agree it is a bit clearer with quotes, but echo still works without, doesn't it?

Re: Down the VisualD0.3.38-1.exe ,found virus!

2014-05-11 Thread Rainer Schuetze via Digitalmars-d-learn
On 10.05.2014 10:42, FrankLike wrote: I've been using VisualD for a long time without problems. If it makes you nervous, you can get the source from Github and compile it yourself. Hello,Meta When I compile the Visual D projects: at first,I compile the 'build' project,then get some error:

Re: Compile/link Win64

2014-01-10 Thread Rainer Schuetze
On 10.01.2014 21:34, Nick Sabalausky wrote: On 1/10/2014 3:26 PM, Nick Sabalausky wrote: On 1/10/2014 3:19 PM, Brad Anderson wrote: I don't have VC2008 so I unfortunately could not test while I was working on the installer/sc.ini update. Rainer says 2008 does work though. With modern VC ther

Re: unittests and Windows App

2013-12-20 Thread Rainer Schuetze
On 19.12.2013 14:55, ref2401 wrote: I'm using D 2064.2 and VisualD 0.3.37 VisualD "Redirect stdout to output window" checkbox is checked. In simple ConsoleApp unittests work properly. I can debug them and assertion fail results are printed to the Output window. But it seems that unittests don

Re: dmd linker and compiler

2013-11-26 Thread Rainer Schuetze
On 26.11.2013 01:24, Frustrated wrote: WindowsSdkDir=C:\Program Files (x86)\Windows Kits\8.1\Lib\win8\um should have been 8.0 as the path is different for 8.1. Unfortunately the D installer and the latest Visual D were not tested against the 8.1 SDK, and Microsoft changed their mind aga

Re: dmd linker and compiler

2013-11-25 Thread Rainer Schuetze
On 25.11.2013 22:01, Frustrated wrote: set PATH=D:\Dlang\dmd2\windows\\bin;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\\\bin;%PATH% set LIB="C:\Program Files (x86)\Windows Kits\8.1\Lib\win8\um\x86" echo. > D:\DLang\Projects\Tests\RTest1\RTest1\Debug DMD Win32\RTest1.build.lnkarg echo "

Re: dmd linker and compiler

2013-11-25 Thread Rainer Schuetze
On 25.11.2013 14:49, Frustrated wrote: I had an old dmd2 setup that worked perfectly. I recently installed VS2013, SDK 8, DMD 2.064.2, and VS 3.37 on a fresh system. I copied the project to the HD, updated the sc.ini files and tried to compile. Basic projects would compile but my old projects

Re: Current size of GC memory

2013-11-04 Thread Rainer Schuetze
On 04.11.2013 11:23, Namespace wrote: On Monday, 4 November 2013 at 06:38:41 UTC, Rainer Schuetze wrote: On 03.11.2013 19:53, Namespace wrote: On Sunday, 3 November 2013 at 13:05:08 UTC, Namespace wrote: Is there a way to find out how much memory the GC used currently? Does not seem to

Re: Current size of GC memory

2013-11-03 Thread Rainer Schuetze
On 03.11.2013 19:53, Namespace wrote: On Sunday, 3 November 2013 at 13:05:08 UTC, Namespace wrote: Is there a way to find out how much memory the GC used currently? Does not seem to be possible. Would have been nice. There is an "unofficial" function gc_stats here: https://github.com/D-Pr

Re: Questions about VisualD

2013-10-17 Thread Rainer Schuetze
On 17.10.2013 20:44, Namespace wrote: And it seems that VisualD ignores all of my Tasks. My Tasklist is always empty, whats wrong? Or is this not implemented? The Tasklist is not implemented. That is a real minus. :/ Any chance that this comes with the next release? Probably not in the nex

Re: Questions about VisualD

2013-10-17 Thread Rainer Schuetze
On 17.10.2013 00:18, Namespace wrote: I've clicked on "Build Phobos browse info" and now I have absolute no idea how I can restore my old class view for my current project. Any suggestions? You want to remove the phobos info from the class view? You'll have to delete the generated json files

Re: Beta problems

2013-10-13 Thread Rainer Schuetze
On 13.10.2013 01:49, Namespace wrote: I can't reproduce the error but with the current beta I get in a specific project this output: Compiling Audio\Core\core.d... D:\D\dmd2\windows\bin\..\..\src\phobos\std\array.d(15): Error: importing package 'memory' requires a 'package.d' file which c

Re: Windows 64

2013-10-07 Thread Rainer Schuetze
On 08.10.2013 01:26, "Casper Færgemand" " wrote: And I'm done. The problem was this: LIB=%@P%\..\lib;%VCINSTALLDIR%\lib\amd64;%WindowsSdkDir%\Lib\x64 The lib folder linked first contains kernel32.lib and shell32.lib. Removing both made -m64 possible, but killed -m32. Changing it to this: LIB=%V

Re: Windows 64

2013-10-07 Thread Rainer Schuetze
On 07.10.2013 12:21, "Casper Færgemand" " wrote: On Monday, 7 October 2013 at 07:03:39 UTC, Rainer Schuetze wrote: The linker does not find the import libraries from the Windows SDK, so it hits the 32-bit libraries that come with dmd. The released sc.ini does not work wi

Re: Windows 64

2013-10-07 Thread Rainer Schuetze
On 07.10.2013 03:31, "Casper Færgemand" " wrote: Hey, I've been trying for a while to compile 64 bit programs on a Windows 7 platform. The setup is the following: Version: 2.063.2 OS: Windows 7 64 Linked: VS 11 64 bit linker sc.ini: [Version] version=7.51 Build 020 [Environment] LIB="%@P%\.

Re: Visual Studio - formatting

2013-09-30 Thread Rainer Schuetze
ember 2013 at 13:47:21 UTC, Rainer Schuetze wrote: Could you give an example where it does not meet your expectation? Sure. 1. I cannot format the whole file Select all, then indent the selection. With the default shortcuts, that is Ctrl+A, Alt+F8. 2. I have no setting to format automati

Re: Visual Studio - formatting

2013-09-27 Thread Rainer Schuetze
On 27.09.2013 13:16, Namespace wrote: On Friday, 27 September 2013 at 10:06:31 UTC, Dicebot wrote: On Friday, 27 September 2013 at 10:00:04 UTC, Namespace wrote: I've installed the last version (12.11) but I see nothing inside the symbol view. What wrong? If I press "Ctrl + Alt + G" I get oft

Re: Windows DLLs with D

2013-09-17 Thread Rainer Schuetze
On 14.09.2013 18:46, Buk wrote: Hi all, I've read http://dlang.org/dll.html, and frankly there seems to be a lot of boilerplate & rote process to build a DLL. I realise that many of the do nothing functions /can/ be used to do a lot more; and these may be required for some purposes. But, for

Re: VisualD import

2013-09-11 Thread Rainer Schuetze
On 11.09.2013 23:42, Lemonfiend wrote: On Wednesday, 11 September 2013 at 20:36:39 UTC, Rainer Schuetze wrote: On 11.09.2013 18:13, Lemonfiend wrote: Oops, I forgot to say what I actually did. I added derelict to Compiler->General->Additional Imports. The code is just this: modul

Re: VisualD import

2013-09-11 Thread Rainer Schuetze
On 11.09.2013 18:13, Lemonfiend wrote: Oops, I forgot to say what I actually did. I added derelict to Compiler->General->Additional Imports. The code is just this: module main; import std.stdio; import derelict.opengl3.gl3; void main() { writeln("Hello D-World!"); } And the build ou

Re: GC, memory leaks and 32/64 bit

2013-03-13 Thread Rainer Schuetze
On 13.03.2013 08:03, Druzhinin Alexandr wrote: On 13.03.2013 13:35, Rainer Schuetze wrote: If the undefined symbols happen to be related to AssociativeArray, my current workaround is to add "alias Associative!(Key,Value) _workaround;" somewhere to force instantiation for the resp

Re: GC, memory leaks and 32/64 bit

2013-03-12 Thread Rainer Schuetze
sted, etc. Bye, bearophile Thats not correct. Rainer Schuetze has finished it and is using it for VisualD. You can get a version of druntime which the percise GC from his github branch https://github.com/rainers/dmd Kind Regards Benjamin Thaut I tried to build dmd 2.062 + Rainer's druntime +

Re: sc.ini

2013-02-02 Thread Rainer Schuetze
On 02.02.2013 14:16, Michael wrote: Hi, diff versions of Visual Studio may have diff installation path. So here mine in proper order: VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ LINKCMD64=%VCINSTALLDIR%\bin\x86_amd64\link.exe WindowsSdkDir=C:\Program Files (x86)\Micr

Re: std.process.system and friends

2013-02-02 Thread Rainer Schuetze
On 02.02.2013 12:41, Gor Gyolchanyan wrote: Good day, I'm trying to write a script in D for building D projects. I want to set the environment variable LIB for optlink to be able to pick up library files from where I put them after compiling dependencies. The problem is, that the std.process.

Re: const property don't wont return const reference to value

2012-12-23 Thread Rainer Schuetze
On 23.12.2012 14:20, Zhenya wrote: @property const ref int bar() const The first const does not bind to the return type, but to the whole declaration, so it does the same as the const at the end. You should use @property ref const(int) bar() const

Re: Visual D - Solution with Static Lib and Console App.

2012-12-06 Thread Rainer Schuetze
On 06.12.2012 23:14, Nekroze wrote: On Thursday, 6 December 2012 at 22:06:43 UTC, Rainer Schuetze wrote: On 06.12.2012 23:00, Nekroze wrote: On Thursday, 6 December 2012 at 21:28:38 UTC, Rainer Schuetze wrote: On 06.12.2012 22:03, Nekroze wrote: Ok so I have the need to make a static

Re: Visual D - Solution with Static Lib and Console App.

2012-12-06 Thread Rainer Schuetze
On 06.12.2012 23:00, Nekroze wrote: On Thursday, 6 December 2012 at 21:28:38 UTC, Rainer Schuetze wrote: On 06.12.2012 22:03, Nekroze wrote: Ok so I have the need to make a static library that will be reused in multiple future projects. My thinking was that in future solutions i can just

Re: Visual D - Solution with Static Lib and Console App.

2012-12-06 Thread Rainer Schuetze
On 06.12.2012 22:03, Nekroze wrote: Ok so I have the need to make a static library that will be reused in multiple future projects. My thinking was that in future solutions i can just add an existing project, my static library project, so it would grab it and just work. However i cannot seem to