I'm hoping someone can give me some insight on this.
I have an existing application that I am migrating from single-user to multi-user and am using buffering for the first time.
One of my forms uses a shellexecute() command to allow the user to open an existing .pdf file that is saved as a field in a table
It works fine with the single-user version, but the mulit-user version causes the most bizarre computer hang I have ever seen...it may, or may not, throw an error that says "the application was unable to start correctly" with a variety of 0xc0000nnn errors, then proceeds to turn the screen black, moves the start line from the bottom to the top (and sometimes back to the bottom), intermittently shows part of my VFP screen, and eventually hangs so my only option is a hard re-boot. I've tried it with Nitro pdf and Adobe Reader so far with slightly different timing and flickering before it locks up the computer.
It is VFP 9 in Windows 7 pro any my code is identical between the single-user and multi-user versions....The single-user version works flawlessly with the exact same code and file.
Really confused...Help???
Here's the code I'm using:
--------
declare INTEGER ShellExecute in shell32 INTEGER handle,STRING @ oper,STRING @ ifile,STRING @ iparam,STRING @ ipath,INTEGER showcmd
lcFileName=this.Parent.sp_cfieldsource
lcFile=&lcFileName
=shellexecute(0,"open",lcFile,"","c:\",1)
--------
I have confirmed that the lcFile does contain the correct full path to the pdf to be opened
So far I have tried the following changes with no success:
=shellexecute(0,"open",lcFile,"","",1)
=shellexecute(0,"open",lcFile,"","",0)
Thanks...
I have an existing application that I am migrating from single-user to multi-user and am using buffering for the first time.
One of my forms uses a shellexecute() command to allow the user to open an existing .pdf file that is saved as a field in a table
It works fine with the single-user version, but the mulit-user version causes the most bizarre computer hang I have ever seen...it may, or may not, throw an error that says "the application was unable to start correctly" with a variety of 0xc0000nnn errors, then proceeds to turn the screen black, moves the start line from the bottom to the top (and sometimes back to the bottom), intermittently shows part of my VFP screen, and eventually hangs so my only option is a hard re-boot. I've tried it with Nitro pdf and Adobe Reader so far with slightly different timing and flickering before it locks up the computer.
It is VFP 9 in Windows 7 pro any my code is identical between the single-user and multi-user versions....The single-user version works flawlessly with the exact same code and file.
Really confused...Help???
Here's the code I'm using:
--------
declare INTEGER ShellExecute in shell32 INTEGER handle,STRING @ oper,STRING @ ifile,STRING @ iparam,STRING @ ipath,INTEGER showcmd
lcFileName=this.Parent.sp_cfieldsource
lcFile=&lcFileName
=shellexecute(0,"open",lcFile,"","c:\",1)
--------
I have confirmed that the lcFile does contain the correct full path to the pdf to be opened
So far I have tried the following changes with no success:
=shellexecute(0,"open",lcFile,"","",1)
=shellexecute(0,"open",lcFile,"","",0)
Thanks...