Re: DLL crash inside removethreadtableentry - where's the source code for that?

2013-05-11 Thread Trey Brisbane
On Sunday, 17 February 2013 at 11:32:02 UTC, Ben Davis wrote: On 17/02/2013 07:56, Rainer Schuetze wrote: _removethreadtableentry is a function in the DM C runtime library. It has the bug that it tries to free a data record that has never been allocated if the thread that loaded the DLL is

Re: DLL crash inside removethreadtableentry - where's the source code for that?

2013-05-11 Thread Trey Brisbane
On Saturday, 11 May 2013 at 07:38:53 UTC, Walter Bright wrote: I thought this was already fixed. What's the date/size on your snn.lib? The latest is: 02/25/2013 06:19 PM 573,952 snn.lib In dmd.2.062.zip (the one I'm using): 574,464 2012-12-11 7:30 AM In dmc.zip: 573,952

Re: DLL crash inside removethreadtableentry - where's the source code for that?

2013-05-11 Thread Trey Brisbane
Yep, problem solved. Thanks very much for your help! :)

How/why can toStringz() and toUTFz() be used as properties?

2013-04-26 Thread Trey Brisbane
Hey all, Can someone please explain to me how and why it is that toStringz() and toUTFz() can be used in the following way? string a = 123; auto b = a.toStringz; auto c = a.toUTFz; Also, how is it that they can even be called as if they were class methods? That is: string a = 123; auto b

Re: How/why can toStringz() and toUTFz() be used as properties?

2013-04-26 Thread Trey Brisbane
On Friday, 26 April 2013 at 08:49:10 UTC, anonymous wrote: On Friday, 26 April 2013 at 07:31:57 UTC, Trey Brisbane wrote: Hey all, Can someone please explain to me how and why it is that toStringz() and toUTFz() can be used in the following way? string a = 123; auto b = a.toStringz; auto c

Re: x64 Link Issues - Can someone please help?

2013-04-20 Thread Trey Brisbane
On Saturday, 20 April 2013 at 04:46:45 UTC, dnewbie wrote: phobos64.lib(dmain2_4ac_1a5.obj) : error LNK2019: unresolved external symbol _Dmain referenced in function main Please add -L/DLL to the command line. Ahhh ok, thanks! I assumed DMD would have detected the output file being a DLL

Re: x64 Link Issues - Can someone please help?

2013-04-20 Thread Trey Brisbane
It seems my resources were breaking the link! Essentially, I was suffering from this problem: http://stackoverflow.com/questions/10888391/link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-invalid-or-c/14144713 In any case, problem solved. Thanks! :)

Re: x64 Link Issues - Can someone please help?

2013-04-19 Thread Trey Brisbane
On Friday, 19 April 2013 at 13:52:54 UTC, Steven Schveighoffer wrote: On Thu, 18 Apr 2013 21:19:34 -0400, Trey Brisbane tbrisb...@hotmail.com wrote: With regards to digitalmars.D.learn - I had considered posting there, but considering this isn't really a question about learning D, but rather

x64 Link Issues - Can someone please help?

2013-04-19 Thread Trey Brisbane
Hey all, I'm currently using D for a hook-based project that requires me to build both a 32bit and 64bit DLL. Naturally, the 32bit DLL builds fine, however I'm encountering linking issues for the 64bit. I followed the instructions at

x64 Link Issues - Can someone please help?

2013-04-18 Thread Trey Brisbane
Hey all, I'm currently using D for a hook-based project that requires me to build both a 32bit and 64bit DLL. Naturally, the 32bit DLL builds fine, however I'm encountering linking issues for the 64bit. I followed the instructions at

Re: x64 Link Issues - Can someone please help?

2013-04-18 Thread Trey Brisbane
On Friday, 19 April 2013 at 00:53:28 UTC, Vladimir Panteleev wrote: On Friday, 19 April 2013 at 00:24:27 UTC, Trey Brisbane wrote: As you can see, there appears to be an issue with my usage of WinMain() as opposed to just main(). For 32bit building, the documentation states that the compiler