Page 1 of 1

[Unity] Save Problem

Posted: 25 Apr 2016, 09:51
by b1qb0ss
whenever i save the project or press Play NoesisGUI throws this error
NullReferenceException: Object reference not set to an instance of an object
Noesis.NoesisGUI_PINVOKE.new_Label () (at Assets/Plugins/NoesisGUI/Scripts/Proxies/NoesisGUI_PINVOKE.cs:66124)
Noesis.Label.CreateCPtr (System.Type type, System.Boolean& registerExtend) (at Assets/Plugins/NoesisGUI/Scripts/Proxies/Label.cs:39)
Noesis.BaseComponent..ctor () (at Assets/Plugins/NoesisGUI/Scripts/Proxies/BaseComponentExtend.cs:19)
Noesis.DependencyObject..ctor ()
Noesis.Visual..ctor ()
Noesis.UIElement..ctor ()
Noesis.FrameworkElement..ctor ()
Noesis.Control..ctor ()
Noesis.ContentControl..ctor ()
Noesis.Label..ctor ()
InventoryNew..ctor ()
UnityEditor.DockArea:OnGUI()

at first i thought this will go away just like any error but it keeps appearing every time for 1 month

and NoesisGUI is always updated

Re: [Unity] Save Problem

Posted: 25 Apr 2016, 13:25
by sfernandez
Hi,

It seems you are trying to create an InventoryNew label control when NoesisGUI is not initialized. Our framework only works in Play mode if you attach a NoesisGUIPanel component in your scene.

Could you please verify it?

Re: [Unity] Save Problem

Posted: 25 Apr 2016, 19:50
by b1qb0ss
Hi,

It seems you are trying to create an InventoryNew label control when NoesisGUI is not initialized. Our framework only works in Play mode if you attach a NoesisGUIPanel component in your scene.

Could you please verify it?
nope i never created label it's just 2 textboxes and button for login
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Viewbox Stretch="None">
        <Grid>
            <TextBox x:Name="txt_Username" Tooltip="Username" Text="" HorizontalAlignment="Left" Height="23" Margin="0,35,0,0" TextWrapping="NoWrap" VerticalAlignment="Top" Width="120" />
            <PasswordBox x:Name="txt_Password" Tooltip="Password" HorizontalAlignment="Left" Height="23" Margin="0,82,0,0" VerticalAlignment="Top" Width="120" />
            <Button x:Name="btn_Login" Content="Login" HorizontalAlignment="Left" Margin="0,126,0,0" VerticalAlignment="Top" Width="75" />
            <TextBlock x:Name="txtInfo" TextWrapping="Wrap" FontSize="14" VerticalAlignment="Top" Margin="5,190,0,0" TextAlignment="Center" HorizontalAlignment="Left" />
        </Grid>
    </Viewbox>
</Grid>
and i've been getting the same error for even TextBlocks it's weird maybe because the textblock is always empty or smth? hopefully it's nothing critical because sometimes NoesisGUI crashes after throwing these errors

Re: [Unity] Save Problem

Posted: 27 Apr 2016, 11:48
by jsantos
InventoryNew..ctor ()
UnityEditor.DockArea:OnGUI()
Could you paste the code for the ctor of InventoryNew?

Re: [Unity] Save Problem

Posted: 12 May 2016, 19:57
by b1qb0ss
InventoryNew..ctor ()
UnityEditor.DockArea:OnGUI()
Could you paste the code for the ctor of InventoryNew?
sorry for replying after 2 weeks but i had some real life business and i fixed the error Thank you

Re: [Unity] Save Problem

Posted: 17 May 2016, 21:00
by jsantos
Thanks for updating!