DLL calling crashed when from a subroutine

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tony_usa.

Hi folks,

I have made a DLL by compiling a C source with lcc. Then I call it from PB it works as long as the call is not made from a procedure. I have dumbed down the C code to nothing and it still does the same.

Any idea?

Thanks everyone
===
Latest version of PB
Windows XP Home
lccwin32
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

try downloading the updated PB library lib from: http://www.purebasic.com/update/
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tony_usa.

Thanks for the tip.

Better, but not yet. This time it opens the library, but it still crashes. I'll try to find something and post if I have any results. Otherwise any other idea appreciated.

Thanks again pupil!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

Make a search with these two keywords below and see if the result from that might help you:
"CDECL" "STDCALL"
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tony_usa.

Thanks,

It finally works. I still have to open the DLL from outside a procedure but that's no big deal!
Post Reply