function call of getTickCount64() | Debugging in Visual Studio | Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
function call of getTickCount64()
January 7, 2018 - 3:48 pm
Member Since: September 7, 2015
Forum Posts: 45
sp_UserOfflineSmall Offline

Hi, I have a user who is on WinXP and getting an error message about the function getTickCount64(). From Microsofts site I can see that this function is only included for Win Vista and higher.

I searched through my project and certainly didn't call the function myself. So my guess is, that either the VST library or some other 3rd party tools I've included are calling it. 

- Does anyone know of this function?

- Is there a way I can find out where this function is called? (compiler flags maybe?)


Thanks in advance, Frederik

January 12, 2018 - 10:43 am
Member Since: January 29, 2017
Forum Posts: 693
sp_UserOfflineSmall Offline

Hi Frederik

This function is not called directly from RackAFX, but it is likely coming from the timer.cpp file in VSTGUI4. And it should only get called when the user opens a custom GUI window. The GUI and VST2/VST3 capabilities are all coded inside of a static library Sock2VST3 that your plugin links with. In RackAFX v6.9 (the just-released version), you can enable/disable this easily from newly created projects in v6.9. When you create the project, check the box marked "Lean Plugin (for Game Developers)" and it will build a new project that does not link to the external library. For existing v6.9 projects, you can also turn this on/off as you wish. 

v6.8.x also included this option but there was a bug which did not fully un-link the code. If you want to use it on an older project, check the same box when you edit the project. Then, open the plugin.cpp file and make sure that this line of code is NOT commented out:


This #define is what disables the GUI code below it. 

When you create a lean plugin, you can only use the RackAFX main GUI for your controls - the custom GUI code does not exist. 

- Will

January 12, 2018 - 3:43 pm
Member Since: September 7, 2015
Forum Posts: 45
sp_UserOfflineSmall Offline

Hi Will,

The plugin in question has left RackAFX via MakeVST button and continued its existence as a pure VST project.
Unfortunately, it has custom GUI windows all over the place... I think I'll need to declare the plugin "WinVista and higher" on
Good to hear there's an option to untangle the project from this function though.

Thanks for your answer!

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 56

Skyler: 48

StevieD: 46

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

Nickolai: 43

clau_ste: 39

jeanlecode: 37

Member Stats:

Guest Posters: 2

Members: 784

Moderators: 1

Admins: 6

Forum Stats:

Groups: 13

Forums: 42

Topics: 850

Posts: 3372

Moderators: W Pirkle: 693