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

Error: VMR failure in VBVMR.Login() #27

Closed
hsayed21 opened this issue Jan 25, 2025 · 1 comment
Closed

Error: VMR failure in VBVMR.Login() #27

hsayed21 opened this issue Jan 25, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@hsayed21
Copy link

Image

When you run t1.ahk or t2.ahk individually, there should be no errors because only one instance of the VMR object is created.
When you run t3.ahk, the error VMR instance already exists! will occur because both t1.ahk and t2.ahk attempt to create separate instances of VMR.

t1.ahk

#Include "..\..\Libs\v2\VMR.ahk"

_vmr := VMR().Login()
MsgBox(_vmr.Strip[1].gain)

t2.ahk

#Include "..\..\Libs\v2\VMR.ahk"

_vmr2 := VMR().Login()
MsgBox(_vmr2.Strip[2].gain

t3.ahk

#Include t1.ahk
#Include t2.ahk

How to Fix:
you need to allow only one VMR instance to share the same instance instead of creating separate ones:

@SaifAqqad SaifAqqad added the bug Something isn't working label Jan 26, 2025
@SaifAqqad
Copy link
Owner

This should be fixed now :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants