This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

tElPopupmenu GPF when compiled inside a DLL

edited May 2013 in LMD ElPack
Hello LMD team,

I have a weird problem. I have written an activeX DLL. It is compiled with Delphi 2009. The DLL contains, among other things, a form with a tELPopupmenu.  Inside this DLL, I make sure that "application.handle" is identical with the executable's mainform handle.


The following problem occurs:

If this DLL is called from an executable that was compiled with Delphi 2007 ... XE, it works fine and is 100% stable. 

However, if the DLL is called from an executable compiled with Delphi XE2 or newer, it causes a GPF in Kernel32.dll when the user moves the mouse cursor over a tELMenuItem.  It really is the movement of the mouse cursor that causes the GPF, the user needs not click anything.

I had to remove the telpopupmenu completely and use a Delphi tPopupmenu to make the DLL stable again. This is very unpleasant, though, because Delphi's tPopupmenu doesn't have a "font" property and I need to be able to support Cyrillic and Arabic even on systems that don't have extended font support installed. 

Can you please fix this issue?



Comments

  • Please send demo project (which allows to reproduce issue) to mail@lmdsupport.com.
    When you send in zip files, make sure that you mask filename (e.g. myprojects(dot)zip), otherwise mail will be filtered and won't reach us.
  • Done, it should be in your e-mail now.
  • Thank you. Files are recieved, issue is reproduced and is being reviewed.
Sign In or Register to comment.