Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 09-11-2003, 07:45 AM   #1
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default WM_PHANDLE bug?

I tried compiling your own sitewho.cpp.
Results:
hTarget = (HANDLE)SendMessage(Target, WM_PHANDLE, NULL, NULL);
Reply hTarget=-1
And yes Target is an existing number and yes io is running.
Seemingly I gotta use my own old way to get the handle for io untill this one is fixed.
No wonder your sitewho crashes graciously in 0x41DDF5 on 5.0.0.4
Also thus the code
if (Allocate && Free && Lock && Unlock && hTarget)

should probable read check for hTarget=-1 instead of 0
FTPServerTools is offline  
Old 09-11-2003, 07:47 AM   #2
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

You better use the datacopy.cpp example for how to init all that stuff... Works here.
sitewho.cpp probably is a mix of the b4 way and the b5 way...
Mouton is offline  
Old 09-11-2003, 08:08 AM   #3
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

Thanks. That stuff seems indeed quite reliable.
With it I can do what I want.
FTPServerTools is offline  
Old 09-11-2003, 12:18 PM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Yep, resource managment (handle duplication) is now done be io.. (I made it that way, just to make your job easier)
darkone is offline  
Closed Thread

Tags
0x41ddf5, fixed, htarget, htarget=-1, wm_phandle

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare Folder Content -- SUBDIRS too? dgrrr General Discussion 1 04-04-2005 08:28 PM


All times are GMT -5. The time now is 04:30 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)