Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 11th November 2011
Braincode's Avatar
Braincode Braincode is offline
Ceriwis Addicted
 
Join Date: Nov 2011
Posts: 4,638
Rep Power: 20
Braincode mempunyai hidup yang Normal
Default VB 2008 Thread Safe [Windows Form]

Ada yang ngerti ga tentang thread safe buat aplikasi windows form?



skripsi gw tinggal selangkah lagi nih



jadi gabungin midi sound sama image processing sederhana pake picture box



anehnya kalo tuh midi nya aja yang dijalanin bisa, image processing juga bisa, eh mau digabungin gatot (gagal total)



untuk playing midi pake timer sendiri (soalnya yang bawaan visual studio ga presisi) System.InvalidOperationException was unhandled
Message="Cross-thread operation not valid: Control 'Form1' accessed from a thread other than the thread it was created on."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.Control.get_InternalHandle() at System.Windows.Forms.Control.get_CreateParams() at System.Windows.Forms.PictureBox.get_CreateParams() at System.Windows.Forms.Control.SizeFromClientSize(In t32 width, Int32 height) at System.Windows.Forms.Control.SizeFromClientSize(Si ze clientSize) at System.Windows.Forms.PictureBox.GetPreferredSizeCo re(Size proposedSize) at System.Windows.Forms.Control.GetPreferredSize(Size proposedSize) at System.Windows.Forms.Layout.DefaultLayout.LayoutAu toSizedControls(IArrangedElement container) at System.Windows.Forms.Layout.DefaultLayout.xLayout( IArrangedElement container, Boolean measureOnly, Size& preferredSize) at System.Windows.Forms.Layout.DefaultLayout.LayoutCo re(IArrangedElement container, LayoutEventArgs args) at System.Windows.Forms.Layout.LayoutEngine.Layout(Ob ject container, LayoutEventArgs layoutEventArgs) at System.Windows.Forms.Control.OnLayout(LayoutEventA rgs levent) at System.Windows.Forms.ScrollableControl.OnLayout(La youtEventArgs levent) at System.Windows.Forms.Form.OnLayout(LayoutEventArgs levent) at System.Windows.Forms.Control.PerformLayout(LayoutE ventArgs args) at System.Windows.Forms.Control.System.Windows.Forms. Layout.IArrangedElement.PerformLayout(IArrangedEle ment affectedElement, String affectedProperty) at System.Windows.Forms.Layout.LayoutTransaction.DoLa yout(IArrangedElement elementToLayout, IArrangedElement elementCausingLayout, String property) at System.Windows.Forms.Control.PerformLayout(LayoutE ventArgs args) at System.Windows.Forms.Control.System.Windows.Forms. Layout.IArrangedElement.PerformLayout(IArrangedEle ment affectedElement, String affectedProperty) at System.Windows.Forms.Layout.LayoutTransaction.DoLa yout(IArrangedElement elementToLayout, IArrangedElement elementCausingLayout, String property) at System.Windows.Forms.Layout.LayoutTransaction.DoLa youtIf(Boolean condition, IArrangedElement elementToLayout, IArrangedElement elementCausingLayout, String property) at System.Windows.Forms.PictureBox.InstallNewImage(Im age value, ImageInstallationType installationType) at System.Windows.Forms.PictureBox.set_Image(Image value) at VisualisasiGitar.Form1.overlayjari(MidiEvent ev) in C:\Documents and Settings\***censored***\My Documents\Visual Studio 2008\Projects\TugasAkhir\Tugas Akhir\VisualisasiGitar\VisualisasiGitar\Form1.vb:l ine 1041 at VisualisasiGitar.Form1.PlayNote() in C:\Documents and Settings\***censored***\My Documents\Visual Studio 2008\Projects\TugasAkhir\Tugas Akhir\VisualisasiGitar\VisualisasiGitar\Form1.vb:l ine 1051 at VisualisasiGitar.Form1.Ticker_Tick(Object sender, EventArgs e) in C:\Documents and Settings\***censored***\My Documents\Visual Studio 2008\Projects\TugasAkhir\Tugas Akhir\VisualisasiGitar\VisualisasiGitar\Form1.vb:l ine 1059 at Multimedia.Timer.OnTick(EventArgs e) in C:\Documents and Settings\***censored***\My Documents\Visual Studio 2008\Projects\TugasAkhir\TgsAkhir\PrjTgsAkhir\Time r\Class1.cs:line 419 at Multimedia.Timer.TimerPeriodicEventCallback(Int32 id, Int32 msg, Int32 user, Int32 param1, Int32 param2) in C:\Documents and Settings\***censored***\My Documents\Visual Studio 2008\Projects\TugasAkhir\TgsAkhir\PrjTgsAkhir\Time r\Class1.cs:line 355
InnerException:




Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 11:51 AM.


no new posts