Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Visual Basic Programming

Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-2007, 08:33 AM
Ronin Ronin is offline
Programming Professional
 
Join Date: Apr 2006
Posts: 299
Rep Power: 10
Ronin is on a distinguished road
Default DLL Problems

Receiving this error:

Managed Debugging Assistant 'PInvokeStackImbalance' has detected a problem
in 'C:\Documents and Settings\My Documents\Visual Studio 2005\Projects\DW
Solution\DW Project\bin\Debug\DW Project.vshost.exe'.
Additional Information: A call to PInvoke function 'DW Project!
DW_Project.mainForm::LoadLibraryEx' has unbalanced the stack. This is likely
because the managed PInvoke signature does not match the unmanaged target
signature. Check that the calling convention and parameters of the PInvoke signature
match the target unmanaged signature.


Any idea what this means?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 12-20-2007, 08:29 AM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,135
Rep Power: 16
Lop is on a distinguished road
Default

You are probably declaring the names of the DLL functions wrong. I've seen them display as "dothis()" but inside the DLL using pinvoke they are actually "dwlk_dothis()". Use dumpbin to find the correct names:

How to use dumpbin.exe
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF download problems ikke ionFiles 5 10-09-2007 10:31 AM
Problems in GETMEM.INC with newer WinXP security updates. dima_q Pascal/Delphi 0 06-04-2007 09:17 AM
Problems in compiling D-ITG MietitoreDAnime C and C++ 2 02-15-2007 11:18 AM
Problems with Google? Void Marketing 4 07-23-2006 07:12 PM


All times are GMT -5. The time now is 12:53 AM.

Contest Stats

John ........ 223.00000
dargueta ........ 168.00000
Xav ........ 164.00000
LogicKills ........ 20.00000
gaylo565 ........ 18.00000
WingedPanther ........ 15.00000
|pH| ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 67%

Ads