[Python.NET] Re: Binary file passed to .Net object

2021-01-28 Thread AlexM
ee with Manu, this looks like a mistake in the code (different files > and/or different versions of the DLL being loaded). > > > > Regards, > > Victor > > > > *From: *AlexM > *Sent: *Wednesday, January 27, 2021 5:16 PM > *To: *A list for users and developers of Py

[Python.NET] Re: Binary file passed to .Net object

2021-01-28 Thread AlexM
: *Wednesday, January 27, 2021 5:16 PM > *To: *A list for users and developers of Python.NET > *Subject: *[Python.NET] Re: Binary file passed to .Net object > > > > Manu, thank you very much for your suggestions... > > So, far I have .dll and these are not the solutions. &

[Python.NET] Re: Binary file passed to .Net object

2021-01-27 Thread Victor “LOST” Milovanov
ut I agree with Manu, this looks like a mistake in the code (different files and/or different versions of the DLL being loaded). Regards,Victor From: AlexMSent: Wednesday, January 27, 2021 5:16 PMTo: A list for users and developers of Python.NETSubject: [Python.NET] Re: Binary file passed to .Net ob

[Python.NET] Re: Binary file passed to .Net object

2021-01-27 Thread AlexM
Manu, thank you very much for your suggestions... So, far I have .dll and these are not the solutions. Also, the exact same code works in IronPython, b.t.w. Well, the error does come from the "ExamRecordLoader", here is the output: c:\Test_MW\Tools\GuiTest>python getExamRecord.py Load Exam Re

[Python.NET] Re: Binary file passed to .Net object

2021-01-27 Thread Emmanuel Rutovic
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 ex

[Python.NET] Re: Binary file passed to .Net object

2021-01-27 Thread Alexander Masis
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 -- pythonnet@python.org To unsubscribe send an email to pythonnet-le...@pyt