I have encountered (for me at least) a wierd issue. I have an app which, when the build function allows (see an earlier post), works fine as an exe and debug run with one strange exception.
I have a routine which tabulates a given list box in a format which can be printed, saved or exported (as an csv for instance). I can call this routine for 3 separate tables. The listbox, titles etc are passed to the method (which is in a module) and a table is drawn using google api in an htmlviewer box. 2 calls to the routine work perfectly and produce a new window with the table and a couple of pushbuttons to either filter out certain parts of the table and to close the window. The table is automatically written to file in html for htmlviewer loading and for portability. No problem at at. With the 3rd call however everything works (i.e. the table is written, html file is saved (and can be opened fine) and the necessary code generated, but I lose control of the window displaying the table. i.e. nothing other than moving the whole window or closing via the top right (X) close is functioning. The pushbuttons do not close or filter, the textarea is filled in with code but the scrollbars are not functioning at all.
The only difference between the 3rd call to the first two is that the 3rd call is called from a window with an htmlviewer already open (which is showing a pie or bar chart of the data). For every chart generated the data is sent to a "history listbox" which is the source of the offending table. As I say, the table is, indeed, generated but the functionality of the the controls on the table display window seem to be deactivated.
I have tried, closing the chart htmlviewer box before sending the data to the module to reopen a fresh htmlviewer. indeed, I've tried everything obvious like renaming the viewers, step functioning the whole routine, changing the sequence of calls to the module - nothing helps and I cannot see what is happening here.
So I am simply asking for guidance in how to debug the problem not a solution per se...I just don't know how to go about finding out what's going on. I am loathe re-write the code as it took ages to get working with google api but am resigning myself to having to do that but I thought you guys might be able to help me look for things which I don't know about. How would you go about searching for the issue?
I am a newbie when it comes to object orientated or event driven software having learnt my programming with basic/fortran/pascal etc i.e. number crunching languages so this may be a trivial issue but I am totally at a loss as to where to look now and how to go about looking for the issue.
Help please !!!! .......