Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

QuickWin callback routine

NSwindale
New Contributor I
2,417 Views

Callback routines registered to Quickwin (Fortran) windows cause a crash. I have been using these  for years. There is normally a run time crash after compiling with the debug configuration but this goes away with the release configuration. With the latest Intel Compiler (Intel Parallel Studio XE Cluster edition 2020) and Visual Studio Community Edition 2019 the bug occurs with both debug and release configurations and the program is unusable.

e.g.

iret=registermouseevent(HP_window, mouse$lbuttondown, move_vd_display)

followed by

10         ierr=waitonmouseevent(MOUSE$MOVE, keystate, impos, jmpos)

The crash occurs with this function, the error code says:

Unhandled exception at 0x00007FF822D1D125 (uxtheme.dll) in SpikeSorter.exe: 0xC000041D: An unhandled exception was encountered during a user callback.

 

0 Kudos
21 Replies
NSwindale
New Contributor I
659 Views

Thanks. I sent my previous comment before I saw your last. Perhaps it is a library error, though QWPaint uses the same two functions - registermouseevent and waitonmouseevent and it does not have a problem.

Nick

0 Kudos
Reply