LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2016, New Zip file.vi

Solved!
Go to solution
Labview 2016, New Zip file.vi

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

0 Kudos
Message 1 of 6
(1,209 Views)

Are you sure the path without the filename actually exists on your new system when trying to run that function?

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 6
(1,183 Views)

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.

0 Kudos
Message 3 of 6
(1,163 Views)

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?

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 6
(1,135 Views)
Solution
Accepted by topic author venkatesh@je-depa.com

it was file creation error, due to admin privilege for the .exe,

Thank you

0 Kudos
Message 5 of 6
(1,104 Views)

it was file creation error,  with admin privilege for the .exe, it is working ok.

Thank you

0 Kudos
Message 6 of 6
(1,101 Views)