Menu

#76 Crash with menu system under Perl 5.10

open
nobody
None
5
2008-04-13
2008-04-13
jw
No

I am getting a crash when using Perl 5.10 and Win32::GUI 1.6. The same application doesn't crash under 5.8.7 or 5.8.8. I've tracked down the "problem", but I'm not convinced it's the actual underlying issue. The crash was occurring at:

GUI_Helpers.cpp line 757 proc WindowsHookMsgProc

When I was selecting from the main menu of the application. The problem is the line:

arrayref = av_fetch(perlud->avHooks, WM_TRACKPOPUP_MSGHOOK, 0);

where:

perlud->avHooks

contains zero (NULL)

Simply adding:

if (perlud->avHooks !=NULL ) {

before the call to the av_fetch stops the crash and the application runs normally.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.