Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sith

Pages: [1]
1
Mega Tokyo SCI Archive / Re:SCI Studio bug report
« on: March 28, 2003, 07:02:51 AM »
Brian,

I found a Delphi help-file on the web and since Delphi also uses the VCL I think most of it is applicable to the C++ components too.

The TCanvas class has a method called TryLock()

form the helpfile :

Quote
Locks the canvas if it is currently unlocked.

function TryLock: Boolean;

Description

Call TryLock to prevent other threads from writing on the surface of the canvas until the Unlock method is called. Unlike calls to the Lock method, which nest so that every call to Lock must be matched with a subsequent call to Unlock, TryLock need only be matched by a call to Unlock if the canvas was not already locked.

If the canvas is unlocked, TryLock locks the canvas, sets the LockCount property to 1, and returns True. If the canvas is already locked, TryLock returns False without making any changes.

Use TryLock before attempting changes to the canvas that could interfere with other code that is protected by a Lock ... Unlock pair of method calls.

I hope this helps you a little bit...

One question : Do you use multi-threading in SCI Studio ? Because if you do, you must be very careful with locking and unlocking resources.

Jeroen

PS : here are some free memory- and resourceleak-checkers http://www.thefreecountry.com/sourcecode/debugging.shtml

2
Mega Tokyo SCI Archive / Re:VESA Drivers
« on: March 28, 2003, 05:08:25 AM »
Hi,

go to www.scitechsoft.com and download SciTech UniVBE (it's in the "Free & unsupported software" section).

If that doesn't work, try to download SciTech Display Doctor.

What kind of Graphics Card do you have ? Almost all recent cards are VESA 2.0 compliant...

3
Mega Tokyo SCI Archive / Re:SCI Studio bug report
« on: March 28, 2003, 05:01:59 AM »
I've been doing some research myself  and it seems that this bug is probably still a memory leak.

The "canvas does not allow drawing" could indicate that you're not cleaning up all the DC's you're allocating. (as a result, Windows cannot provide you with a valid DC anymore. I think there is a limit to the number of DC's a program can allocate, but I'm not sure.)

Brian, when you go to the next cell in a loop, do you create a new DC to draw the next view or do you use  one DC that's updated every time ? In the first case, are you sure you free() the DC that's not in use anymore ?


4
Mega Tokyo SCI Archive / Re:SCI Studio bug report
« on: March 27, 2003, 06:00:12 AM »
Brian,

Make sure you test long enough. The bug I mentioned appeared after working more than an hour in the view-editor.

5
Mega Tokyo SCI Archive / SCI Studio bug report
« on: March 27, 2003, 05:22:20 AM »
Hi,

I discovered a bug in SCI Studio 3.01

In the View editor I get the error "Canvas does not allow drawing", sometimes followed by the famous "Incorrect parameter" error.

This error occurs at random, so it's not easy to replicate. I'm running Win98SE.

Brian : Sorry to put this in the forum instead of e-mailing this, but I'm having email-troubles with my provider.

Greetz,

Jeroen

6
Mega Tokyo SCI Archive / Re:Rare SCI games
« on: October 08, 2002, 02:24:20 AM »
Hi,

I own the EGA version of Space Quest 4.
I will post some screenshots within a few days (if you guys are interested of course)

Sith

7
Mega Tokyo SCI Archive / Re:Need jokes
« on: October 06, 2002, 08:20:40 AM »
Hehe... thanks  :D

8
Mega Tokyo SCI Archive / Re:Need jokes
« on: October 06, 2002, 08:08:33 AM »
Let's see:

Holland
Captain@merika
HWM
Pika wa Baka

Belgium
Jelle
CESS.tk
Kon-Tiki

There's a total of 6 of the Lowlands here. That's not so much.

-Kon-OFF-TOPIC-Tiki-

Hey I'm from Belgium too !


9
Mega Tokyo SCI Archive / Re:SCI Studio bug-report
« on: September 30, 2002, 04:16:32 PM »
Brian,

I just made a donation, so you better fix those bugs fast  ;D

Greetzzz,

Jeroen

10
Mega Tokyo SCI Archive / SCI Studio bug-report
« on: September 24, 2002, 02:36:01 AM »
Hi,

Some bugs I encountered in SCI studio :

- Views get corrupt or completely turn to black
- Mirror-loop does not always work (active cell doesn't mirror correctly)
- When I click on a font I get something like "Illegal bitmap"
- Picture-Editor : When I want to create a dithered color, all the colors in all palletes turn to black.

No offence Brian, but I think SCI Studio leaks more memory then Spikey leaks acid ;)

I think there are some free libraries on the net, that automatically records every malloc() and free(), and detects memory-leaks. (I found one at www.flipcode.com, but it was for MSVC, not Borland)

PS : Last time I checked your site, the source-archives where offline. Will you put them up soon ?

PPS : Keep up the good work !  8)



Pages: [1]

SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.05 seconds with 20 queries.