Henrik Sundberg wrote:
> 2008/8/3 Henrik Sundberg <[EMAIL PROTECTED]>:
>
>> The release version can be started more than once!
>> The debug version still works just once.
>>
>
> I'm still clueless, but I've found a really ugly workaround.
> I can make the debug version work by opening a dummy browse dialog!
> Doing this code changes:
> The release version from failing the first start, to fail every start.
> The debug version from failing the non-first start, to succeed every start.
>
> Can anyone confirm this?
>
Are these latest changes in the trunk? Then i could try to see what
happens for me.
> /$
>
>
> C:\src\leocad>svn diff common\lc_application.cpp
> Index: common/lc_application.cpp
> ===================================================================
> --- common/lc_application.cpp (revision 729)
> +++ common/lc_application.cpp (working copy)
> @@ -53,7 +53,20 @@
>
> bool lcApplication::LoadPiecesLibrary(const char* LibPath, const
> char* SysLibPath)
> {
> - // Create an empty library.
> + {
> + // Adding this code changes:
> + // The release version from failing the first start, to fail
> every start.
> + // The debug version from failing the non-first start, to
> succeed every start.
> + //
> + // First start is a start without
> HKEY_CURRENT_USER\Software\BT Software\LeoCAD\Settings\PiecesLibrary
> + // in the registry.
> +
> + LC_DLG_DIRECTORY_BROWSE_OPTS Opts;
> + Opts.Title = "DUMMY";
> + SystemDoDialog(LC_DLG_DIRECTORY_BROWSE, &Opts);
> + }
> +
> + // Create an empty library.
> if (m_Library == NULL)
> m_Library = new PiecesLibrary();
> else
>
> C:\src\leocad>
> _______________________________________________
> Leocad mailing list
> [email protected]
> https://list.gerf.org/listinfo/leocad
>
>
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad