From: Tatsuro M. <tma...@ya...> - 2011-03-30 02:30:06
|
Hello I have carried out gdb trace. #****************************** $ gdb src/gnuplot GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "mingw32". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from e:\usr\Tatsu\mingwhome\gnuplotcvs\gnuplot/src/gnuplot.exe...done. (gdb) break WinExit Breakpoint 1 at 0x532aa9: file win/winmain.c, line 157. (gdb) run Starting program: e:\usr\Tatsu\mingwhome\gnuplotcvs\gnuplot/src/gnuplot.exe [New Thread 1284.0x1228] G N U P L O T Version 4.5 patchlevel 0 last modified March 2011 System: MS-Windows 32 bit Copyright (C) 1986-1993, 1998, 2004, 2007-2010 Thomas Williams, Colin Kelley and many others gnuplot home: http://www.gnuplot.info mailing list: gnu...@li... faq, bugs, etc: type "help seeking-assistance" immediate help: type "help" plot window: hit 'h' Terminal type set to 'wxt' gnuplot> exit Breakpoint 1, WinExit () at win/winmain.c:157 157 term_reset(); (gdb) step term_reset () at term.c:859 859 paused_for_mouse = 0; (gdb) step 862 if (!term_initialised) (gdb) step 863 return; (gdb) step 882 } (gdb) step WinExit () at win/winmain.c:162 162 if (graphwin.hWndGraph && IsWindow(graphwin.hWndGraph)) (gdb) step 168 HtmlHelp(NULL, NULL, HH_CLOSE_ALL, (DWORD_PTR)NULL); (gdb) step [New Thread 1284.0x113c] (HtmlHelp seems to hang here) ****************************** However At the initial prompt I carried out plot and close graph windows gnuplot> plot sin(x) [New Thread 2124.0x1038] After that gnuplot> exit Breakpoint 1, WinExit () at win/winmain.c:157 157 term_reset(); (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) n Program not restarted. (gdb) step term_reset () at term.c:859 859 paused_for_mouse = 0; (gdb) step 862 if (!term_initialised) (gdb) step 863 return; (gdb) step 882 } (gdb) step WinExit () at win/winmain.c:162 162 if (graphwin.hWndGraph && IsWindow(graphwin.hWndGraph)) (gdb) step 168 HtmlHelp(NULL, NULL, HH_CLOSE_ALL, (DWORD_PTR)NULL); (gdb) step [New Thread 2124.0xe78] [New Thread 2124.0x5d4] [New Thread 2124.0xe6c] [New Thread 2124.0xbec] 185 } This time HtmlHelp seemed to work correctly. Perhaps something is wrong with initialization gnuplot.exe + HtmlHelp on windows 7. A dummy plot? routine may avoid this fault as a temporal treatment. (It is of course curious method. ) Regards Tatsuro --- Tatsuro MATSUOKA wrote: > > Hello > --- Bastian M将」rkisch wrote: > > > Hhhm. It shouldn't be. MSDN says: > > > > "While Microsoft develops future Help technologies, we encourage Help authors > > to continue using HTML Help 1.4. HTML Help 1.4 is included in Windows篠7." > > > > I have downloaded windows sdk for windows 7. I found the htmlhelp.h and Htmlhelp.Lib in > C:\Program > Files\Microsoft SDKs\Windows\v7.1\Include and C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib, > respectively. > > I have tried to use htmlhelp.h and Htmlhelp.Lib in C:\Program Files\Microsoft SDKs\Windows\v7.1 > but > they cannot be used as they are for current gnuplot cvs code on mingw. > > As a reference I show the diff of htmlhelp.h between in the html help workshop and sdk : > > ******************************* > --- htmlhelp.orig.h 1999-07-14 05:02:22 +0900 > +++ htmlhelp.sdk.h 2010-04-19 20:44:16 +0900 > @@ -17,10 +17,12 @@ > extern "C" { > #endif // __cplusplus > > +#if _MSC_VER < 1200 > // Defines for Win64 > #ifndef _WIN64 > #define DWORD_PTR DWORD > #endif > +#endif > > // Commands to pass to HtmlHelp() > > @@ -53,8 +55,10 @@ > #define HH_SET_EXCLUSIVE_FILTER 0x0019 // set exclusive filtering method for untyped topics to > be > excluded from display > #define HH_INITIALIZE 0x001C // Initializes the help system. > #define HH_UNINITIALIZE 0x001D // Uninitializes the help system. > +#define HH_SET_QUERYSERVICE 0x001E // Set the Host IQueryService interface > #define HH_PRETRANSLATEMESSAGE 0x00fd // Pumps messages. (NULL, NULL, MSG*). > #define HH_SET_GLOBAL_PROPERTY 0x00fc // Set a global property. (NULL, NULL, HH_GPROP) > +#define HH_SAFE_DISPLAY_TOPIC 0x0020 // private addition to the interface for > InternetExplorer. > > #define HHWIN_PROP_TAB_AUTOHIDESHOW (1 << 0) // Automatically hide/show tri-pane window > #define HHWIN_PROP_ONTOP (1 << 1) // Top-most window > @@ -364,19 +368,19 @@ > HWND > WINAPI > HtmlHelpA( > - HWND hwndCaller, > - LPCSTR pszFile, > - UINT uCommand, > - DWORD_PTR dwData > + __in_opt HWND hwndCaller, > + __in LPCSTR pszFile, > + __in UINT uCommand, > + __in DWORD_PTR dwData > ); > > HWND > WINAPI > HtmlHelpW( > - HWND hwndCaller, > - LPCWSTR pszFile, > - UINT uCommand, > - DWORD_PTR dwData > + __in_opt HWND hwndCaller, > + __in LPCWSTR pszFile, > + __in UINT uCommand, > + __in DWORD_PTR dwData > ); > #ifdef UNICODE > #define HtmlHelp HtmlHelpW > @@ -424,3 +428,4 @@ > #endif // __cplusplus > > #endif // __HTMLHELP_H__ > + > **************************************** > > Regards > > Tatsuro > |