Hi,
This is a static initialisation problem. Modify TreeViewDragDrop.C,
around line 70, to reflect these changes:
--- a/examples/treeview-dragdrop/TreeViewDragDrop.C
+++ b/examples/treeview-dragdrop/TreeViewDragDrop.C
@@ -67,8 +67,8 @@ public:
static WString dateEditFormat;
};
-WString FileModel::dateDisplayFormat("MMM dd, yyyy");
-WString FileModel::dateEditFormat("dd-MM-yyyy");
+WString FileModel::dateDisplayFormat(WString::fromUTF8("MMM dd, yyyy"));
+WString FileModel::dateEditFormat(WString::fromUTF8("dd-MM-yyyy"));
/*! \class FileEditDialog
* \brief A dialog for editing a 'file'.
I will make sure this is included in the next release. Thank you for
reporting the problem.
Best regards,
Wim.
2009/3/23 Jitesh <[email protected]>:
> Hello!
> I just compiled witty with boost library 1.38 and I cannot run the Treeview
> Drag and Drop example!
> The rest of the examples run fine, only this one generates this exception in
> Visual Studio 2005 when I try to run it in debug mode:
>
> 'treeviewdragdrop.wt.exe': Loaded
> 'C:\witty\wt-2.99.0\build\examples\treeview-dragdrop\debug\treeviewdragdrop.wt.exe',
> Symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\ntdll.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\kernel32.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\winmm.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\msvcrt.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\user32.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\gdi32.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\advapi32.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\ole32.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\oleaut32.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\oleacc.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\wsock32.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\ws2_32.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\nsi.dll', No symbols
> loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\mswsock.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded
> 'C:\Windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.762_none_24c8a196583ff03b\msvcp80d.dll',
> Symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded
> 'C:\Windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.762_none_24c8a196583ff03b\msvcr80d.dll',
> Symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\imm32.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\msctf.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\lpk.dll', No symbols
> loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\usp10.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Program Files\Kaspersky Lab\Kaspersky
> Internet Security 2009\mzvkbd.dll', No symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\psapi.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Program Files\Kaspersky Lab\Kaspersky
> Internet Security 2009\mzvkbd3.dll', No symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Program Files\Kaspersky Lab\Kaspersky
> Internet Security 2009\adialhk.dll', No symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Windows\System32\shlwapi.dll', No
> symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded
> 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll',
> No symbols loaded.
>
> 'treeviewdragdrop.wt.exe': Loaded 'C:\Program Files\Kaspersky Lab\Kaspersky
> Internet Security 2009\kloehk.dll', No symbols loaded.
>
> First-chance exception at 0x64ab379b (msvcp80d.dll) in
> treeviewdragdrop.wt.exe: 0xC0000005: Access violation reading location
> 0x00000014.
>
> Unhandled exception at 0x64ab379b (msvcp80d.dll) in treeviewdragdrop.wt.exe:
> 0xC0000005: Access violation reading location 0x00000014.
>
>
>
> Is there any thing I can do to fix this and be able to run the example?
>
> Tkx!
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest