[vtkusers] VTK and MFC access violation
Affolter Martin
martin.affolter at ntb.ch
Fri Jun 3 04:30:24 EDT 2016
Hi vtk-users,
We have an MFC application which contains a vtk-window (vtk 6.1). The application runs fine in different versions (32-/64-bit) on Windows 7, 8 and 10. However, there is an access violation with Windows 10 using a 64-bit Unicode build when the tab, in which the window is situated, is activated.
This is the code from vtkWin32OpenGLRenderWindow::SetSize(int x, int y) that we manage to debug into before the access violation occurs somewhere in the system-dlls:
...
else if (this->Mapped)
{
if (!resizing)
{
resizing = 1;
if (this->ParentId)
{
SetWindowExtEx(this->DeviceContext,x,y,NULL);
SetViewportExtEx(this->DeviceContext,x,y,NULL);
SetWindowPos(this->WindowId,HWND_TOP,0,0,
x, y, SWP_NOMOVE | SWP_NOZORDER);
}
...
The call-stack is attached as a .png
I know, this is a vague description. Nevertheless... any hints or guesses what could be going wrong here?
Thanks.
Martin
Martin Affolter
MSc FHO in Engineering
Wissenschaftlicher Mitarbeiter
___________________________________________
NTB Interstaatliche Hochschule für Technik Buchs
Institut für Ingenieurinformatik
Schönauweg 4
CH-9013 St. Gallen
Tel: +41 81 755 32 49
Web: http://www.ntb.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160603/81ca1a32/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: callstack.png
Type: image/png
Size: 16534 bytes
Desc: callstack.png
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160603/81ca1a32/attachment.png>
More information about the vtkusers
mailing list