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

2021-01-27 Thread Victor “LOST” Milovanov
Can you try this from C# interactive (or plain C#)? #r "C:\Test_MW\Tools\GuiTest\ExamRecordHelper.dll"using ExamRecordHelper; var record = new ExamRecordLoader("C:\\Test_MW\\Tools\\ExamRecords\\Resp4DCT"); Without having ExamRecordHelper.dll, it is hard to guess otherwise, but I agree with Manu, th

[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