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! :)

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 2013-

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

2013-05-11 Thread Walter Bright
On 5/11/2013 12:10 AM, Trey Brisbane wrote: 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 allocat

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 term

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

2013-02-17 Thread Rainer Schuetze
On 17.02.2013 12:31, 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 terminated. This is the ent

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

2013-02-17 Thread Ben Davis
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 terminated. This is the entry at index 1. That's a good start :)

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

2013-02-17 Thread Rainer Schuetze
On 17.02.2013 04:07, Ben Davis wrote: Hi, The user-mode driver I'm working on (a 32-bit DLL) is crashing Windows Media Player on exit. (Two other host apps exit fine.) I can catch it in the Visual Studio debugger, but only see assembly language. Initially I'm just after tips on where to find s

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

2013-02-16 Thread Ben Davis
Correction to my hideous analysis inside free :P On 17/02/2013 03:07, Ben Davis wrote: RTLMultiPool::SelectFree: 05C0AC34 pushecx //This reads 0x05c29b97 into eax 05C0AC35 mov eax,dword ptr [esp+8] //This reads an address from where eax points, and edx is 0 05C0AC39 mov

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

2013-02-16 Thread Ben Davis
Hi, The user-mode driver I'm working on (a 32-bit DLL) is crashing Windows Media Player on exit. (Two other host apps exit fine.) I can catch it in the Visual Studio debugger, but only see assembly language. Initially I'm just after tips on where to find source for the bits of D that are invo