User avatar
b1qb0ss
Topic Author
Posts: 19
Joined: 09 Feb 2015, 15:10

[Unity] Save Problem

25 Apr 2016, 09:51

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
 
User avatar
sfernandez
Site Admin
Posts: 2995
Joined: 22 Dec 2011, 19:20

Re: [Unity] Save Problem

25 Apr 2016, 13:25

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?
 
User avatar
b1qb0ss
Topic Author
Posts: 19
Joined: 09 Feb 2015, 15:10

Re: [Unity] Save Problem

25 Apr 2016, 19:50

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
 
User avatar
jsantos
Site Admin
Posts: 3919
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Unity] Save Problem

27 Apr 2016, 11:48

InventoryNew..ctor ()
UnityEditor.DockArea:OnGUI()
Could you paste the code for the ctor of InventoryNew?
 
User avatar
b1qb0ss
Topic Author
Posts: 19
Joined: 09 Feb 2015, 15:10

Re: [Unity] Save Problem

12 May 2016, 19:57

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
 
User avatar
jsantos
Site Admin
Posts: 3919
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Unity] Save Problem

17 May 2016, 21:00

Thanks for updating!

Who is online

Users browsing this forum: No registered users and 19 guests