PDA

View Full Version : مشکل در استفاده از DLL در .net



OlympicTelecom
دوشنبه 07 اسفند 1385, 12:33 عصر
سلام
من وقتی یک dll رو توی پروژه با add refrence اضافه می کنم موقع اجرا از اون خطی که یکی از متدهای dll رو فراخوانی کردم خطا می گیره و این خطا رو میده:


Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


ظاهرا به Dll هم ربطی نداره و یک مشکل عمومی هست چون search که کردم دیدم زیاد از این مشکلات هست

ضمنا برای import یک dll به برنامه آیا راهی دیگه غیر از add refrence هست ؟

ممنون

mehdi_prog
چهارشنبه 09 اسفند 1385, 07:52 صبح
سلام دوستان عزیز
من می خواستم به دونم یک DLL چطور ساخته میشه وDLL های دیگران رو چگونه استفاده کرد؟:متفکر:
hani_program@yahoo.com