[Windows & DMD] No callstack when crash with Access violation reading location 0x00000000

Xavier Bigand flamaros.xavier at gmail.com
Sat Jan 11 13:56:26 PST 2014


Le 11/01/2014 22:15, Benjamin Thaut a écrit :
> Am 11.01.2014 20:50, schrieb Xavier Bigand:
>>
>> Yes I have no stack trace and adding import core.sys.windows.stacktrace
>> change nothing.
>
> That is very strange. Can you reduce this? Or is this project on github
> somewhere? Did you try using a debugger?
>
> Kind Regards
> Benjamin Thaut

Yes it's on github : 
https://github.com/Flamaros/DQuick/tree/Missing_RAII_Warning

Ro reproduce the crash :
  - You can launch the DQuick-VisualD.sln solution file that is in the 
root folder.
  - Launch the Text project (in debug mode)
  - Resize the Window, it crash directly

It seems to be related to the GraphicItem class in startPaint methode, 
particulary this section of code :
		debug
		{
			if (mRebuildDebugMeshes)
				updateDebugMesh();
			mDebugMesh.draw();
			if ((implicitWidth != float.nan && implicitHeight != float.nan)
				&& (implicitWidth != mSize.x && implicitHeight != mSize.y))
				mDebugImplicitMesh.draw();
		}


Putting it under comment remove the crash.

Thank you for your help.


More information about the Digitalmars-d-learn mailing list