[Python.NET] Re: Binary file passed to .Net object
Emmanuel Rutovic <[email protected]> Wed, 27 Jan 2021 15:07:44 -0500
| Newsgroups | gmane.comp.python.dotnet |
|---|---|
| Message-ID | <CAJE6Wx2CRH_2uv1ZAwLECjdXZLELy_hOM0pa=wpvH8CKyu9F-w@mail.gmail.com> |
--===============8539094039729949379==
Content-Type: multipart/alternative; boundary="000000000000afe5cb05b9e753c3"
--000000000000afe5cb05b9e753c3
Content-Type: text/plain; charset="UTF-8"
Hi Alex,
It seems that the exception is thrown inside your method "ExamRecordLoader"
so it is hard to debug.
Is it possible that the error is thrown because of different working
directories? Can you try to use the full path to 'MyBinaryFile.bin' ?
Also, I always use the file name including the extension (
clr.AddReference("C:\ExamRecordHelper*.dll*") ) but I doubt it will change
anything
I hope it helps,
Manu.
On Wed, Jan 27, 2021 at 2:47 PM Alexander Masis <[email protected]> wrote:
> The code in the original post works in IronPython ( i.e. loaderObj =
> ExamRecordLoader( 'MyBinaryFile.bin') this line has no exceptions in
> IronPython )
> _______________________________________________
> PythonNet mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/pythonnet.python.org/
> Member address: [email protected]
>
--000000000000afe5cb05b9e753c3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div di=
r=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">Hi Alex,</div><div dir=3D"ltr">=
<br></div><div dir=3D"ltr">It seems that the=C2=A0exception is thrown insid=
e your method "ExamRecordLoader" so it is hard to debug.=C2=A0</d=
iv><div dir=3D"ltr">Is it possible that the error is thrown because of diff=
erent working directories? Can you try to use the full path to 'MyBinar=
yFile.bin' ?</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">Also, I a=
lways use the file name including the extension ( clr.AddReference("C:=
\ExamRecordHelper<b>.dll</b>") ) but I doubt it will change anything<b=
r></div><div dir=3D"ltr"><br></div><div dir=3D"ltr">I hope it helps,<br></d=
iv><div>Manu.=C2=A0</div><div dir=3D"ltr"><br></div><div dir=3D"ltr"><br></=
div></div></div></div></div></div></div><br><div class=3D"gmail_quote"><div=
dir=3D"ltr" class=3D"gmail_attr">On Wed, Jan 27, 2021 at 2:47 PM Alexander=
Masis <<a href=3D"mailto:[email protected]">[email protected]</a>&g=
t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color=
:rgb(204,204,204);padding-left:1ex">The code in the original post works in =
IronPython ( i.e. loaderObj =3D ExamRecordLoader( 'MyBinaryFile.bin'=
;) this line has no exceptions in IronPython )<br>
_______________________________________________<br>
PythonNet mailing list -- <a href=3D"mailto:[email protected]" target=3D=
"_blank">[email protected]</a><br>
To unsubscribe send an email to <a href=3D"mailto:[email protected]=
g" target=3D"_blank">[email protected]</a><br>
<a href=3D"https://mail.python.org/mailman3/lists/pythonnet.python.org/" re=
l=3D"noreferrer" target=3D"_blank">https://mail.python.org/mailman3/lists/p=
ythonnet.python.org/</a><br>
Member address: [email protected]<br>
</blockquote></div>
--000000000000afe5cb05b9e753c3--
--===============8539094039729949379==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
PythonNet mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/pythonnet.python.org/
Member address: [email protected]
--===============8539094039729949379==--