Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

What means 'Access violation'?

pinje
Beginner
276 Views
Hi all,

I am getting an error "0xC0000005: Access violation" when calling a function from a VB.net COM DLL...

But what does it mean?

Thanks for your help.
0 Kudos
2 Replies
Steven_L_Intel1
Employee
276 Views
Here is a general explanation of Access Violation.
0 Kudos
pinje
Beginner
276 Views
Hi Steve,



Many thanks for your help. It is a bit more clear for me and it looks like i have something wrong with my pointer to my VB.NET DLL.





What i don't understand, is that i am using these 3 functions, but the value returned by 'app' is not 0 but 15925296, should i assume that it points correctly to the sub in my DLL?:





CALL COMINITIALIZE(hRes)





CALL COMCREATEOBJECT ("VB_COM_DLL.ComClsInterface2d", app, hRes)





CALL $ComClsInterface2d_MsgBoxShow(app)





Also, i had a look on the V9Samples.zip especially on MixedLanguage, but all examples described NET exe calling Fortran DLL.





Unfortunately, i am trying to do the other way arround, that is to call a DLL made in .net from an exe made with fortran... Do you know where to find such an example?
0 Kudos
Reply