bakemonoshi
New member
- Joined
- Jul 6, 2010
- Messages
- 3
- Programming Experience
- 3-5
Hey guys i have a very anoying issue regarding the fact that sometimes, when VS2008 or 2010 finds an error along my code, it just skips it, no warnings or errors reported, then it runs on debug mode, without all the lines that are after the ones that dont work in each function that contains an error, on release it dosen't run at all. Can you guys please get me out of this one? It never happened before so i suspect i may have meddled with VS's configurations unknowingly!? Thank you in advance. Here goes an example.
it displays the for as if no code has run at all.
the problem is not on the library im using. I SWEAR! ty
VB.NET:
Imports MTV3D65
Public Class Form1
Declare Function GetFocus Lib "user32" () As Integer
Private tv As TVEngine
Private repeat As Boolean
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
tv = New TVEngine ' the error occurs here, and if i add a breakpoint here, it doesn't stop at it.
tv.Init3DWindowed(PictureBox1.Handle)
repeat = True
Show()
LifeLoop() ' this dosen't even run
End Sub
Private Sub LifeLoop()
While repeat
If GetFocus = Me.Handle.ToInt32 Then
tv.Clear(False)
tv.RenderToScreen()
MsgBox("doin it")
Else
System.Threading.Thread.Sleep(100)
End If
Application.DoEvents()
End While
repeat = False 'nevermind these
tv.ReleaseAll()
tv = Nothing
End
End Sub
End Class
it displays the for as if no code has run at all.
the problem is not on the library im using. I SWEAR! ty
Last edited: