Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: IBEvents RegisterEvents



Permlink Replies: 1 - Last Post: Apr 7, 2016 7:15 AM Last Post By: Jeff Cope
Jeff Cope

Posts: 88
Registered: 1/27/01
IBEvents RegisterEvents
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 7, 2016 6:29 AM
Attachment LaunchTest.bat (46 bytes)
Attachment UFrmMain.pas (2.1 KB)
Attachment UFrmMain.dfm (375 bytes)
Original thread: https://forums.embarcadero.com/thread.jspa?threadID=206022&tstart=0

FormShow on UFrmMain opens a connection to an IB database and registers events. After the FormShow it Unregisters the events then re-registers them. The unregister seems to be causing an AV in gds32.dll.

Also included is LaunchTest.bat file. This runs the test program in a loop. Usually the program will fail in the first couple of iterations but if not, launch a second LaunchTest.exe and the AV will occur.

Tested on the following versions of Windows:

- Windows 10 (failed)
- Windows 8.1 (does not fail or does not report issue)
- Windows 2012 Server (failed)
- Windows XP (failed)
Jeff Cope

Posts: 88
Registered: 1/27/01
Re: IBEvents RegisterEvents
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 7, 2016 7:15 AM   in response to: Jeff Cope in response to: Jeff Cope
Jeff Cope wrote:
Original thread: https://forums.embarcadero.com/thread.jspa?threadID=206022&tstart=0

FormShow on UFrmMain opens a connection to an IB database and registers events. After the FormShow it Unregisters the events then re-registers them. The unregister seems to be causing an AV in gds32.dll.

Also included is LaunchTest.bat file. This runs the test program in a loop. Usually the program will fail in the first couple of iterations but if not, launch a second LaunchTest.exe and the AV will occur.

Tested on the following versions of Windows:

- Windows 10 (failed)
- Windows 8.1 (does not fail or does not report issue)
- Windows 2012 Server (failed)
- Windows XP (failed)

It does in fact appear to fail under Win 8.1 the same as the others. Had to enable MadExcept to capture the error though.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02