NO

Author Topic: Exception in pocc.exe  (Read 5646 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2215
Re: Exception in pocc.exe
« Reply #30 on: January 20, 2025, 03:33:08 PM »
test.obj was compiled to x64 even commandline was for x86 ?
Perhaps a leftover from x64 project.

Time to give up?
« Last Edit: January 20, 2025, 05:20:28 PM by TimoVJL »
May the source be with you

Offline HellOfMice

  • Member
  • *
  • Posts: 360
  • Never be pleased, always improve
Re: Exception in pocc.exe
« Reply #31 on: January 20, 2025, 05:56:15 PM »
Hi Timo & Vortex


I don't understand, for x86 or x64 the command lines are the same. :-\


Philippe
--------------------------------
Kenavo

Offline Vortex

  • Member
  • *
  • Posts: 975
    • http://www.vortex.masmcode.com
Re: Exception in pocc.exe
« Reply #32 on: January 20, 2025, 08:37:46 PM »
Hi Timo and Philippe,

The project was created starting from a newly created empty folder, so no any remnants from an old project. My result is strange, any other one who experienced the same issue?
Code it... That's all...

Offline Vortex

  • Member
  • *
  • Posts: 975
    • http://www.vortex.masmcode.com
Re: Exception in pocc.exe
« Reply #33 on: January 21, 2025, 12:02:52 PM »
Hello,

I recompiled Timo's code to produce a 32-bit executable. I received the same error messages, unresolved externals and invalid machine types. Strangely, the compiler emits 64-bit code while the project is set to 32-bit.
Code it... That's all...

Offline HellOfMice

  • Member
  • *
  • Posts: 360
  • Never be pleased, always improve
Re: Exception in pocc.exe
« Reply #34 on: January 21, 2025, 12:30:15 PM »
If rather exceuting a process yould simply execute with WinExec : cmd /C "C:\Program Files\PellesC\Bin\poasm.exe" -AAMD64 -Gr -Fl"Asm.lst" -Fo"Asm.obj" "Asm.asm"
I try to set my batch files in the tools menu but it is not possible
--------------------------------
Kenavo

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2215
Re: Exception in pocc.exe
« Reply #35 on: January 21, 2025, 12:57:42 PM »
Hello,

I recompiled Timo's code to produce a 32-bit executable. I received the same error messages, unresolved externals and invalid machine types. Strangely, the compiler emits 64-bit code while the project is set to 32-bit.
confirm, same effect in Window 10 with ANSI or UNICODE versions.
poide Verbose build show right command line

EDIT: an error found and fixed.

Minimal test environment without headers and libs for testing before making changes to original.
Run it with RunPellesC.cmd
Test code not using includes nor libs
Code: [Select]
// test.c
//int __cdecl main(void)
void __cdecl mainCRTStartup(void)
{
//int
return;
}
Code: [Select]
; ml.exe -coff hello.asm -link -subsystem:console
.386
.model flat
option casemap:none
exit PROTO C :DWORD
printf PROTO C :PTR,:VARARG
;INCLUDELIB msvcrt
.data
msg db "Hello ASM",10,0
.code
mainCRTStartup PROC C
;invoke printf, ADDR msg
;invoke exit,0
xor eax, eax
ret
mainCRTStartup ENDP
END mainCRTStartup
« Last Edit: January 23, 2025, 08:56:21 AM by TimoVJL »
May the source be with you

Offline Vortex

  • Member
  • *
  • Posts: 975
    • http://www.vortex.masmcode.com
Re: Exception in pocc.exe
« Reply #36 on: January 21, 2025, 02:16:01 PM »
Congratulations Timo, great job. I managed to build 32-bit and 64-bit console applications with the new version of your tool. Many thanks.
Code it... That's all...

Offline John Z

  • Member
  • *
  • Posts: 973
Re: Exception in pocc.exe
« Reply #37 on: January 22, 2025, 12:37:52 AM »
Thanks TimoVJL,

Can you post an example PellesC.xml file for those of us that have never used the xml feature?

John Z
« Last Edit: January 22, 2025, 10:09:39 AM by John Z »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2215
Re: Exception in pocc.exe
« Reply #38 on: January 22, 2025, 06:03:11 AM »
Quote
/x Turns off the 'single instance' check. [4.00]
/xml Stores all personal settings in the specified XML-file. [5.00]
with -x -xml let running poide same time to another session and store it settings to xml-file, not in register.
This way it might be possible to run test version from USB-stick, not touching other drives nor register.
May the source be with you

Offline John Z

  • Member
  • *
  • Posts: 973
Re: Exception in pocc.exe
« Reply #39 on: January 22, 2025, 10:11:09 AM »
Ah, ok I got it - Thanks !

Thought it was part of the poccx fix.

John Z

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2215
Re: Exception in pocc.exe
« Reply #40 on: January 22, 2025, 10:33:20 AM »
Ah, ok I got it - Thanks !

Thought it was part of the poccx fix.

John Z
it is a testbed for it!
May the source be with you

Offline Vortex

  • Member
  • *
  • Posts: 975
    • http://www.vortex.masmcode.com
Re: Exception in pocc.exe
« Reply #41 on: January 22, 2025, 01:13:11 PM »
If I am correct, Timo's pocc is acting like a proxy, a very good idea.
Code it... That's all...

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2215
Re: Exception in pocc.exe
« Reply #42 on: January 22, 2025, 01:29:41 PM »
Yes, only filters exception error 0xC0000005 off from return value from pocc.exe or poasm.exe

May the source be with you