Results 1 to 5 of 5

Thread: tao opengl project error with texture loading using vb images

  1. #1
    Junior Member
    Join Date
    Jul 11
    Posts
    20

    tao opengl project error with texture loading using vb images

    What do you guys make of this error?

    Name:  vberror.png
Views: 81
Size:  136.1 KB

  2. #2
    PowerPoster formlesstree4's Avatar
    Join Date
    Jun 08
    Location
    On the Internet
    Posts
    2,901

    Re: tao opengl project error with texture loading using vb images

    Try putting a System. in front of it?

  3. #3
    Junior Member
    Join Date
    Jul 11
    Posts
    20

    Re: tao opengl project error with texture loading using vb images

    That fixed that error, so strange, how an earlier version of my work worked and it had compensated for this issue with name spaces, but i dont recall removing any namespaces to cause this error since then!

    Any how i got another error right after i fixed taht error, could you have a look at this?

    Name:  newerror.png
Views: 70
Size:  14.5 KB


    System.InvalidOperationException was unhandled
    HResult=-2146233079
    Message=An error occurred creating the form. See Exception.InnerException for details. The error is: Conversion from string "" to type 'Double' is not valid.
    Source=Part2
    StackTrace:
    at Part2.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
    at Part2.My.MyProject.MyForms.get_MyProject()
    at Part2.MyProject.Main() in D:\Users\darkdave\Desktop\part2\Part2\MyProject.Designer.vb:line 0
    at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
    at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    InnerException: System.InvalidCastException
    HResult=-2147467262
    Message=Conversion from string "" to type 'Double' is not valid.
    Source=Microsoft.VisualBasic
    StackTrace:
    at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
    at Part2.MyProject.txtCylinderEmploymentPeople_TextChanged(Object sender, EventArgs e) in D:\Users\darkdave\Desktop\part2\Part2\MyProject.vb:line 5311
    at System.Windows.Forms.Control.set_Text(String value)
    at System.Windows.Forms.TextBoxBase.set_Text(String value)
    at System.Windows.Forms.TextBox.set_Text(String value)
    at Part2.MyProject.InitializeComponent() in D:\Users\darkdave\Desktop\part2\Part2\MyProject.Designer.vb:line 2459
    at Part2.MyProject..ctor() in D:\Users\darkdave\Desktop\part2\Part2\MyProject.vb:line 132
    InnerException: System.FormatException
    HResult=-2146233033
    Message=Input string was not in a correct format.
    Source=Microsoft.VisualBasic
    StackTrace:
    at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
    at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
    InnerException:

    ----------
    I went to line 190 of my code but i didnt see relevant errors, i even put a bullet point there to break the program before it got there but the error occured before then, i get the feeling line 190 is refering to the build file of my program, how do i access that if thats the case?

    While im not a noob to opengl im a bit of a noob when it comes to vb, im usint tao.
    ------------
    Thanks for helping me, for some reason my project seems to work in another OS im running in a dual boot of the same machine, both running win 7 but here on the 64 bit os the project spits out all these errors while i have vb2010 express installed on both OS i dont see why i have problems with this version of vb2010 on the 64bit version of win7 but i guess thats a seperate issue. For example i dont have the above problem in the 32bit win7 version of vb2010 express, same project folder and files and everything! Im wondering if its because i have not properly set up resources links in this newer install of vb2010.

  4. #4
    Junior Member
    Join Date
    Jul 11
    Posts
    20

    Re: tao opengl project error with texture loading using vb images

    I went to line 190 of my code but i didnt see relevant errors, i even put a bullet point there to break the program before it got there but the error occured before then, i get the feeling line 190 is refering to the build file of my program, how do i access that if thats the case?

    While im not a noob to opengl im a bit of a noob when it comes to vb, im usint tao.

  5. #5
    PowerPoster formlesstree4's Avatar
    Join Date
    Jun 08
    Location
    On the Internet
    Posts
    2,901

    Re: tao opengl project error with texture loading using vb images

    at Part2.MyProject.txtCylinderEmploymentPeople_TextChanged(Object sender, EventArgs e) in D:\Users\darkdave\Desktop\part2\Part2\MyProject.vb:line 5311
    Look at that line specifically. It looks like you're doing a cast:

    at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
    Which is trying to convert a string (i'm guessing the text value of txtCylinderEmploymentPeople) which, at the time of the conversion, is blank:

    Message=Conversion from string "" to type 'Double' is not valid.
    Hence the error message.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •