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.
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.
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.
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.