Reporting error 4381 as requested
When opening a .pkg file from an email to which it was attached to I got the following error:
Illegal Datatype ConversionError: 4381
Please report this error to Data Access Corporation
C:\Program Files\DataFlex 20.0\Bin64\Studio.exe
Illegal Datatype ConversionError: 4381
Please report this error to Data Access CorporationMSG_ONCREATE (1397) - oApplication (596) - at address 151612
MSG_END_CONSTRUCT_OBJECT (459) - oApplication (596) - at address 27433
[start] - at address 151738
Regards,
Oscar
Re: Reporting error 4381 as requested
Oscar,
Did you save the .pkg file first, drag and drop into the Studio or just depend on the file association? Also, was it a 20 .pkg (UTF-8 with BOM) or prior version?
Re: Reporting error 4381 as requested
Hi Stephen,
No, I didn't save the file first. I just tried now and got the same error when I double-clicked on the saved file.
I am not the originator of the file, but it seems not to have a bom. It should be a 19.1 file.
Regards,
Oscar
Re: Reporting error 4381 as requested
Oscar,
Can you zip up the file and e-mail it to me?
Re: Reporting error 4381 as requested
Re: Reporting error 4381 as requested
I could open up the file without error. I'm using a newer build, but not sure if that has anything to do with it. It's an old format file (not UTF-8 with BOM). I tried opening it with both modes of the editor (save as UTF-8 or keep as OEM) and it worked fine either way.
Re: Reporting error 4381 as requested
Oscar,
Looking at the callstack I would think it is the handling of the commandline parameter and to find out what goes wrong we would need to know the exact commandline passed. The commandline is used as you open the PKG from the e-mail.
PS: I always used Notepad++ to open any (text) file with the exception of the SWS file as it loads the workspace.
Re: Reporting error 4381 as requested
Stephen,
I was trying to get the command line and didnt get the error, then I noticed that it could be because the studio was not running... so when I tried the second time the error showed up.
The command line is exactly the same both times
"c:\program files\dataflex 20.0\bin64\studio.exe" "full_path_of_file"
I hope this helps.
Regards,
Oscar