[vtkusers] Loading an image under windows causes Assert (FORMAT !+ NULL) in vtkXYPlotActor.cxx

Neil.Burdett at csiro.au Neil.Burdett at csiro.au
Wed Mar 3 18:19:16 EST 2010


Hi,
    I'm porting an application from Linux (Ubuntu) to windows (visual studio 9 2008).
 Loading an image works under Linux, but under windows the image is loaded but then an assert is fired with the following error dialog box:

Debug Assertion Fired

Program: C:\milx-view\build\bin\Debug\milxview.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\sprintf.c
Line: 105

Expression: (format != NULL)

For information on how your program can cause an assertion
Failure, see the visual C++ documentation on asserts.

(Press Retry to debug the application)


The application stops in void vtkXYPlotActor::PlaceAxes when it tries and executes the sprintf line:

// At this point the thing to do would be to actually ask the Y axis
// actor to return the largest label.
// In the meantime, let's try with the min and max
sprintf(str1, axisY->GetLabelFormat(), axisY->GetAdjustedRange()[0]);

Any help would be much appreciated

Thanks
Neil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100304/92eed98e/attachment.htm>


More information about the vtkusers mailing list