replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Debugging P/Invoke DLL
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Debugging P/Invoke DLL

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
DrTip



Joined: 01 Aug 2006
Posts: 74
Location: Manchester

PostPosted: Tue Jul 22, 2008 10:46 pm    Post subject: Debugging P/Invoke DLL Reply with quote

Learned Friends

I am currently working on breaking up a large executable into three smaller DLLs

The original program was written entirely in FTN77 to a Fortran IV standard.

We have made a nice GUI in C# which call the new DLL's using P/Invoke.

We are using C# to read any write a SQL Server database.

because the Fortran is comiled to Win32 not .NET. We do it this way because the change to compiling the code to be .NET is to big and or risky (in a Business Sense).

We have written a C++ DLL to raise event from the Fortran to be caught by C#.

All this has worked swimmingly.

however we are struggling to debug the Fortran code.

I have written a harness FTN95 EXE that calls a C++ DLL that calls the C# Code and this works and we get a sensible results in the Debug window visual studio 2005.

but I getting strange problem somewhere in the C# code a call to a microsoft function.

I get a message box

Assert
ish!=null


is this a message from FTN95 debugger ???? or something else

I also get a similar thing happening using SDBG


Carl
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8217
Location: Salford, UK

PostPosted: Wed Jul 23, 2008 8:27 am    Post subject: Reply with quote

"Asserts" are commonly used in Microsoft code and very rarely (if ever) used in Silverfrost code.

You would expect to get them in native Microsoft GUI code and in the relevant bindings from C#.
Back to top
View user's profile Send private message AIM Address
DrTip



Joined: 01 Aug 2006
Posts: 74
Location: Manchester

PostPosted: Wed Jul 23, 2008 9:28 am    Post subject: Reply with quote

thanks Paul

you have confirmed my suspicions.

however I only seem to get this assert occurring when using the silverfrost debugger, the C++ and C# debugger don't trips it. Is there any chance that there is some sort of clash going on.

I will keep digging

Carl
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group