I have written a database application for logging requests, and I am trying to create additional functionality such that the user can drag and drop an Outlook email onto the application and it will automatically create a new record populated with the relevant details (e.g. request date, requestee, etc).
I have got the 'difficult' stuff working fine - i.e. when an Outlook email is dragged and dropped the OLEDragDrop method correctly identifies it as an Outlook email and extracts all of the relevant details.
However, when it tries to run my 'AddRecord' method to create a new record the application hangs. (When I step through it it hangs on the line which calls the method. Anything I do from that point on causes VFP to crash with either a 'mismatched pushjmp/popjmp' error or a 'Fatal error: Exception code=C0000005').
The application consists of a Top-Level form with a toolbar. The 'AddRecord' method is within the toolbar object and works fine when called from the Click method of the toolbar's 'New' command button.
Is there a limitation on calling methods contained within another form or toolbar from a form's OLEDragDrop method