News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#11
Bug reports / Re: Debugging code that calls ...
Last post by Vortex - August 21, 2025, 07:59:05 AM
Hi DMac,

On the command prompt, you can view the group policies with :

gpresult /z
This can give a clue about the security measures.
#12
Bug reports / Re: Debugging code that calls ...
Last post by DMac - August 21, 2025, 06:10:44 AM
I loaded v13 on my home laptop running Windows 10 pro x64 22H2, and launched the example project building both x86 and x64 and had no issues launching the open file dialog in debug mode.

I'm now inclined to think that the various security configurations the IT department employs must be interfering with the open file dialog call from debug mode.  Not only this but it caused the save file dialog to malfunction in another application on that machine after running the test project.  This necessitated a reboot to restore functionality.

Even though both my home and work machine share the same OS and build, the home machine seems to be more stable generally.

In light of this I guess it is safe to say this is not actually a Pelles C Bug.👍



#13
Bug reports / Re: Debugging code that calls ...
Last post by John Z - August 20, 2025, 12:07:57 AM
Timo's finding is confirmed in Win 23H2 .

Running without debug one can click the Open File Dialog button as many times as wanted.  Running under debug issues start to show up on the second click of the Open File Dialog button.  I needed to do a break on the debug menu then hit Go/Debug button again to get access to the dialog.

John Z
#14
Tips & tricks / Re: Useful website for WIndows...
Last post by Vortex - August 19, 2025, 08:58:02 PM
Ciprian Fusa's website :

https://ciprianf.hashnode.dev/
#15
Bug reports / Re: Debugging code that calls ...
Last post by TimoVJL - August 19, 2025, 05:21:22 AM
Example works normally in Window 10 x64 22H2
In same session, second time to open file dialog have to activate debug window and from Debug -> Break to get dialog visible.
#16
Bug reports / Re: Debugging code that calls ...
Last post by John Z - August 19, 2025, 02:32:08 AM
Hi DMac,

Yes very strange - same .exe run on different systems . . . . drastically different results.
Could it be an antivirus tool doing something, I wonder.  At a loss for now since I can't reproduce :( and
I only have one laptop with me - of course ....

Maybe Timo can try the .exe's I posted too.

John Z

#17
Bug reports / Re: Debugging code that calls ...
Last post by DMac - August 19, 2025, 01:27:26 AM
Hi John,

I tried the project you attached.

I get the same strange behavior.  I have screen captured an internal debugger error which might provide some clues.  I also provide a screenshot of the file browser dialog when it hangs.

When this happens I have to reboot the machine to get the dialog working again.

I think I'll forego trying to debug this on the work laptop going forward.
#18
Bug reports / Re: Debugging code that calls ...
Last post by John Z - August 18, 2025, 11:43:53 PM
Got a weird error when the prior message attachment uploaded, so attaching again as well as the error message.

Maybe filename too long shortened it and posted again, no error msg.

John Z
#19
Bug reports / Re: Debugging code that calls ...
Last post by John Z - August 18, 2025, 11:33:14 PM
Hi DMac,

I tried it using the workspace today, again no issue seen.  So I'm posting my compiled version of your program, no changes.  With this you might try to just run the .exe's within the IDE to see if everything run without errors, without a rebuild.  Might be enlightening, hopefully?

23H2 btw..

John Z

traveling in China right now so I don't have access to my windows 7 machine....to see Timo's findings

Get project zip from next post..
#20
Windows questions / Re: common define for testing ...
Last post by Vortex - August 18, 2025, 09:11:14 PM
Hi Timo,

Maybe, the import library msvcrt.lib should be a component of the Pelles C installation.