Jump to content


Photo

AV in TNxPopupControl6.MouseUp if something like break point interrupts event.


  • Please log in to reply
6 replies to this topic

#1 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 01 November 2016 - 11:44 PM

procedure TNxPopupControl6.MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  if psClosing in FPopupState then Exit;

  inherited;
  if FMouseDown and PtInRect(ClientRect, Point(X, Y)) then
  begin
    { Set State }
    Include(FPopupState, psClosing);

    if Assigned(DropDown) then
    begin
      { Close & Destroy }
      if Assigned(DropDown) then
        DropDown.DroppedDown := False;
      Exit;
    end;
  end
  else if PtInRect(ControlRect, Point(X, Y)) then
  begin

  end
  else SetCaptureControl(Self);

  FMouseDown := False; { ! }
end;

The above was changed, but there still might be issues because it still crashes sometimes.



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 02 November 2016 - 02:33 PM

Hi,

 

Can you send me code you use and receive this AV.

 

I assume that you use OnCloseUp, or OnSelect?


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 02 November 2016 - 04:15 PM

I added a break point on my form's NxComboBox6.OnChange event and it happened.



#4 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 16 November 2016 - 01:17 AM

I still continue to have weird problems with combo boxes. Unfortunately, I had to switch back to NxComboBox because NxComboBox6 was crashing our application.

TNxPopupControl6.MouseUp(mbLeft,[],35,5)
TNxStringsPopupControl6.MouseUp(mbLeft,[],35,5)
TControl.DoMouseUp((514, 0, 35, 5, (35, 5), 0),mbLeft)
TControl.WMLButtonUp((514, 0, 35, 5, (35, 5), 0))
TControl.WndProc((514, 0, 327715, 0, 0, 0, 35, 5, 0, 0))
TWinControl.WndProc((514, 0, 327715, 0, 0, 0, 35, 5, 0, 0))
TWinControl.MainWndProc((514, 0, 327715, 0, 0, 0, 35, 5, 0, 0))
StdWndProc(400166944,514,0,327715)
TApplication.ProcessMessage((400166944, 514, 0, 327715, 88276453, (1125, 641)))
TApplication.HandleMessage
TApplication.Run
MyApplication


#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 16 November 2016 - 10:46 AM

Hi,

 

Not sure how I will find it. If you have time, and made it to catch in some exact scenario - please send it to me.

 

I will try to search around what may cause it.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#6 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 16 November 2016 - 07:46 PM

Hi,

 

Not sure how I will find it. If you have time, and made it to catch in some exact scenario - please send it to me.

 

I will try to search around what may cause it.

 

I seem to be able to recreate the crash reliably in our application.  I'll throw that bit into a test application and see if I can get it to do it there and send it to you.



#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 16 November 2016 - 08:07 PM

Thank you,

 

Will really like to get rid of this bug.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users