Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird Exception Unknow Software error
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01571899
Message ID:
01572037
Views:
34
Looks like the problem is the WssPost.exe program..... it seems that the creators of this program (our esteemed colleagues in another state) set a limit on how long the string in lcFile is. Too long and BOOM!!!

We will get in touch with them and get this corrected pronto!

Thanks for helping!

>Last time I had this problem I removed the /N and it's worked fine since. That was when customers started moving from Win XP to Win 7.
>
>
>>Hi Gang!
>>
>>I ran into a problem while rewritting some code in a program here.
>>
>>After creating the EXE and running it, it throws up this error...
>>
>>"The exception unknown software exception(oxc0000417) occurred in the application at location 0x0050d34a."
>>
>>Yet, the older version of the code runs fine on my colleagues PC.
>>
>>Here is the code (I have not changed THIS code.... but this is where the error occurs..."
>>
>>
>>IF !DIRECTORY(gcPath + "\Surescripts")
>>	MKDIR gcPath + "\Surescripts"
>>ENDIF
>>lcPath = gcPath + "\Surescripts\"
>>lcFile = lcPath + PADL(ALLTRIM(ss_io.message_ref),7,"0") + PADL(ALLTRIM(ss_io.refill_no),2,"0") + ".REQ"
>>lnHandle = FCREATE(lcFile)
>>IF lnHandle > 0
>>	*TMN 03/16/09
>>	*TMT 04/19/13 Modified for v10.6
>>	FWRITE(lnHandle,lcText,5979)	&& Uses FWRITE instead of FPUTS cuz no LF CR are needed
>>	*FWRITE(lnHandle,lcText,5416)	&& Uses FWRITE instead of FPUTS cuz no LF CR are needed
>>	*FWRITE(lnHandle,lcText,5259)	&& Uses FWRITE instead of FPUTS cuz no LF CR are needed
>>	*TMN 03/16/09
>>	FCLOSE(lnHandle)
>>	lcEXE = gcPath + "\WssPost.exe" + " " + ALLTRIM(interface.ss_ip) + ":" + ALLTRIM(STR(interface.ss_port)) + " " + ALLTRIM(pharmacy_config.nabp) + " " + lcFile
>>	RUN /N2 &lcEXE
>>ELSE
>>	MESSAGEBOX(translatewrd("Cannot create EZ e-Script text file"),16,translatewrd("EZ e-Script Create File"))
>>ENDIF
>>
>>
>>The error occurs in the RUN /N2 &lcEXE command.
>>
>>I checked online, and what was suggested was to run sfc /scannow which I did, but to no avail.
>>
>>
>>Thanks for your help !!
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform