[vtkusers] why VTK works in Debug mode, but not in release mode?

Cesar Rabak csrabak at yahoo.com.br
Sat Jul 2 14:25:08 EDT 2005


This positivelly indicates a problem with memory
access. It remains to be proved if it stems from a
users' program or from the VTK kernel itself:

1) Windows compilers normally disable some (if not
all) optimizations;

2) in debug mode the memory layout of the application
becomes different which can bring more 'real state'
where a 'wild pointer' could deference w/o causing a
GPF.


--- Luca Picello <luca.picello at libero.it> escreveu:

> 
> I do have same problem using VTK 4.4 with winxp sp1
> + borland c++ 
> builder 6 on ati and intel video cards.
> My program runs well till when I close the
> application.
> I have access violation error in ntdll.dll, I cannot
> identify (no 
> problems in debug mode).
> Later (after ok button pressure) I can see an error
> in 
> vtkWin32OpenGLRenderWindow.cxx in a line I cannot
> identify (window is 
> too little and not responding).
> 
> Bye all,
> Luca
> 
> 
> 
> Cesar Rabak wrote:
> 
> >You don't qualify what you mean by "work" and "not
> >work". However, this behaviour is typical of
> programs
> >with errors in memory acessing.
> >
> >Check to see if you're not using unitialized
> >variables, specially pointers, or trying to
> deference
> >memory not belonging to your process.
> >
> >HTH
> >
> >--- Jing LI <jli023 at cs.auckland.ac.nz> escreveu:
> >
> >  
> >
> >>Hi there, 
> >>
> >>I tested VTK 4.4 on a pc with WinXP SP2 + VS .Net
> >>2003. The VTK projects
> >>work in Debug mode, but not in Release mode. 
> >>
> >>Does anybody have an idea?
> >>
> >>Thanks in advance, 
> >>
> >>Jing 
> >>
> >>_______________________________________________
> >>This is the private VTK discussion list. 
> >>Please keep messages on-topic. Check the FAQ at:
> >>http://www.vtk.org/Wiki/VTK_FAQ
> >>Follow this link to subscribe/unsubscribe:
> >>http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>    
> >>
> >
> >
> >
> >	
> >	
> >		
>
>_______________________________________________________
> 
> >Yahoo! Acesso Grátis - Internet rápida e grátis. 
> >Instale o discador agora!
> http://br.acesso.yahoo.com/
> >_______________________________________________
> >This is the private VTK discussion list. 
> >Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >Follow this link to subscribe/unsubscribe:
> >http://www.vtk.org/mailman/listinfo/vtkusers
> >.
> >
> >  
> >
> 
> 



	
	
		
_______________________________________________________ 
Yahoo! Acesso Grátis - Internet rápida e grátis. 
Instale o discador agora! http://br.acesso.yahoo.com/



More information about the vtkusers mailing list