From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DirSelectPopup causing GPF

I have installed CVI6.0 and CVI7.0 on same PC (using windows XP). Now my
CVI6.0 programs give general protection fault on DirSelectPopup
function. Please help. I need to support both versions.


vishi
0 Kudos
Message 1 of 3
(2,732 Views)
Vishi,

I have not been able to find any reports on this function generating a GPF. I have CVI 7 and 6 in my computed and I can use the function with no problem.

Make sure that the string where you store the path hase at least MAX_PATHNAME_LEN elements; since this is a very strait forward call to the Windows SDK not passing enough memory would cause a GPF in release mode.

Please give me more details to replicate this problem here and work on it.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 3
(2,732 Views)
I will post the code tomorrow, it is on my laptop. The same EXE works
fine on a machine which has the 6.0 RTE installed, but causes GPF on my
development machine.

JuanCarlos wrote:
> Vishi,
>
> I have not been able to find any reports on this function generating a
> GPF. I have CVI 7 and 6 in my computed and I can use the function with
> no problem.
>
> Make sure that the string where you store the path hase at least
> MAX_PATHNAME_LEN elements; since this is a very strait forward call to
> the Windows SDK not passing enough memory would cause a GPF in release
> mode.
>
> Please give me more details to replicate this problem here and work on
> it.
>
> Regards,
>
> Juan Carlos
> N.I.
0 Kudos
Message 3 of 3
(2,732 Views)