View Issue Details

IDProjectCategoryView StatusLast Update
0006449FPCPackagespublic2008-12-28 13:42
ReporterFPC core teamAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status confirmedResolutionopen 
PlatformOSWin32OS Version
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0006449: OpenGL glutdemo hangs under win32
DescriptionTried using {$apptype GUI} with supplied opengl demo glutdemo.pp (commented out writeln stuff). Sure enough the unwanted DOS window did not appear. However every time glutdemo.exe is run and closed it leaves behind a running process (see Windows Task Manager - Processes), apparently leaking memory. Using XP Pro SP1a.

Also $unitpath appears not to work. Had to enter path in IDE directries dialog to compile successfully.
Additional InformationReporter: Ken Barry
EMail: kbar at celticedge dot com
TagsNo tags attached.
Fixed in Revision
FPCOldBugId4542
FPCTarget-
Attached Files
  • code.pp (116 bytes)
    {$apptype GUI}
    {$mode objfpc}
    {$smartlink ON}
    // {$unitpath d:\apps\fpc20\units\i386-win32\opengl}
    
    code.pp (116 bytes)

Activities

2005-11-24 12:00

 

code.pp (116 bytes)
{$apptype GUI}
{$mode objfpc}
{$smartlink ON}
// {$unitpath d:\apps\fpc20\units\i386-win32\opengl}
code.pp (116 bytes)

Marco van de Voort

2008-12-28 13:42

manager   ~0024023

Last edited: 2010-02-28 15:23

The problem is that GLUT doesn't properly integrate with windows. There seem to be several extensions to do this, but none seem to be standarised (and are often hacks that assume (g)libc "atexit" symbols).

IOW it depends on the runtime system the glut dll was built with.

Issue History

Date Modified Username Field Change
2007-05-21 08:57 Peter Vreman FPCTarget => -
2007-05-21 08:57 Peter Vreman Status new => confirmed
2007-05-21 08:57 Peter Vreman Category Compiler => Packages
2007-05-21 08:57 Peter Vreman Summary unreclaimed memory using $apptype GUI => OpenGL glutdemo hangs under win32
2007-05-21 08:57 Peter Vreman Additional Information Updated
2008-12-28 13:42 Marco van de Voort Note Added: 0024023
2010-02-28 15:23 Marco van de Voort Note Edited: 0024023