05-24-2022 03:36 PM
I have an application that uses the INI file functions to save some values to be remembered the next time the EXE runs. The application runs fine on normal desktop PCs and laptops, but I tried installing it on a tablet PC that is also running Windows 10 Pro and the INI file write throws an Error 1 when it tries to dequeue inside the write key subvi.
Any ideas how to fix this?
Solved! Go to Solution.
05-24-2022 03:43 PM
05-24-2022 04:17 PM
The Open INI File function doesn't throw any kind of access errors. I tried running as Admin just in case, but the error on Dequeue Element persists.
Thanks!
05-24-2022 04:23 PM - edited 05-24-2022 04:25 PM
What is meant by "dequeue inside the write key subvi"?
Edit: nvm, I see what you mean in your second post. We crossed.
05-24-2022 04:27 PM
What is it dequeuing?
05-24-2022 04:35 PM
Apparently it dequeues this cluster of path, boolean, and 1D array of clusters of strings and a 2D array of strings.
05-24-2022 04:40 PM
If the queue is invalid when it tries to dequeue, you'll get an error 1. Since you are CLA, I am going to say you don't have a race condition where you are using the queue before it is created, but maybe some kind of unexpected error prevents the queue from being created in the first place?
05-24-2022 04:56 PM
I figure it has to be either something about it being a tablet PC or that I am missing some kind of driver or something, because the exact same executable works fine on a couple other computers that I ran it on.
05-24-2022 05:08 PM - edited 05-24-2022 05:09 PM
@David_R._Asher wrote:
I figure it has to be either something about it being a tablet PC or that I am missing some kind of driver or something, because the exact same executable works fine on a couple other computers that I ran it on.
Well if the error is indeed showing up at "Dequeue Element" you can go back through the source to see where the queue ref might become invalid or isn't created, that could point you in the right direction. Once you see why the ref is invalid, you're a short step away from figuring out what caused it. That would be my approach.
05-24-2022 05:12 PM
Unfortunately I only had access to the tablet where the error shows up for a short time. I was kind of hoping someone else had seen similar behavior with INI files or queues not working in executables on some devices. If I can get the tablet back I'll give that a try.
Thanks!