Question about File::getSpecialLocation (File::currentExecutableFile)

Hi everybody,

When using File::getSpecialLocation (File::currentExecutableFile) inside a dll VST plugin I noticed it returns the .dll full Path & filename, but if you create a static member with its content, it returns the .exe host application executable name. Why is it happening?

Thanx,

 

Oscar

 

 

Static members get instantiated before the plugin has actually been loaded, so there's no way for it to know which process it's attached to at that stage.

It's probably best to avoid statics in general, particularly in plugins.

Thanks Jules,