Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
ho_mph Absent Member.
Absent Member.
1657 views

Calling property of .Net created object

Hi all


I am trying to access a .NET class / Struct.

What I allready have verified is that the dotNET object is created successfully, but when I try to access a property or function wrun32 throws an memory access violation exception.

The object is created for testing purpose as filled struct. Any access causes a memory violation...


The code we are using is in pastebin:

COBOL DEFs

http://pastebin.com/aP7zifvV

http://pastebin.com/M5ys6e54

COBOL Test

http://pastebin.com/hZyt1qG4

C#

http://pastebin.com/W1BBpiKY

http://pastebin.com/55TEkWWG

Any hint what is wrong here would be appreciated...

Best Regards

Martin

Tags (2)
0 Likes
3 Replies
Micro Focus Expert
Micro Focus Expert

RE: Calling property of .Net created object

I got a mav when using 9.2.1, however I was able to run your program successfully when using 9.0.1. I'll report this bug to development.

0 Likes
ho_mph Absent Member.
Absent Member.

RE: Calling property of .Net created object

Thanks alot for your effort!

Do you have any experience how long it will take until your Dev team can supply a patch?

Or do we have to downgrade to 9.0.x ? This might cause some trouble in our project...

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Calling property of .Net created object

I do not know what timeframes this issue will take. It would be best for you to submit the issue through Customer Care as well. I also tested your dll with 9.1.1 and that version worked as well. Seems like something changed in version 9.2

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.