02-07-2024 11:43 PM
i have used Create zip file example [which uses New Zip file.vi ] ; i tried running exe of this example, it is working ok in windows 10, the same exe when run in windows 11, is giving error 42 occurred at New Zip File.vi saying Error creating or opening the zip file.
can some one please help with this Error.
Thank you
Solved! Go to Solution.
02-08-2024 01:15 AM
Are you sure the path without the filename actually exists on your new system when trying to run that function?
02-08-2024 02:37 AM
yes, all the paths are existing, still i see Error 42 occurred at New Zip File.vi when
run in windows 11. in windows 10 it works without any Error.
thank you.
02-08-2024 11:12 AM
There seems very little that could go wrong. Basically the called function tries to create a file at the path you specify and then initializes a zip file structure (passed as pointer integer on the LabVIEW diagram). Unfortunately the only error indication that this function has is to return an invalid NULL pointer and the LabVIEW layer translates this into error 42.
There are not a lot of possible errors why zipOpen() would return a NULL handle. Out of my head I can only think of file errors when trying to create the zip file, or a memory allocation error but this last one sounds unlikely.
What happens if you pass this exact same path to a File Create node?
02-09-2024 03:24 AM
it was file creation error, due to admin privilege for the .exe,
Thank you
02-09-2024 03:29 AM
it was file creation error, with admin privilege for the .exe, it is working ok.
Thank you