Home » U++ Library support » U++ Core » crash on exit from XmlView example
crash on exit from XmlView example [message #24234] |
Wed, 06 January 2010 21:40  |
jaynorwood
Messages: 7 Registered: May 2008
|
Promising Member |
|
|
If I exit by just closing the selection dialog, the XmlView example crashes in b1824 on Windows Debug build, VS9.
I think what is happening is the call to StoreToFile is with a null pointer for file in Stream.cpp.
If I add the test below, it doesn't crash.
bool StoreToFile(Callback1<Stream&> serialize, const char *file, int version) {
FileOut f(Cfgname(file));
if (!file) return false;
return f ? Store(serialize, f, version) : false;
}
|
|
|
Goto Forum:
Current Time: Wed Apr 30 04:55:48 CEST 2025
Total time taken to generate the page: 0.00498 seconds
|