The only reason I can think of is, if the path is not set correctly (by my application) to the dump folder where imgfs.bin was dumped.
The strange thing is that I tried today a few time on Windows 7 and XP and I didn't have a problem. I flashed to different roms on the phone modified latest from Secany and ported 6.5.5 and they both work. I will have to do more testing, but I am not sure how because it works for me.
Can you try attached file it should display some messages before it starts pkgTool.exe. You should see something like this "1. Path >>", "2. Par >>" and "3. Exe >> ". If you could write down what text was in those lines.
I found this is the main problem:
When the Dump ROM is progressing, there is an errer notify windows (pkgtool.exe meeting an error to exit. We are sorry to ...) .
I close the errer windows ,
After Dump ROM is finished,
I found there is a dump folder where a folder(name: .ROM) and a file(name:88f892ce-7f79-4718-bfc0-388c86c721a7.dsm) existed.
Only the .ROM folder and .DSM file not moved to the SYS folder.
After I moved the .ROM foler and the .DSM file to the SYS folder manually,Then run Build Rom again,everything is OK.
If I make imgfs dump to modules, then run pkgtool manually. There is the runing log: (PKGTool.exe doesn't work fine)
Windows Mobile-based Pocket PCs
0804 - Chinese (People's Republic of China)
CN=Microsoft Windows Mobile PCA, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
CN=Samsung Electronics Co. CA - Samsung Root