Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Wave instances created using the API share the same Log instance #80

Open
jamaa opened this issue Oct 8, 2022 · 0 comments
Open
Assignees
Labels
API bug Something isn't working

Comments

@jamaa
Copy link
Member

jamaa commented Oct 8, 2022

Multiple Wave instances created using the API share the same Log instance, which is no good. This also causes the below exception when trying to open the LogWindow in both instances.

System.InvalidOperationException
  HResult=0x80131509
  Message=Ungültiger threadübergreifender Vorgang: Der Zugriff auf das Steuerelement LogWindow erfolgte von einem anderen Thread als dem Thread, für den es erstellt wurde.
  Source=System.Windows.Forms
  StackTrace:
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Control.Show()
   at BlueM.Wave.Log.ShowLogWindow() in H:\DEV\BLUEM\CODE\BlueM.Opt\BlueM.Wave\Log.vb:line 120

  This exception was originally thrown at this call stack:
    [External Code]
    BlueM.Wave.Log.ShowLogWindow() in Log.vb

Individual instances each need to have their own Log instance.

@jamaa jamaa added the bug Something isn't working label Oct 8, 2022
@jamaa jamaa self-assigned this Oct 8, 2022
@jamaa jamaa added the API label Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant