Author Topic: Gambas 1.9.47 crashes when trying to edit an existing menu  (Read 2560 times)

M0E-lnx

  • Jr. Member
  • **
  • Posts: 51
    • vl-eyecandy
I've created a menu strip on my application, it's been a while since I did that, which means the contents of the application has changed. The existing menu still works as desired, but when I try to add more entries to it, I get an error saying this
Code: [Select]
This application has raised an unexpected error and must abort.

[12] Not an Object.
CControl.GetPropertyDefault.536

The terminal output looks like this
Code: [Select]
CControl.GetPropertyDefault.536: #12: Not an object
Mutex destroy failure: Device or resource busy

This is Gambas 1.9.47 running on Vector Linux.

Linux Basic


timothy

  • Sr. Member
  • ****
  • Posts: 319
Re: Gambas 1.9.47 crashes when trying to edit an existing menu
« Reply #1 on: May 09, 2007, 12:13:18 PM »

I should do a Clean up and then a Compile All on the project. Both these options are in the Project menu. Then try again. Its worth performing these actions on any project you upgrade by a few version digits.

This is the line in Gambas that is crashing:

  RETURN CComponent.Classes[Kind].Properties[sProp].DefaultValue

I would guess that you have a ComboBox or ListBox on the form. The List property of these controls has been changed from a string to a string array. And so this line is returning the wrong type. The Clean up was added to Gambas to solve this problem.


42 - So long and thanks for all the fish.

M0E-lnx

  • Jr. Member
  • **
  • Posts: 51
    • vl-eyecandy
Re: Gambas 1.9.47 crashes when trying to edit an existing menu
« Reply #2 on: May 09, 2007, 02:39:39 PM »
Actually, this particular form doesn't have a combobox or a listbox... just a couple of buttons, a couple of texlabels and an image.

I tried your suggestion, but it's still a no go
« Last Edit: May 09, 2007, 02:49:19 PM by M0E-lnx »